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