2018-01-09 15:36:42 +01:00

14 lines
219 B
JavaScript

function f() {
g(async function() {
c(() => this);
});
}
(async function () {
console.log('async wrapper:', this === 'foo')
;(() => {
console.log('nested arrow:', this === 'foo')
})()
}).call('foo')