Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShelley Vohr <shelley.vohr@gmail.com>2020-06-26 04:07:37 +0300
committerShelley Vohr <shelley.vohr@gmail.com>2020-06-29 19:12:11 +0300
commitc23d2fd3f8a018bcc624f1468a9ce176f6ce93f2 (patch)
tree4f868038dc77b7eb64d091ee55ae59729293a0b8 /src/node.h
parent9e135accbb045d52eb65de602c81b5090daae1c4 (diff)
src: allow embedders to disable esm loader
PR-URL: https://github.com/nodejs/node/pull/34060 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/node.h b/src/node.h
index b3b7c0c1693..6a6a40113b2 100644
--- a/src/node.h
+++ b/src/node.h
@@ -408,7 +408,11 @@ enum Flags : uint64_t {
// Set if this Environment instance is associated with the global inspector
// handling code (i.e. listening on SIGUSR1).
// This is set when using kDefaultFlags.
- kOwnsInspector = 1 << 2
+ kOwnsInspector = 1 << 2,
+ // Set if Node.js should not run its own esm loader. This is needed by some
+ // embedders, because it's possible for the Node.js esm loader to conflict
+ // with another one in an embedder environment, e.g. Blink's in Chromium.
+ kNoRegisterESMLoader = 1 << 3
};
} // namespace EnvironmentFlags