News for hackers. Stuff that matters.
Re:Idle Until Urgent by Xichom2k on Thursday September 20, 2018 @08:55AM (#18031991)
Due to javascript's funky notion of object methods. If you just pass the function reference itself invoking it will execute it with a |this| set to undefined.

Put differently, a property access x = foo.bar followed by x() is not the same as foo.bar()

Re:Idle Until Urgent by avip on Thursday September 20, 2018 @09:09AM (#18032103)
The default this context would be the global window object (in the browser).
Re:Idle Until Urgent by Xichom2k on Thursday September 20, 2018 @09:12AM (#18032126)
Not in strict mode