help icon indicating copy to clipboard operation
help copied to clipboard

is setTimeout, setInterval, clearInterval like functions supposed to be overridden?

Open ganeshkbhat opened this issue 2 years ago • 1 comments

Version

v20.11.xx (any) probably

Platform

Microsoft Windows NT 10.0.22631.0 x64, any browser

Subsystem

No response

What steps will reproduce the bug?

check attached images for steps. I should not be able to redefine setTimeout, setInterval, clearInterval like functions or is it so?

able_to_redefine_setTimeout_unexpected_behaviour able_to_redefine_setTimeout_unexpected_behaviour_2

How often does it reproduce? Is there a required condition?

I should not be able to redefine setTimeout, setInterval, clearInterval like functions or is it so?

What is the expected behavior? Why is that the expected behavior?

I should not be able to redefine setTimeout, setInterval, clearInterval like functions or is it so?

What do you see instead?

I am able to redefine setTimeout, setInterval, clearInterval like functions or is it so?

Additional information

NA

ganeshkbhat avatar Feb 07 '24 11:02 ganeshkbhat

I'm not aware of any reason that would prevent this behavior.

targos avatar Feb 07 '24 12:02 targos