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

Fix to runInContext, runInNewContext and runInThisContext signature #23

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

Enzojz
Copy link
Contributor

@Enzojz Enzojz commented Jan 20, 2024

According to https://nodejs.org/api/vm.html#scriptrunincontextcontextifiedobject-options, these three functions don't have a second parameter of string type.

These three functions didn't work in my project after build, an exception would be raised, so I fixed this.

According to https://nodejs.org/api/vm.html#scriptrunincontextcontextifiedobject-options, these three functions don't have a second parameter of string type.

These three functions didn't work in my project after build, an exception would be raised, so I fixed this.
@TheSpyder
Copy link
Owner

Thank you! I’ll verify it soon (I’m travelling at the moment).

I really should add a contribution note about API tests - there aren’t any, so if an API doesn’t work it’s possible you are the first person to use it and you are welcome to submit a fix.

Copy link
Owner

@TheSpyder TheSpyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very strange, these never worked. Oh well 🤷

@TheSpyder TheSpyder merged commit 0e1f74e into TheSpyder:main Jan 24, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants