summaryrefslogtreecommitdiff
path: root/src/node_internals.h
diff options
context:
space:
mode:
authorguybedford <guybedford@gmail.com>2017-09-03 13:20:06 +0200
committerBradley Farias <bradley.meck@gmail.com>2017-10-11 08:47:23 -0500
commitd21a11dc23d6104b1d03fa2ddc1c808dcaf89c31 (patch)
tree14098b620e958d693f0c420a6073d7e26986069e /src/node_internals.h
parentacb36abf753e524b03c15558537ef52f53e8f170 (diff)
downloadandroid-node-v8-d21a11dc23d6104b1d03fa2ddc1c808dcaf89c31.tar.gz
android-node-v8-d21a11dc23d6104b1d03fa2ddc1c808dcaf89c31.tar.bz2
android-node-v8-d21a11dc23d6104b1d03fa2ddc1c808dcaf89c31.zip
module: resolve and instantiate loader pipeline hooks
This enables a --loader flag for Node, which can provide custom "resolve" and "dynamicInstantiate" methods for custom ES module loading. In the process, module providers have been converted from classes into functions and the module APIs have been made to pass URL strings over objects. PR-URL: https://github.com/nodejs/node/pull/15445 Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Timothy Gu <timothygu99@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 13e6b12d1d..7c4f7a6a7f 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -91,6 +91,11 @@ extern bool config_preserve_symlinks;
// that is used by lib/module.js
extern bool config_experimental_modules;
+// Set in node.cc by ParseArgs when --loader is used.
+// Used in node_config.cc to set a constant on process.binding('config')
+// that is used by lib/internal/bootstrap_node.js
+extern std::string config_userland_loader;
+
// Set in node.cc by ParseArgs when --expose-internals or --expose_internals is
// used.
// Used in node_config.cc to set a constant on process.binding('config')