nodejs: update to 18.7.0
This commit is contained in:
parent
924b664573
commit
608a799a19
|
@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://nodejs.org/
|
|||
TERMUX_PKG_DESCRIPTION="Open Source, cross-platform JavaScript runtime environment"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="Yaksh Bariya <yakshbari4@gmail.com>"
|
||||
TERMUX_PKG_VERSION=18.4.0
|
||||
TERMUX_PKG_VERSION=18.7.0
|
||||
TERMUX_PKG_SRCURL=https://nodejs.org/dist/v${TERMUX_PKG_VERSION}/node-v${TERMUX_PKG_VERSION}.tar.xz
|
||||
TERMUX_PKG_SHA256=94d6f19a970361f8c8ad17450604095389f51ca6a00dcde59c21f373e95abbb5
|
||||
TERMUX_PKG_SHA256=8834a33c92dfe6ba8903e6715caeaa25dff4657e703c54cd06ec113493e2c3c2
|
||||
# Note that we do not use a shared libuv to avoid an issue with the Android
|
||||
# linker, which does not use symbols of linked shared libraries when resolving
|
||||
# symbols on dlopen(). See https://github.com/termux/termux-packages/issues/462.
|
||||
|
|
|
@ -1,20 +1,31 @@
|
|||
--- ./lib/internal/test_runner/test.js.orig 2022-05-21 11:46:57.293199020 +0530
|
||||
+++ ./lib/internal/test_runner/test.js 2022-05-21 13:15:42.882384210 +0530
|
||||
@@ -19,7 +19,7 @@
|
||||
const { createDeferredPromise } = require('internal/util');
|
||||
const { isPromise } = require('internal/util/types');
|
||||
const { isUint32 } = require('internal/validators');
|
||||
diff --git a/lib/internal/test_runner/test.js b/lib/internal/test_runner/test.js
|
||||
index 1663958f..8813f52b 100644
|
||||
--- a/lib/internal/test_runner/test.js
|
||||
+++ b/lib/internal/test_runner/test.js
|
||||
@@ -39,7 +39,7 @@ const {
|
||||
} = require('internal/validators');
|
||||
const { setTimeout } = require('timers/promises');
|
||||
const { TIMEOUT_MAX } = require('internal/timers');
|
||||
-const { cpus } = require('os');
|
||||
+const { numcpus } = require('os');
|
||||
const { bigint: hrtime } = process.hrtime;
|
||||
const kCallbackAndPromisePresent = 'callbackAndPromisePresent';
|
||||
const kCancelledByParent = 'cancelledByParent';
|
||||
@@ -32,7 +32,7 @@
|
||||
@@ -53,7 +53,7 @@ const noop = FunctionPrototype;
|
||||
const isTestRunner = getOptionValue('--test');
|
||||
const testOnlyFlag = !isTestRunner && getOptionValue('--test-only');
|
||||
// TODO(cjihrig): Use uv_available_parallelism() once it lands.
|
||||
-const rootConcurrency = isTestRunner ? cpus().length : 1;
|
||||
+const rootConcurrency = isTestRunner ? numcpus() : 1;
|
||||
-const rootConcurrency = isTestRunner ? MathMax(cpus().length - 1, 1) : 1;
|
||||
+const rootConcurrency = isTestRunner ? MathMax(numcpus() - 1, 1) : 1;
|
||||
const kShouldAbort = Symbol('kShouldAbort');
|
||||
|
||||
class TestContext {
|
||||
#test;
|
||||
|
||||
@@ -153,7 +153,7 @@ class Test extends AsyncResource {
|
||||
this.concurrency = concurrency;
|
||||
} else if (typeof concurrency === 'boolean') {
|
||||
if (concurrency) {
|
||||
- this.concurrency = isTestRunner ? MathMax(cpus().length - 1, 1) : Infinity;
|
||||
+ this.concurrency = isTestRunner ? MathMax(numcpus() - 1, 1) : Infinity;
|
||||
} else {
|
||||
this.concurrency = 1;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
--- ./node.gyp.orig 2022-06-02 07:52:24.000000000 +0530
|
||||
+++ ./node.gyp 2022-06-04 12:08:56.649547879 +0530
|
||||
diff --git a/node.gyp b/node.gyp
|
||||
index e8227bb2..c804c194 100644
|
||||
--- a/node.gyp
|
||||
+++ b/node.gyp
|
||||
@@ -157,7 +157,8 @@
|
||||
],
|
||||
|
||||
|
@ -10,7 +12,7 @@
|
|||
],
|
||||
|
||||
'dependencies': [
|
||||
@@ -452,6 +453,7 @@
|
||||
@@ -458,6 +459,7 @@
|
||||
|
||||
'include_dirs': [
|
||||
'src',
|
||||
|
@ -18,7 +20,7 @@
|
|||
'<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
|
||||
],
|
||||
'dependencies': [
|
||||
@@ -1104,306 +1106,6 @@
|
||||
@@ -1109,307 +1111,6 @@
|
||||
} ],
|
||||
]
|
||||
}, # specialize_node_d
|
||||
|
@ -101,6 +103,7 @@
|
|||
-
|
||||
- 'dependencies': [
|
||||
- '<(node_lib_target_name)',
|
||||
- 'deps/base64/base64.gyp:base64',
|
||||
- 'deps/googletest/googletest.gyp:gtest',
|
||||
- 'deps/googletest/googletest.gyp:gtest_main',
|
||||
- 'deps/histogram/histogram.gyp:histogram',
|
||||
|
|
Loading…
Reference in New Issue