1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

fixes #1840: invocations followed by prototype property access now correctly compile

This commit is contained in:
Gerald Lewis 2011-11-14 11:35:54 -05:00
parent fe78e65b16
commit a24451b6d3
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@
}), o('Value Accessor', function() {
return $1.add($2);
}), o('Invocation Accessor', function() {
return new Value($1, [$2]);
return new Value($1, [].concat($2));
}), o('ThisProperty')
],
Assignable: [

View file

@ -218,7 +218,7 @@ grammar =
SimpleAssignable: [
o 'Identifier', -> new Value $1
o 'Value Accessor', -> $1.add $2
o 'Invocation Accessor', -> new Value $1, [$2]
o 'Invocation Accessor', -> new Value $1, [].concat $2
o 'ThisProperty'
]