test_operations.coffee is now compiling successfully

This commit is contained in:
Jeremy Ashkenas 2010-02-11 23:59:56 -05:00
parent 12685aa54a
commit 1e74805aa4
2 changed files with 2 additions and 2 deletions

View File

@ -512,7 +512,7 @@
// in multiple places, ensure that the function is only ever called once.
compile_reference: function compile_reference(o) {
var call, reference;
reference = o.scope.free_variable();
reference = new LiteralNode(o.scope.free_variable());
call = new ParentheticalNode(new AssignNode(reference, this));
return [call, reference];
}

View File

@ -366,7 +366,7 @@ CallNode: exports.CallNode: inherit Node, {
# 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.
compile_reference: (o) ->
reference: o.scope.free_variable()
reference: new LiteralNode(o.scope.free_variable())
call: new ParentheticalNode(new AssignNode(reference, this))
[call, reference]