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