Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ganeshkbhat opened this issue Feb 7, 2024 · 1 comment

Comments

@ganeshkbhat
Copy link

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

@targos
Copy link
Member

targos commented Feb 7, 2024

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

@marco-ippolito marco-ippolito transferred this issue from nodejs/node Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants