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