bug1887535.js (411B)
1 // |jit-test| slow; 2 3 // Tests the exception handling works during stack overflow. 4 const v1 = newGlobal({sameZoneAs: this}); 5 class C2 { 6 static { } 7 } 8 9 function f() { v1.constructor; } 10 11 const { test } = wasmEvalText(` 12 (module 13 (import "" "f" (func $f)) 14 (export "test" (func $f)) 15 )`, { "": { f, },}).exports; 16 17 18 function f4() { 19 try { 20 f4(); 21 } catch(_) { 22 test(); test(); 23 } 24 } 25 f4();