Sign in
webkit
/
WebKit
/
3735521ea470c7388d8572907701c773641c37ed
/
.
/
JSTests
/
es6
/
arrow_functions_this_unchanged_by_call_or_apply.js
blob: a2b76d133758a12c15ed91f68e1ffccaae5253d9 [
file
] [
log
] [
blame
]
function
test
()
{
var
d
=
{
x
:
"foo"
,
y
:
function
()
{
return
()
=>
this
.
x
;
}};
var
e
=
{
x
:
"bar"
};
return
d
.
y
().
call
(
e
)
===
"foo"
&&
d
.
y
().
apply
(
e
)
===
"foo"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);