You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementation notes: if we got rid of the typed parameter for test:assert-throws-error, we could check for XQuery functions like this:
$function instance of xdmp:function
Not sure how to check whether the parameter is a JS function. I think the most straightforward solution, in combination with #111, is to just do something like:
Any function passed in that has multiple parameters will go to the old functions. Any function that has no parameters should just work. If someone passes in a non-function as $function, they will get an XDMP-NOTFUNC exception.
If this approach looks good to others, I'll put together a PR.
See Stack Overflow question.
test:assert-throws-error
requires anxdmp:function
, which isn't what you get from JavaScript.The text was updated successfully, but these errors were encountered: