Sign in
webkit
/
WebKit
/
fb971e53364fe47e160b54a5b905b29514f3f69e
/
.
/
JSTests
/
es6
/
super_constructor_calls_use_correct_new.target_binding.js
blob: 1b91616ad347a9f854f2768a81d2b206c1548177 [
file
] [
log
] [
blame
]
function
test
()
{
var
passed
;
class
B
{
constructor
()
{
passed
=
(
new
.
target
===
C
);
}
}
class
C extends B
{
constructor
()
{
super
();
}
}
new
C
();
return
passed
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);