Sign in
webkit
/
WebKit
/
f6a2db0b6ffa1cbc502926e8c3265b2be2346307
/
.
/
JSTests
/
es6
/
WeakSet_constructor_requires_new.js
blob: ca66faeffbf7cacc91fdeb5981228dea97dfef50 [
file
] [
log
] [
blame
]
function
test
()
{
new
WeakSet
();
try
{
WeakSet
();
return
false
;
}
catch
(
e
)
{
return
true
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);