Skip to content

vm: harden module type checks

Check if the value returned from user linker function is a null-ish value.

validateInternalField should be preferred when checking this argument to guard against null-ish this.

Co-authored-by: Mike Ralphson mike.ralphson@gmail.com

Replaces https://github.com/nodejs/node/pull/47583

Merge request reports

Loading