bug1061534.js (610B)
1 test = (function () { 2 function f() {}; 3 return "var obj = { x : 2 };" + f.toString() + (4); 4 })(); 5 evalWithCache(test, {}); 6 function evalWithCache(code, ctx) { 7 code = cacheEntry(code); 8 ctx.global = newGlobal({ cloneSingletons: true }); 9 var res1 = evaluate(code, Object.create(ctx, {saveBytecodeWithDelazifications: { value: true } })); 10 } 11 if (typeof assertThrowsInstanceOf === 'undefined') { 12 var assertThrowsInstanceOf = function assertThrowsInstanceOf(f, ctor, msg) {}; 13 } 14 evaluate('evaluate(\'assertThrowsInstanceOf(function () {}, ["jak", "ms"]);\', { noScriptRval : true, isRunOnce: true })');