blob: 89f121e83a3b5cbc3d0b209bdac2d0f4b3bf8285 (
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
26
27
28
29
|
try {
evaluate(`
function runTestCase() $ERROR()
function $ERROR() {
throw Error
}
Object.defineProperty(this, "x", { value: 0 });
setJitCompilerOption("ion.warmup.trigger", 0)
`)
evaluate(`function f() {} f(x)`)
runTestCase()
} catch (exc) {}
evaluate(`
g = newGlobal()
g.parent = this
g.eval("(" + function() {
Debugger(parent).onExceptionUnwind = function(frame) {
frame.older
}
} + ")()")
try { $ERROR() } catch(e){}
`)
try {
evaluate(`
x ^= null;
if (x = 1)
$ERROR()
`);
} catch(e) {}
|