summaryrefslogtreecommitdiff
path: root/test/parallel/test-bootstrap-modules.js
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-12-03 00:49:12 +0800
committerJoyee Cheung <joyeec9h3@gmail.com>2018-12-11 06:40:09 +0800
commit44a5fe145759a2fa43247da2f40a55df23572944 (patch)
tree74c346b396e14f5da4fbc85d4a48bd974b2a3432 /test/parallel/test-bootstrap-modules.js
parent9fb4fa8ded0504f63c89ed969640e5a2df8d0d59 (diff)
downloadandroid-node-v8-44a5fe145759a2fa43247da2f40a55df23572944.tar.gz
android-node-v8-44a5fe145759a2fa43247da2f40a55df23572944.tar.bz2
android-node-v8-44a5fe145759a2fa43247da2f40a55df23572944.zip
process: specialize building and storage of process.config
Instead of treating config.gypi as a JavaScript file, specialize the processing in js2c and make the serialized result a real JSON string (with 'true' and 'false' converted to boolean values) so we don't have to use a custom deserializer during bootstrap. In addition, store the JSON string separately in NativeModuleLoader, and keep it separate from the map of the builtin source code, so we don't have to put it onto `NativeModule._source` and delete it later, though we still preserve it in `process.binding('natives')`, which we don't use anymore. This patch also makes the map of builtin source code and the config.gypi string available through side-effect-free getters in C++. PR-URL: https://github.com/nodejs/node/pull/24816 Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'test/parallel/test-bootstrap-modules.js')
-rw-r--r--test/parallel/test-bootstrap-modules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-bootstrap-modules.js b/test/parallel/test-bootstrap-modules.js
index 8f83194cbb..5c1693ca89 100644
--- a/test/parallel/test-bootstrap-modules.js
+++ b/test/parallel/test-bootstrap-modules.js
@@ -9,7 +9,7 @@ const common = require('../common');
const assert = require('assert');
const isMainThread = common.isMainThread;
-const kMaxModuleCount = isMainThread ? 58 : 80;
+const kMaxModuleCount = isMainThread ? 60 : 82;
assert(list.length <= kMaxModuleCount,
`Total length: ${list.length}\n` + list.join('\n')