From 04a1dc5854580eeb3fe2a01afd9cff98e43c30aa Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Fri, 24 Nov 2023 13:47:32 +0100 Subject: [PATCH] src: NODE_RELEASE should be node So we remain compatible with Node.js. --- src/node_version.h | 2 +- test/message/unhandled_promise_trace_warnings.out | 6 +++--- test/message/v8_warning.out | 2 +- test/parallel/test-process-redirect-warnings-env.js | 2 +- test/parallel/test-process-redirect-warnings.js | 2 +- test/parallel/test-process-release.js | 2 +- test/pseudo-tty/test-tty-color-support-warning-2.out | 2 +- test/pseudo-tty/test-tty-color-support-warning.out | 2 +- test/pseudo-tty/test-tty-color-support.out | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/node_version.h b/src/node_version.h index 4286c10d36c..67af3d4d1da 100644 --- a/src/node_version.h +++ b/src/node_version.h @@ -44,7 +44,7 @@ #endif #ifndef NODE_RELEASE -#define NODE_RELEASE "nsolid" +#define NODE_RELEASE "node" #endif #ifndef NODE_TAG diff --git a/test/message/unhandled_promise_trace_warnings.out b/test/message/unhandled_promise_trace_warnings.out index fea340d0fcc..a8717d0e13d 100644 --- a/test/message/unhandled_promise_trace_warnings.out +++ b/test/message/unhandled_promise_trace_warnings.out @@ -1,4 +1,4 @@ -(nsolid:*) UnhandledPromiseRejectionWarning: Error: This was rejected +(node:*) UnhandledPromiseRejectionWarning: Error: This was rejected at * (*test*message*unhandled_promise_trace_warnings.js:*) at * at * @@ -9,7 +9,7 @@ at * at * at * -(nsolid:*) Error: This was rejected +(node:*) Error: This was rejected at * (*test*message*unhandled_promise_trace_warnings.js:*) at * at * @@ -17,7 +17,7 @@ at * at * at * -(nsolid:*) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) +(node:*) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) at handledRejection (node:internal/process/promises:*) at promiseRejectHandler (node:internal/process/promises:*) at Promise.then * diff --git a/test/message/v8_warning.out b/test/message/v8_warning.out index e6d42dc7236..6c419c83cdd 100644 --- a/test/message/v8_warning.out +++ b/test/message/v8_warning.out @@ -1,2 +1,2 @@ -(nsolid:*) V8: *v8_warning.js:* Invalid asm.js: Invalid return type +(node:*) V8: *v8_warning.js:* Invalid asm.js: Invalid return type (Use `* --trace-warnings ...` to show where the warning was created) diff --git a/test/parallel/test-process-redirect-warnings-env.js b/test/parallel/test-process-redirect-warnings-env.js index b12a6650f7b..1e575cfa67c 100644 --- a/test/parallel/test-process-redirect-warnings-env.js +++ b/test/parallel/test-process-redirect-warnings-env.js @@ -20,6 +20,6 @@ const warnpath = tmpdir.resolve('warnings.txt'); fork(warnmod, { env: { ...process.env, NODE_REDIRECT_WARNINGS: warnpath } }) .on('exit', common.mustCall(() => { fs.readFile(warnpath, 'utf8', common.mustSucceed((data) => { - assert.match(data, /\(nsolid:\d+\) Warning: a bad practice warning/); + assert.match(data, /\(node:\d+\) Warning: a bad practice warning/); })); })); diff --git a/test/parallel/test-process-redirect-warnings.js b/test/parallel/test-process-redirect-warnings.js index 78d7d4af0de..3d71fb2abce 100644 --- a/test/parallel/test-process-redirect-warnings.js +++ b/test/parallel/test-process-redirect-warnings.js @@ -20,6 +20,6 @@ const warnpath = tmpdir.resolve('warnings.txt'); fork(warnmod, { execArgv: [`--redirect-warnings=${warnpath}`] }) .on('exit', common.mustCall(() => { fs.readFile(warnpath, 'utf8', common.mustSucceed((data) => { - assert.match(data, /\(nsolid:\d+\) Warning: a bad practice warning/); + assert.match(data, /\(node:\d+\) Warning: a bad practice warning/); })); })); diff --git a/test/parallel/test-process-release.js b/test/parallel/test-process-release.js index 3eb51a681c4..98a089a8f9e 100644 --- a/test/parallel/test-process-release.js +++ b/test/parallel/test-process-release.js @@ -5,7 +5,7 @@ require('../common'); const assert = require('assert'); const versionParts = process.versions.node.split('.'); -assert.strictEqual(process.release.name, 'nsolid'); +assert.strictEqual(process.release.name, 'node'); // It's expected that future LTS release lines will have additional // branches in here diff --git a/test/pseudo-tty/test-tty-color-support-warning-2.out b/test/pseudo-tty/test-tty-color-support-warning-2.out index 0c7dd89eaae..37b470a5f10 100644 --- a/test/pseudo-tty/test-tty-color-support-warning-2.out +++ b/test/pseudo-tty/test-tty-color-support-warning-2.out @@ -1,3 +1,3 @@ -(nsolid:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set. +(node:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set. (Use `* --trace-warnings ...` to show where the warning was created) diff --git a/test/pseudo-tty/test-tty-color-support-warning.out b/test/pseudo-tty/test-tty-color-support-warning.out index 95a3e7c3c7f..b25d2e42cf7 100644 --- a/test/pseudo-tty/test-tty-color-support-warning.out +++ b/test/pseudo-tty/test-tty-color-support-warning.out @@ -1,3 +1,3 @@ -(nsolid:*) Warning: The 'NODE_DISABLE_COLORS' and 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set. +(node:*) Warning: The 'NODE_DISABLE_COLORS' and 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set. (Use `* --trace-warnings ...` to show where the warning was created) diff --git a/test/pseudo-tty/test-tty-color-support.out b/test/pseudo-tty/test-tty-color-support.out index 0765345aeb8..df5831c555b 100644 --- a/test/pseudo-tty/test-tty-color-support.out +++ b/test/pseudo-tty/test-tty-color-support.out @@ -1,2 +1,2 @@ -(nsolid:*) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set. +(node:*) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set. (Use `* --trace-warnings ...` to show where the warning was created)