Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
super_statement_in_constructors.js
blob: a3f1218546fe24ff4c2a62c9eb78c78044ee519d [
file
] [
log
] [
blame
]
function
test
()
{
var
passed
=
false
;
class
B
{
constructor
(
a
)
{
passed
=
(
a
===
"barbaz"
);
}
}
class
C extends B
{
constructor
(
a
)
{
super
(
"bar"
+
a
);
}
}
new
C
(
"baz"
);
return
passed
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);