blob: e801a4b58e6aa853cdd0c2f0508b720a6f448318 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
var g = newGlobal();
var w = g.eval("() => {}");
var v = g.eval("Array");
function f()
{
try {
Reflect.construct(v, {}, w);
} catch (e) {
assertEq(e instanceof TypeError, true);
}
}
f();
f();
f();
|