Skip to content

Commit

Permalink
Add additional (currently failing) varargs test
Browse files Browse the repository at this point in the history
  • Loading branch information
stuhlmueller committed Jan 13, 2015
1 parent d3f8725 commit e22b7e2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test-transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,17 @@ var tests = {
expected: 4,
runners: [runVarargsTest, runTrampolineTest] },

// FIXME: This test currently fails because varargs happens after
// cps which introduces additional closures. To fix this,
// move the varargs transform up earlier in the order of
// transforms?
// { name: 'testVarargs4',
// code: ("var bar = function(){return function(xs){return xs;}};;" +
// "var foo = function(){return bar()(arguments)};" +
// "foo(3, 4);"),
// expected: [3, 4],
// runners: [runVarargsTest, runTrampolineTest] },

{ name: 'testApply',
code: ("var foo = function(x, y){return x + y};" +
"var bar = function(){ return apply(foo, arguments); };" +
Expand Down

0 comments on commit e22b7e2

Please sign in to comment.