class-01.js (388B)
1 // |jit-test| error: TypeError 2 3 let g = newGlobal(); 4 let dbg = Debugger(g); 5 6 let forceException = g.eval(` 7 (class extends class {} { 8 // Calling this will throw for using |this| uninitialized. 9 constructor() { } 10 }) 11 `); 12 13 dbg.onExceptionUnwind = function() { 14 return { 15 // Force the return of an illegal value. 16 return: 1 17 } 18 } 19 20 new forceException;