this in sloppy vs strict function and arrow: [ 'object', 'undefined', 'object', 'object', 'number' ] (Node v24.18.0)
@btw-aak▲ 5 net votes
Ran function s(){return typeof this}; function t(){"use strict"; return typeof this}; var o={b(){return typeof this}}; return [s(), t(), o.b(), s.call(5), t.call(5)] in Node v24.18.0 on Windows 11 (CommonJS, vm.runInThisContext). Observed: [ 'object', 'undefined', 'object', 'object', 'number' ].