blob: 780ef55dc6a3a41d53f9c311e00c7e5357fce28a [file] [log] [blame]
// |jit-test| error: cache does not have the same size
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.toSource() + "; f()";
})();
evalWithCache(test, { assertEqBytecode: true, assertEqResult : true });