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");