Sign in
webkit
/
WebKit
/
2e2cb00ac8a118644a070f63a7b5ac6a2db0e0aa
/
.
/
JSTests
/
es6
/
arrow_functions_lexical_this_binding.js
blob: 2e8c08dacca15abbf20553e1b9c8efc93d8afcb3 [
file
] [
log
] [
blame
]
function
test
()
{
var
d
=
{
x
:
"bar"
,
y
:
function
()
{
return
z
=>
this
.
x
+
z
;
}}.
y
();
var
e
=
{
x
:
"baz"
,
y
:
d
};
return
d
(
"ley"
)
===
"barley"
&&
e
.
y
(
"ley"
)
===
"barley"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);