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