Sign in
webkit
/
WebKit
/
37d54a666eb4285b1330948ce76065443f92601c
/
.
/
JSTests
/
es6
/
Set_constructor_requires_new.js
blob: 5ad314bf624068c8961808a42055d15a70cab44e [
file
] [
log
] [
blame
]
function
test
()
{
new
Set
();
try
{
Set
();
return
false
;
}
catch
(
e
)
{
return
true
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);