Skip to content

Commit c9ce9eb

Browse files
committedAug 28, 2019
Fix spawns against Node
For example some code tries to run -e against the binary but that fails since we inject our entry file every time the binary is invoked. Fixes #932.
1 parent a3ee7c9 commit c9ce9eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
// Once our entry file is loaded we no longer need nbin to bypass normal Node
2+
// execution. We can still shim the fs into the binary even when bypassing. This
3+
// will ensure for example that a spawn like `${process.argv[0]} -e` will work
4+
// while still allowing us to access files within the binary.
5+
process.env.NBIN_BYPASS = true;
6+
17
require("../../bootstrap-amd").load("vs/server/src/cli");

0 commit comments

Comments
 (0)
Please sign in to comment.