summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/this-4.js
blob: 0379ef86e5b4831b87998408f48e47abc53bb47c (plain)
1
2
3
4
5
// 'this' in a toplevel arrow is the global object.

var f = () => this;
assertEq(f(), this);
assertEq({f: f}.f(), this);