-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Cannot redefine property: window (>=v19.7.0) #47310
Comments
Possibly related to #42962 |
Do you have a test case using only the vm module? Your bug report is unlikely to get attention if it depends on a big third-party module like jsdom. |
Since I'm not familiar with the inner workings of jsdom I cannot remove that as a dependency. All I can do is provide simple exact repro steps:
Since the issue is reproducible with the snippet above on node version 19.7.0 but not on 19.6.1 I think there have been a breaking change somewhere between these two versions in node. |
This was possibly fixed by aa6e9c8 |
Works fine with latest nightly. |
Version
v19.7.0
Platform
Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 arm64
Subsystem
No response
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Error is consistent. Was introduced in v19.7.0. Not reproducible on v19.6.1 and below.
What is the expected behavior? Why is that the expected behavior?
Should work same as in v19.6.1 and before. No error.
What do you see instead?
TypeError: Cannot redefine property: window
Additional information
No response
The text was updated successfully, but these errors were encountered: