summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/wasm/regress/bug1887535.js
blob: e2793831bf39fc7bd08fb0b96706d09c01fb8711 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// |jit-test| slow;

// Tests the exception handling works during stack overflow.
const v1 = newGlobal({sameZoneAs: this});
class C2 {
    static { }
}

function f() { v1.constructor; }

const { test } = wasmEvalText(`
(module
    (import "" "f" (func $f))
    (export "test" (func $f))
)`, { "": { f, },}).exports;


function f4() {
    try {
       f4();
    } catch(_) {
       test(); test();
    }
}
f4();