Skip to content
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

Parsing error in nullish-coalescing #1401

Closed
clover2123 opened this issue Nov 7, 2024 · 0 comments · Fixed by #1402
Closed

Parsing error in nullish-coalescing #1401

clover2123 opened this issue Nov 7, 2024 · 0 comments · Fixed by #1402
Labels
bug Something isn't working

Comments

@clover2123
Copy link
Contributor

Escargot (please complete the following information):

  • OS: [e.g. Ubuntu 20.04]
  • Revision: 92602e2

Describe the bug

Test code to reproduce the behavior:

function test(a) {
    var b = 1;
    return (b&&a.get(b))??a.get("unknown");
}

test({});

A TypeError exception should be triggered, but a SyntaxError occurred instead

@clover2123 clover2123 added the bug Something isn't working label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant