Debian Codegraph @

js/src/jit-test/tests/debug/bug1300528.js

raw
1 // |jit-test| skip-if: helperThreadCount() === 0
2
3 load(libdir + "asserts.js");
4
5 function BigInteger(a, b, c) {}
6 function montConvert(x) {
7 var r = new BigInteger(null);
8 return r;
9 }
10 var ba = new Array();
11 a = new BigInteger(ba);
12 g = montConvert(a);
13 var lfGlobal = newGlobal({newCompartment: true});
14 for (lfLocal in this) {
15 if (!(lfLocal in lfGlobal)) {
16 lfGlobal[lfLocal] = this[lfLocal];
17 }
18 }
19 lfGlobal.offThreadCompileToStencil(`
20 var dbg = new Debugger(g);
21 dbg.onEnterFrame = function (frame) {
22 var frameThis = frame.this;
23 }
24 `);
25 var stencil = lfGlobal.finishOffThreadStencil();
26 lfGlobal.evalStencil(stencil);
27 assertThrowsInstanceOf(test, ReferenceError);
28 function test() {
29 function check(fun, msg, todo) {
30 success = fun();
31 }
32 check(() => Object.getPrototypeOf(view) == Object.getPrototypeOf(simple));
33 typeof this;
34 }