-
Notifications
You must be signed in to change notification settings - Fork 171
SyntaxError thrown on valid JS #633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug
Something isn't working
Comments
This snippet can be simplified as
it throws:
Same problem without the destructuring:
|
I agree on both counts. Adding the identifier should be easy in this case because this is a parse error. |
bnoordhuis
added a commit
to bnoordhuis/quickjs
that referenced
this issue
Oct 29, 2024
Except at the global scope of a classic script because... who knows, that's just how it is. Fixes: quickjs-ng#633
bnoordhuis
added a commit
to bnoordhuis/quickjs
that referenced
this issue
Oct 29, 2024
Except at the global scope of a classic script because... who knows, that's just how it is. Fixes: quickjs-ng#633
bluesky950520
pushed a commit
to bluesky950520/quickjs
that referenced
this issue
Mar 14, 2025
Except at the global scope of a classic script because... who knows, that's just how it is. Fixes: quickjs-ng/quickjs#633
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This snippet of code throws a SyntaxError: invalid lexical variable name:
This sort of structure is used by SES in the Compartment polyfill
Besides this snippet being valid js and thus shouldn't be throwing a SyntaxError, if there would be a real syntax error, shouldn't the error include the invalid variable name?
The text was updated successfully, but these errors were encountered: