Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
new.target_in_constructors.js
blob: a81926baebee83c2d0e3dff2804c80e0bb97f6a6 [
file
] [
log
] [
blame
]
function
test
()
{
var
passed
=
false
;
new
function
f
()
{
passed
=
(
new
.
target
===
f
);
}();
(
function
()
{
passed
&=
(
new
.
target
===
undefined
);
}());
return
passed
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);