Source code

Revision control

Copy as Markdown

Other Tools

// |jit-test| error: cache does not have the same size; skip-if: isLcovEnabled()
load(libdir + 'bytecode-cache.js');
var test = (function () {
function f(x) {
function ifTrue() {};
function ifFalse() {};
if (generation % 2 == 0)
return ifTrue();
return ifFalse();
}
return f.toString() + "; f()";
})();
evalWithCache(test, { assertEqBytecode: true, assertEqResult : true });