Debian Codegraph @

js/src/jit-test/tests/errors/bug1878261.js

raw
1 // |jit-test| --baseline-eager; skip-if: !hasFunction["gczeal"]
2
3 var g = newGlobal({newCompartment: true});
4
5 function foo() {
6 try {
7 g.eval("gczeal(7,1); throw 'a thrown string'");
8 } finally {
9 gczeal(0);
10 }
11 }
12
13 try {
14 foo();
15 } catch (e) { assertEq(e, 'a thrown string')}