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