node: allow preload modules with -i · nodejs/node@ff64a4c · GitHub
Skip to content

Commit ff64a4c

Browse files
committed
node: allow preload modules with -i
This gives us the ability to preload when using the node repl. This can be useful for doing things like creating aliases. Fixes: #4661 PR-URL: #4696 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 8d0ca10 commit ff64a4c

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

src/node.js

Lines changed: 1 addition & 0 deletions

test/fixtures/define-global.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
global.a = 'test';

test/parallel/test-preload.js

Lines changed: 14 additions & 1 deletion

0 commit comments

Comments
 (0)