summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorDavid Goldstein <dgoldstein@dropbox.com>2018-04-10 07:40:56 +0000
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-05-13 00:28:16 +0300
commit236596590ce5746c66a36bee9ca81203553bd7a2 (patch)
tree6d077b2859a268a689d30068afa6c28208a22b64 /src/node_internals.h
parent20509ebee681233443ebc7dc1b58c2fab6d2b12f (diff)
downloadandroid-node-v8-236596590ce5746c66a36bee9ca81203553bd7a2.tar.gz
android-node-v8-236596590ce5746c66a36bee9ca81203553bd7a2.tar.bz2
android-node-v8-236596590ce5746c66a36bee9ca81203553bd7a2.zip
module: add --preserve-symlinks-main
Add `--preserve-symlinks-main` option which behaves like `--preserve-symlinks` but for `require.main`. PR-URL: https://github.com/nodejs/node/pull/19911 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r--src/node_internals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h
index 8aa4631880..c10369c563 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -173,6 +173,11 @@ extern std::string openssl_config;
// that is used by lib/module.js
extern bool config_preserve_symlinks;
+// Set in node.cc by ParseArgs when --preserve-symlinks-main is used.
+// Used in node_config.cc to set a constant on process.binding('config')
+// that is used by lib/module.js
+extern bool config_preserve_symlinks_main;
+
// Set in node.cc by ParseArgs when --experimental-modules is used.
// Used in node_config.cc to set a constant on process.binding('config')
// that is used by lib/module.js