We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 860e7a7 commit 496be45Copy full SHA for 496be45
src/node.js
@@ -576,6 +576,16 @@
576
process.argv[0] = path.join(cwd, process.argv[0]);
577
}
578
579
+ // To allow people to extend Node in different ways, this hook allows
580
+ // one to drop a file lib/_third_party_main.js into the build directory
581
+ // which will be executed instead of Node's normal loading.
582
+ if (process.binding('natives')['_third_party_main']) {
583
+ process.nextTick(function () {
584
+ Module._requireNative('_third_party_main');
585
+ });
586
+ return;
587
+ }
588
+
589
if (process.argv[1]) {
590
if (process.argv[1] == 'debug') {
591
// Start the debugger agent
0 commit comments