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