14 ms·
Isn't it an async callback though? IMHO, it would be much more useful if it were synchronous.
by randomfool 11y ago
Isn't it an async callback though?
IMHO, it would be much more useful if it were synchronous.
- dccoolgai 11y agoIt is, but in Chrome devtools it shows you the source of the callback in the stack trace.
- stymaar 11y agoFor debugging purpose, that's exactly what Object.watch does (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...) but this is only a SpideyMonkey feature.