[v20.x] 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 [email protected] PR-URL: https://github.com/nodejs/node/pull/52162 Reviewed-By: Vinícius Lourenço Claro Cardoso [email protected] Reviewed-By: Yagiz Nizipli [email protected]
CI: https://ci.nodejs.org/job/node-test-pull-request/59366/
CI: https://ci.nodejs.org/job/node-test-pull-request/59732/
CI: https://ci.nodejs.org/job/node-test-pull-request/59832/
CI: https://ci.nodejs.org/job/node-test-pull-request/59856/
CI: https://ci.nodejs.org/job/node-test-pull-request/62621/
@marco-ippolito I believe the comment has been addressed.
CI: https://ci.nodejs.org/job/node-test-pull-request/62768/
CI: https://ci.nodejs.org/job/node-test-pull-request/62781/
Landed in f88bf05819d5