mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
using '== null' to check for soaked accessor chains instead of '== undefined' -- shorter, and slightly safer
This commit is contained in:
@@ -228,7 +228,7 @@ statement ReturnNode, true
|
||||
ValueNode: exports.ValueNode: inherit Node, {
|
||||
type: 'Value'
|
||||
|
||||
SOAK: " == undefined ? undefined : "
|
||||
SOAK: " == null ? undefined : "
|
||||
|
||||
constructor: (base, properties) ->
|
||||
@children: flatten [@base: base, @properties: (properties or [])]
|
||||
|
||||
Reference in New Issue
Block a user