-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Support vm
module
#401
Comments
I dont think this can be done with “just” a polyfill. You need to create a new, empty globalThis and then reference variables from the parent context to the new one. |
Will there be an update on the error handling some time? I do just something like that: const controller = new Script('long bundled code');
controller.runInNewContext({
//some vars
}); EDIT: I am having this problem with ShadowRealm now too. |
@caramboleyo-no2fa please open a new issue. |
It would be great if Bun Edit: nvm it seems Node has |
The text was updated successfully, but these errors were encountered: