-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: harden check for non-module in vm.modules linker #47583
Conversation
Signed-off-by: Mike Ralphson <[email protected]>
Should we add a test? Also, cc @nodejs/vm. |
@RaisinTen should that be a simple test of the exception type? |
I think so, yes. |
Co-authored-by: Antoine du Hamel <[email protected]>
Have found the relevant test file and am working up the new test function. |
Is there a way to run just one of, or a subset of, the tests? |
Yea, you can run |
Thanks @RaisinTen! |
You can also use |
@MikeRalphson are you still working on the regression test or can somebody else pick this up? |
Landed in d1d5da2. |
Repro case: