Sign in
webkit
/
WebKit
/
2bde0edf56b50cba234b331b5ddd67eb5d2a0a71
/
.
/
JSTests
/
es6
/
class_new.target.js
blob: 27d1cdc8d016e9ebad6277a5e57c307848b4e277 [
file
] [
log
] [
blame
]
function
test
()
{
var
passed
=
false
;
new
function
f
()
{
passed
=
new
.
target
===
f
;
}();
class
A
{
constructor
()
{
passed
&=
new
.
target
===
B
;
}
}
class
B extends A
{}
new
B
();
return
passed
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);