Sign in
webkit
/
WebKit
/
2e2cb00ac8a118644a070f63a7b5ac6a2db0e0aa
/
.
/
JSTests
/
es6
/
super_is_statically_bound.js
blob: 0a73ebee54f0245f0f482df9509a2ba724f87ed8 [
file
] [
log
] [
blame
]
function
test
()
{
class
B
{
qux
()
{
return
"bar"
;
}
}
class
C extends B
{
qux
()
{
return
super
.
qux
()
+
this
.
corge
;
}
}
var
obj
=
{
qux
:
C
.
prototype
.
qux
,
corge
:
"ley"
};
return
obj
.
qux
()
===
"barley"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);