bug-1647747-debugger-weakmark.js (366B)
1 var g27 = newGlobal({newCompartment: true}); 2 g27.debuggeeGlobal = this; 3 g27.eval(` 4 dbg = new Debugger(debuggeeGlobal); 5 dbg.onExceptionUnwind = function (frame, exc) {}; 6 `); 7 s45 = newGlobal({newCompartment: true}); 8 try { 9 evalcx(` 10 function h(h) {} 11 h.valueOf=g; 12 `, s45); 13 } catch (x) {} 14 try { 15 evalcx("throw h", s45) 16 } catch (x) {} 17 gcslice(100000);