Open JosVerburg opened 4 years ago
Funnily enough, the spec does not say anything about this. I think in this case we are not able to statically determine whether the array function will 'turn' updating depending on its arguments. I think we should disallow this. @JosVerburg , what do you think?
Would it not allow updating expressions to be inserted in it like here https://github.com/LeoWoerteler/XQUTS/blob/master/Queries/XQuery/FunctionCall/id-function-call-01.xq
that is an updating function argument. the bug we have now is an updating function that is executed as a hicher order function, without the invoke updating function
stuff you'd normally use
Can be reproduced with:
This now results in the error "Cannot read property 'next' of undefined". The same works fine with a non-updating function e.g.
trace#1