Source code
Revision control
Copy as Markdown
Other Tools
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();