Debian Codegraph @

js/src/jit-test/tests/basic/bug1061534.js

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