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