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