Merge branch 'master' of github.com:6to5/6to5
This commit is contained in:
commit
b1238a1746
@ -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,
|
||||
|
||||
@ -15,6 +15,6 @@
|
||||
} else {
|
||||
_arguments = [_x = n - 1];
|
||||
continue _function;
|
||||
}
|
||||
}return;
|
||||
}
|
||||
})(1000000) === "foo";
|
||||
|
||||
@ -5,5 +5,6 @@ function f() {
|
||||
if (true) {} else {
|
||||
continue _function;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,6 +17,6 @@
|
||||
}
|
||||
_x = n - 1;
|
||||
continue _function;
|
||||
}
|
||||
}return;
|
||||
}
|
||||
})(1000000, true) === "foo";
|
||||
|
||||
@ -11,6 +11,6 @@ function fact(_x2) {
|
||||
continue _function;
|
||||
} else {
|
||||
return acc;
|
||||
}
|
||||
}return;
|
||||
}
|
||||
}
|
||||
|
||||
@ -20,5 +20,6 @@
|
||||
g = 123;
|
||||
_arguments = [_x2 = n - 1];
|
||||
continue _function;
|
||||
return;
|
||||
}
|
||||
})(1000000, true) === "foo";
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
_x = n - 1;
|
||||
continue _function;
|
||||
}
|
||||
return;
|
||||
}
|
||||
})(1000000) === "foo";
|
||||
|
||||
@ -45,5 +46,6 @@
|
||||
_x = n - 1;
|
||||
continue _function;
|
||||
}
|
||||
return;
|
||||
}
|
||||
})(1000000) === "foo";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user