diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2018-12-13 23:15:37 +0800 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-12-15 21:22:10 +0100 |
commit | 7a6bd9f9b7aa8f19eb955c226fefd2b8a74c23be (patch) | |
tree | a46d42524f3761246da1192f96039124886373c2 /test | |
parent | 9021b0d3fcac507b335bd1117155e555adbd7c28 (diff) | |
download | android-node-v8-7a6bd9f9b7aa8f19eb955c226fefd2b8a74c23be.tar.gz android-node-v8-7a6bd9f9b7aa8f19eb955c226fefd2b8a74c23be.tar.bz2 android-node-v8-7a6bd9f9b7aa8f19eb955c226fefd2b8a74c23be.zip |
src: pass isMainThread into bootstrap/node.js directly
Instead of loading the working binding for the sole purpose of
detecting whether we are inside the main thread unconditionally.
PR-URL: https://github.com/nodejs/node/pull/25017
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-bootstrap-modules.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-bootstrap-modules.js b/test/parallel/test-bootstrap-modules.js index 5c1693ca89..8f1592084c 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 ? 60 : 82; +const kMaxModuleCount = isMainThread ? 59 : 82; assert(list.length <= kMaxModuleCount, `Total length: ${list.length}\n` + list.join('\n') |