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