Source code
Revision control
Copy as Markdown
Other Tools
// 'this' in a toplevel arrow is the global object.
var f = () => this;
assertEq(f(), this);
assertEq({f: f}.f(), this);
// 'this' in a toplevel arrow is the global object.
var f = () => this;
assertEq(f(), this);
assertEq({f: f}.f(), this);