Sign in
webkit
/
WebKit
/
2e2cb00ac8a118644a070f63a7b5ac6a2db0e0aa
/
.
/
JSTests
/
es6
/
Promise_constructor_requires_new.js
blob: 33468e94a0bc29665335b5fcadf5feb271120119 [
file
] [
log
] [
blame
]
function
test
()
{
new
Promise
(
function
(){});
try
{
Promise
(
function
(){});
return
false
;
}
catch
(
e
)
{
return
true
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);