babel/test/fixtures/esnext/es6-arrow-functions/handles-nested-context-bindings.js
2015-01-05 10:18:42 +11:00

13 lines
226 B
JavaScript

var obj = {
method: function() {
return () => (this, () => this);
},
method2: function() {
return () => () => this;
}
};
assert.strictEqual(obj.method()()(), obj);
assert.strictEqual(obj.method2()()(), obj);