-
-
Notifications
You must be signed in to change notification settings - Fork 483
Labels
astIssue surrounding the abstract syntax treeIssue surrounding the abstract syntax treeparserIssues surrounding the parserIssues surrounding the parser
Description
Describe the bug
debugger is a statement, not an expression.
To Reproduce
| Case | Actual | Expected (Test on firefox) |
|---|---|---|
!debugger |
true | Uncaught SyntaxError: expected expression, got keyword 'debugger' |
| let x = debugger; | undefined | Uncaught SyntaxError: expected expression, got keyword 'debugger' |
| debugger + debugger | NaN | Uncaught SyntaxError: unexpected token: '+' |
Build environment
Run in playground
Metadata
Metadata
Assignees
Labels
astIssue surrounding the abstract syntax treeIssue surrounding the abstract syntax treeparserIssues surrounding the parserIssues surrounding the parser