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