Skip to content

Commit 21459cb

Browse files
committed
src: NODE_RELEASE should be node
So we remain compatible with Node.js. PR-URL: #36 Reviewed-by: Trevor Norris <trev.norris@gmail.com>
1 parent 9eb4d06 commit 21459cb

10 files changed

+13
-13
lines changed

src/node_version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#endif
4545

4646
#ifndef NODE_RELEASE
47-
#define NODE_RELEASE "nsolid"
47+
#define NODE_RELEASE "node"
4848
#endif
4949

5050
#ifndef NODE_TAG
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(nsolid:*) UnhandledPromiseRejectionWarning: Error: alas
1+
(node:*) UnhandledPromiseRejectionWarning: Error: alas
22
at *
33
at *
44
at *
@@ -7,4 +7,4 @@
77
at *
88
at *
99
(Use `nsolid --trace-warnings ...` to show where the warning was created)
10-
(nsolid:*) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https:*nodejs.org*api*cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
10+
(node:*) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https:*nodejs.org*api*cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

test/fixtures/errors/unhandled_promise_trace_warnings.snapshot

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(nsolid:*) UnhandledPromiseRejectionWarning: Error: This was rejected
1+
(node:*) UnhandledPromiseRejectionWarning: Error: This was rejected
22
at *
33
at *
44
at *
@@ -9,15 +9,15 @@
99
at *
1010
at *
1111
at *
12-
(nsolid:*) Error: This was rejected
12+
(node:*) Error: This was rejected
1313
at *
1414
at *
1515
at *
1616
at *
1717
at *
1818
at *
1919
at *
20-
(nsolid:*) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
20+
(node:*) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
2121
at *
2222
at *
2323
at Promise.then (<anonymous>)

test/message/v8_warning.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
(nsolid:*) V8: *v8_warning.js:* Invalid asm.js: Invalid return type
1+
(node:*) V8: *v8_warning.js:* Invalid asm.js: Invalid return type
22
(Use `* --trace-warnings ...` to show where the warning was created)

test/parallel/test-process-redirect-warnings-env.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ const warnpath = tmpdir.resolve('warnings.txt');
2020
fork(warnmod, { env: { ...process.env, NODE_REDIRECT_WARNINGS: warnpath } })
2121
.on('exit', common.mustCall(() => {
2222
fs.readFile(warnpath, 'utf8', common.mustSucceed((data) => {
23-
assert.match(data, /\(nsolid:\d+\) Warning: a bad practice warning/);
23+
assert.match(data, /\(node:\d+\) Warning: a bad practice warning/);
2424
}));
2525
}));

test/parallel/test-process-redirect-warnings.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ const warnpath = tmpdir.resolve('warnings.txt');
2020
fork(warnmod, { execArgv: [`--redirect-warnings=${warnpath}`] })
2121
.on('exit', common.mustCall(() => {
2222
fs.readFile(warnpath, 'utf8', common.mustSucceed((data) => {
23-
assert.match(data, /\(nsolid:\d+\) Warning: a bad practice warning/);
23+
assert.match(data, /\(node:\d+\) Warning: a bad practice warning/);
2424
}));
2525
}));

test/parallel/test-process-release.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ require('../common');
55
const assert = require('assert');
66
const versionParts = process.versions.node.split('.');
77

8-
assert.strictEqual(process.release.name, 'nsolid');
8+
assert.strictEqual(process.release.name, 'node');
99

1010
// It's expected that future LTS release lines will have additional
1111
// branches in here
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
(nsolid:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set.
2+
(node:*) Warning: The 'NODE_DISABLE_COLORS' env is ignored due to the 'FORCE_COLOR' env being set.
33
(Use `* --trace-warnings ...` to show where the warning was created)
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
(nsolid:*) Warning: The 'NODE_DISABLE_COLORS' and 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
2+
(node:*) Warning: The 'NODE_DISABLE_COLORS' and 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
33
(Use `* --trace-warnings ...` to show where the warning was created)
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
(nsolid:*) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
1+
(node:*) Warning: The 'NO_COLOR' env is ignored due to the 'FORCE_COLOR' env being set.
22
(Use `* --trace-warnings ...` to show where the warning was created)

0 commit comments

Comments
 (0)