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