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