Commit b338edb
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: #17396
PR-URL: #21573
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 25ddbc9 commit b338edbCopy full SHA for b338edb
File tree
Expand file treeCollapse file tree
1 file changed
+7
-13
lines changedOpen diff view settings
Filter options
- lib/internal/modules/cjs
Expand file treeCollapse file tree
1 file changed
+7
-13
lines changedOpen diff view settings
Collapse file
lib/internal/modules/cjs/loader.js
Copy file name to clipboardExpand all lines: lib/internal/modules/cjs/loader.js+7-13Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
692 | 692 | |
693 | 693 | |
694 | 694 | |
695 | | - |
696 | | - |
697 | | - |
698 | | - |
699 | | - |
700 | | - |
701 | | - |
702 | | - |
703 | | - |
704 | | - |
705 | | - |
706 | | - |
707 | | - |
| 695 | + |
| 696 | + |
| 697 | + |
| 698 | + |
| 699 | + |
| 700 | + |
| 701 | + |
708 | 702 | |
709 | 703 | |
710 | 704 | |
|
0 commit comments