mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
test_operations.coffee is now compiling successfully
This commit is contained in:
parent
12685aa54a
commit
1e74805aa4
2 changed files with 2 additions and 2 deletions
|
@ -512,7 +512,7 @@
|
||||||
// in multiple places, ensure that the function is only ever called once.
|
// in multiple places, ensure that the function is only ever called once.
|
||||||
compile_reference: function compile_reference(o) {
|
compile_reference: function compile_reference(o) {
|
||||||
var call, reference;
|
var call, reference;
|
||||||
reference = o.scope.free_variable();
|
reference = new LiteralNode(o.scope.free_variable());
|
||||||
call = new ParentheticalNode(new AssignNode(reference, this));
|
call = new ParentheticalNode(new AssignNode(reference, this));
|
||||||
return [call, reference];
|
return [call, reference];
|
||||||
}
|
}
|
||||||
|
|
|
@ -366,7 +366,7 @@ CallNode: exports.CallNode: inherit Node, {
|
||||||
# If the code generation wished to use the result of a function call
|
# If the code generation wished to use the result of a function call
|
||||||
# in multiple places, ensure that the function is only ever called once.
|
# in multiple places, ensure that the function is only ever called once.
|
||||||
compile_reference: (o) ->
|
compile_reference: (o) ->
|
||||||
reference: o.scope.free_variable()
|
reference: new LiteralNode(o.scope.free_variable())
|
||||||
call: new ParentheticalNode(new AssignNode(reference, this))
|
call: new ParentheticalNode(new AssignNode(reference, this))
|
||||||
[call, reference]
|
[call, reference]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue