Merge branch 'master' of github.com:6to5/6to5

This commit is contained in:
Sebastian McKenzie 2015-02-19 10:46:47 +11:00
commit b1238a1746
7 changed files with 9 additions and 3 deletions

View File

@ -112,6 +112,8 @@ TailCallTransformer.prototype.run = function () {
body.unshift(t.variableDeclaration("var", paramDecls));
}
body.push(t.returnStatement());
node.body = util.template("tail-call-body", {
THIS_ID: this.thisId,
ARGUMENTS_ID: this.argumentsId,

View File

@ -15,6 +15,6 @@
} else {
_arguments = [_x = n - 1];
continue _function;
}
}return;
}
})(1000000) === "foo";

View File

@ -5,5 +5,6 @@ function f() {
if (true) {} else {
continue _function;
}
return;
}
}

View File

@ -17,6 +17,6 @@
}
_x = n - 1;
continue _function;
}
}return;
}
})(1000000, true) === "foo";

View File

@ -11,6 +11,6 @@ function fact(_x2) {
continue _function;
} else {
return acc;
}
}return;
}
}

View File

@ -20,5 +20,6 @@
g = 123;
_arguments = [_x2 = n - 1];
continue _function;
return;
}
})(1000000, true) === "foo";

View File

@ -21,6 +21,7 @@
_x = n - 1;
continue _function;
}
return;
}
})(1000000) === "foo";
@ -45,5 +46,6 @@
_x = n - 1;
continue _function;
}
return;
}
})(1000000) === "foo";