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:
authorJoyee Cheung <joyeec9h3@gmail.com>2020-04-21 23:10:10 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2020-07-18 06:23:13 +0300
commit7ecb285842361de721a9d7c7d2a0535170b132dd (patch)
tree6b9b4c90ec7cfd3c8b9e7cbe41461d1dc1258a74 /src/node.cc
parent1faf6f459f220bb67866f12b30626ef7856876ee (diff)
src: make code cache test work with snapshots
Keep track of snapshotted modules in JS land, and move bootstrap switches into StartExecution() so that they are not included into part of the environment-independent bootstrap process. PR-URL: https://github.com/nodejs/node/pull/32984 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r--src/node.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node.cc b/src/node.cc
index ce2834448e9..f14ff44be80 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -350,6 +350,7 @@ MaybeLocal<Value> Environment::BootstrapNode() {
return scope.EscapeMaybe(result);
}
+ // TODO(joyeecheung): skip these in the snapshot building for workers.
auto thread_switch_id =
is_main_thread() ? "internal/bootstrap/switches/is_main_thread"
: "internal/bootstrap/switches/is_not_main_thread";