Sign in
webkit
/
WebKit
/
2e2cb00ac8a118644a070f63a7b5ac6a2db0e0aa
/
.
/
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"
);