Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
super_expression_in_constructors.js
blob: 514e7c2e140af39a2a2b934ae7aded1b7c7cc1a0 [
file
] [
log
] [
blame
]
function
test
()
{
class
B
{
constructor
(
a
)
{
return
[
"foo"
+
a
];
}
}
class
C extends B
{
constructor
(
a
)
{
return
super
(
"bar"
+
a
);
}
}
return
new
C
(
"baz"
)[
0
]
===
"foobarbaz"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);