Using unbounded ranges in a couple spots in the compiler.

This commit is contained in:
Jeremy Ashkenas
2010-08-18 22:08:09 -04:00
parent 4ddd65a4c4
commit 2e59cc4807
2 changed files with 2 additions and 2 deletions

View File

@@ -338,7 +338,7 @@ exports.ValueNode = class ValueNode extends BaseNode
# needs to be used twice, in compound assignment ... then we need to cache
# the value of the indexes.
cacheIndexes: (o) ->
copy = new ValueNode @base, @properties.slice 0
copy = new ValueNode @base, @properties[0..]
for prop, i in copy.properties
if prop instanceof IndexNode and prop.contains((n) -> n instanceof CallNode)
[index, indexVar] = prop.index.compileReference o