mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
FIXES #397: Can't use @variable in switch in instance method
This commit is contained in:
@@ -1206,7 +1206,7 @@ exports.ForNode: class ForNode extends BaseNode
|
||||
exports.IfNode: class IfNode extends BaseNode
|
||||
|
||||
constructor: (condition, body, tags) ->
|
||||
super {name: 'IfNode', children: ['condition', 'body', 'else_body', 'assigner']}
|
||||
super {name: 'IfNode', children: ['condition', 'switch_subject', 'body', 'else_body', 'assigner']}
|
||||
@condition: condition
|
||||
@body: body
|
||||
@else_body: null
|
||||
|
||||
Reference in New Issue
Block a user