Sign in
webkit
/
WebKit
/
9f9c15eb6fdc193d77c7e606d643d4b8ec49399b
/
.
/
JSTests
/
es6
/
arrow_functions_lexical_super_binding.js
blob: 07390258d043efb80e0f5ad9fb8b45cc10e5ded7 [
file
] [
log
] [
blame
]
function
test
()
{
class
B
{
qux
()
{
return
"quux"
;
}
}
class
C extends B
{
baz
()
{
return
x
=>
super
.
qux
();
}
}
var
arrow
=
new
C
().
baz
();
return
arrow
()
===
"quux"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);