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
Thanks for your answer, @xeioex.
I wasn't aware of the existence of the QuickJS alternative.
Unfortunately, given that I happen to use ngx.fetch() and querystring in my code, I guess QuickJS is not (yet) an option for me.
But by the way, what does this njs_parser_optional_chain() function do then?
yes this code was intended to support optional chaining in njs, and this looks like a bug. I will look into it as time permits. No ETA though, as we have QuickJS engine integration as a priority.
It would be great if
njs
could support optional chaining.Looking at the codebase, I actually found this function pertaining to optional chaining:
njs/src/njs_parser.c
Line 2962 in 855aa4c
But, unless I'm doing something silly, it doesn't seem to work as I expected.
For example, a simple call like the following produces an error:
Whereas the same code in, say, Node.js, Firefox or Chrome will succeed:
So am I missing something obvious?
The text was updated successfully, but these errors were encountered: