Sign in
webkit
/
WebKit
/
e6e5341d629375fc8fb77929c93c5f711fd50f24
/
.
/
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"
);