Sign in
webkit
/
WebKit
/
fdc942c5052133d9f3534312553b7ba8c309c092
/
.
/
JSTests
/
es6
/
class_constructor_requires_new.js
blob: b7220722bb2576f72592eb825bebd50981eff71d [
file
] [
log
] [
blame
]
function
test
()
{
class
C
{}
try
{
C
();
}
catch
(
e
)
{
return
true
;
}
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);