blob: 5c888f911bf1c44d389d0a3d2184683484b6f96d [file] [log] [blame]
description('Tests for ES6 arrow function, this should be overwritten during invoke call&apply');
var d = {
x : "foo",
y : function() { return () => this.x; }
};
var e = { x : "bar" };
shouldBe('d.y().call(e)', "'foo'");
shouldBe('d.y().apply(e)', "'foo'");
var successfullyParsed = true;