Details
-
Bug
-
Resolution: Fixed
-
Critical
-
6.5.0
-
6.5.0-3790
-
Untriaged
-
No
Description
create this syntactically incorrect javascript function
[root@localhost logs]# curl -X POST http://localhost:43381/api/v1/functions -H 'content-type: application/json' -d '{"name":"math","code":"function add(a, b)
{ let data = a + b return data }"}'
Now create a n1ql function based on that one:
CREATE FUNCTION javaScriptAdd() LANGUAGE JAVASCRIPT AS
Run this function:
select javaScriptAdd(6,1)
You get this error:
[
]
sometimes it returns this as well:
[
]
It is hard to tell what these errors are for, almost certainly i wouldn't know this is because of a syntax error in my initial javascript