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