Experience-Monks / devtool

[OBSOLETE] runs Node.js programs through Chromium DevTools
MIT License
3.77k stars 150 forks source link

Fix for mixed setTimeout/clearTimeout methods #75

Closed aphex closed 8 years ago

aphex commented 8 years ago

Noticed that I was unable to use clearTimeout but inly when running through devtool, it looks like we need to shim both setTimeout and clearTimeout otherwise we get the setTimeout method from node and the clearTimeout method from the browser.

Maybe there is a better place to setup protection for clearTimeout/clearInterval? but this seems to work for me.

Thats not fun 👎

mattdesl commented 8 years ago

Thanks! :smile: