diff --git a/lib/nodes.js b/lib/nodes.js index 851c59b8..e15758df 100644 --- a/lib/nodes.js +++ b/lib/nodes.js @@ -329,7 +329,7 @@ // A value, indexed or dotted into, or vanilla. ValueNode = (exports.ValueNode = inherit(Node, { type: 'Value', - SOAK: " == null ? undefined : ", + SOAK: " == undefined ? undefined : ", constructor: function constructor(base, properties) { this.children = flatten([(this.base = base), (this.properties = (properties || []))]); return this; diff --git a/src/nodes.coffee b/src/nodes.coffee index 021cc93e..ebf0ac8a 100644 --- a/src/nodes.coffee +++ b/src/nodes.coffee @@ -236,7 +236,7 @@ statement ReturnNode, true ValueNode: exports.ValueNode: inherit Node, { type: 'Value' - SOAK: " == null ? undefined : " + SOAK: " == undefined ? undefined : " constructor: (base, properties) -> @children: flatten [@base: base, @properties: (properties or [])]