Pass env with toCSS in function call evaluation; Add tests; Fixes #957

This commit is contained in:
Dustin Cass
2012-09-21 17:00:23 -07:00
committed by Luke Page
parent 819d6b0ce6
commit 8019439eb4
3 changed files with 4 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ tree.Call.prototype = {
}
} else { // 2.
return new(tree.Anonymous)(this.name +
"(" + args.map(function (a) { return a.toCSS() }).join(', ') + ")");
"(" + args.map(function (a) { return a.toCSS(env) }).join(', ') + ")");
}
},