mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
merging in satyr's fix for #653
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
# Import the helpers we plan to use.
|
||||
{compact, flatten, merge, del, include, indexOf, starts, ends} = require './helpers'
|
||||
|
||||
# Constant functions for nodes that don't need customization.
|
||||
YES = -> yes
|
||||
NO = -> no
|
||||
|
||||
@@ -62,7 +63,7 @@ exports.BaseNode = class BaseNode
|
||||
# by assigning it to a temporary variable.
|
||||
compileReference: (o, options) ->
|
||||
options or= {}
|
||||
pair = unless @isComplex()
|
||||
pair = if not @isComplex()
|
||||
[this, this]
|
||||
else if this instanceof ValueNode and options.assignment
|
||||
this.cacheIndexes(o)
|
||||
|
||||
Reference in New Issue
Block a user