mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
Treat 'debugger' as a pure-statement keyword, not and identifier.
This commit is contained in:
@@ -249,7 +249,7 @@ exports.LiteralNode = class LiteralNode extends BaseNode
|
||||
# Break and continue must be treated as pure statements -- they lose their
|
||||
# meaning when wrapped in a closure.
|
||||
isStatement: ->
|
||||
@value is 'break' or @value is 'continue'
|
||||
@value is 'break' or @value is 'continue' or @value is 'debugger'
|
||||
isPureStatement: LiteralNode::isStatement
|
||||
|
||||
compileNode: (o) ->
|
||||
|
||||
Reference in New Issue
Block a user