This adds nil checks to the arguments passed to clearTimeout/clearInterval for the use case of running buggy/untrusted JS code. I thought it would be better to do the check here - and not in the exported ClearTimeout/ClearInterval - because it's clearer what can break.
Hi!
This adds nil checks to the arguments passed to
clearTimeout
/clearInterval
for the use case of running buggy/untrusted JS code. I thought it would be better to do the check here - and not in the exportedClearTimeout
/ClearInterval
- because it's clearer what can break.