What are the parsing rules regarding the debugger
keyword?
On Chrome, the following works fine:
debugger
console.log('Hello!')
but
debugger console.log('Hello!')
is a SyntaxError
.
Why is replacing one form of whitespace (new line) by another form of whitespace (space) so critical? What are the parsing rules for debugger
?