Unverified Commit 590e8d37 authored by Ujjwal Sharma's avatar Ujjwal Sharma Committed by Myles Borins
Browse files

module: use compileFunction over Module.wrap

Use vm.compileFunction (which is a binding for
v8::CompileFunctionInContext) instead of Module.wrap internally in
Module._compile for the cjs loader.

Fixes: https://github.com/nodejs/node/issues/17396

Backport-PR-URL: https://github.com/nodejs/node/pull/27124
PR-URL: https://github.com/nodejs/node/pull/21573


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarRuben Bridgewater <ruben@bridgewater.de>
Reviewed-By: default avatarGus Caplan <me@gus.host>
Reviewed-By: default avatarJoyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
parent 51ec21cb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment