Works across functions and generates simpler and faster code than #701. Works even across files when used in conjunction with `runtime` option. Closes #256.
15 lines
253 B
JavaScript
15 lines
253 B
JavaScript
"use strict";
|
|
|
|
function f() {
|
|
var _temp;
|
|
return to5Runtime.tailCall((_temp = getObj()).method, [], _temp);
|
|
}
|
|
|
|
function g() {
|
|
var _temp;
|
|
if (_temp = getFalseValue()) {
|
|
return _temp;
|
|
}
|
|
return to5Runtime.tailCall(getValue);
|
|
}
|