Skip to content

Commit d49df5c

Browse files
committed
test: adapt message tests for V8 10.2
There are some changes for function names in stack traces. PR-URL: #42657 Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent c6b4e96 commit d49df5c

26 files changed

+56
-56
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Error: test
22
at one (*fixtures*async-error.js:4:9)
33
at two (*fixtures*async-error.js:17:9)
4-
at processTicksAndRejections (node:internal/process/task_queues:*:*)
4+
at process.processTicksAndRejections (node:internal/process/task_queues:*:*)
55
at async three (*fixtures*async-error.js:20:3)
66
at async four (*fixtures*async-error.js:24:3)
77
at async main (*message*async_error_nexttick_main.js:7:5)

test/message/core_line_numbers.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ RangeError: Invalid input
77
at Object.decode (node:punycode:*:*)
88
at Object.<anonymous> (*test*message*core_line_numbers.js:*:*)
99
at Module._compile (node:internal/modules/cjs/loader:*:*)
10-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*)
10+
at Module._extensions..js (node:internal/modules/cjs/loader:*:*)
1111
at Module.load (node:internal/modules/cjs/loader:*:*)
12-
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
12+
at Module._load (node:internal/modules/cjs/loader:*:*)
1313
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
1414
at node:internal/main/run_main_module:*:*
1515

test/message/error_aggregateTwoErrors.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ throw aggregateTwoErrors(err, originalError);
44
AggregateError: original
55
at Object.<anonymous> (*test*message*error_aggregateTwoErrors.js:*:*)
66
at Module._compile (node:internal/modules/cjs/loader:*:*)
7-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*)
7+
at Module._extensions..js (node:internal/modules/cjs/loader:*:*)
88
at Module.load (node:internal/modules/cjs/loader:*:*)
9-
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
9+
at Module._load (node:internal/modules/cjs/loader:*:*)
1010
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
1111
at node:internal/main/run_main_module:*:* {
1212
code: 'ERR0'

test/message/error_exit.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
99

1010
at Object.<anonymous> (*test*message*error_exit.js:*:*)
1111
at Module._compile (node:internal/modules/cjs/loader:*:*)
12-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*)
12+
at Module._extensions..js (node:internal/modules/cjs/loader:*:*)
1313
at Module.load (node:internal/modules/cjs/loader:*:*)
14-
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
14+
at Module._load (node:internal/modules/cjs/loader:*:*)
1515
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
1616
at node:internal/main/run_main_module:*:* {
1717
generatedMessage: true,

test/message/error_with_nul.out

-16 Bytes
Binary file not shown.

test/message/events_unhandled_error_common_trace.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Error: foo:bar
77
at foo (*events_unhandled_error_common_trace.js:*:*)
88
at Object.<anonymous> (*events_unhandled_error_common_trace.js:*:*)
99
at Module._compile (node:internal/modules/cjs/loader:*:*)
10-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*)
10+
at Module._extensions..js (node:internal/modules/cjs/loader:*:*)
1111
at Module.load (node:internal/modules/cjs/loader:*:*)
12-
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
12+
at Module._load (node:internal/modules/cjs/loader:*:*)
1313
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
1414
at node:internal/main/run_main_module:*:*
1515
Emitted 'error' event at:

test/message/events_unhandled_error_nexttick.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ node:events:*
55
Error
66
at Object.<anonymous> (*events_unhandled_error_nexttick.js:*:*)
77
at Module._compile (node:internal/modules/cjs/loader:*:*)
8-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*)
8+
at Module._extensions..js (node:internal/modules/cjs/loader:*:*)
99
at Module.load (node:internal/modules/cjs/loader:*:*)
10-
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
10+
at Module._load (node:internal/modules/cjs/loader:*:*)
1111
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
1212
at node:internal/main/run_main_module:*:*
1313
Emitted 'error' event at:
1414
at *events_unhandled_error_nexttick.js:*:*
15-
at processTicksAndRejections (node:internal/process/task_queues:*:*)
15+
at process.processTicksAndRejections (node:internal/process/task_queues:*:*)
1616

1717
Node.js *

test/message/events_unhandled_error_sameline.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ node:events:*
55
Error
66
at Object.<anonymous> (*events_unhandled_error_sameline.js:*:*)
77
at Module._compile (node:internal/modules/cjs/loader:*:*)
8-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*)
8+
at Module._extensions..js (node:internal/modules/cjs/loader:*:*)
99
at Module.load (node:internal/modules/cjs/loader:*:*)
10-
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
10+
at Module._load (node:internal/modules/cjs/loader:*:*)
1111
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
1212
at node:internal/main/run_main_module:*:*
1313
Emitted 'error' event at:

test/message/events_unhandled_error_subclass.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ node:events:*
55
Error
66
at Object.<anonymous> (*events_unhandled_error_subclass.js:*:*)
77
at Module._compile (node:internal/modules/cjs/loader:*:*)
8-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*)
8+
at Module._extensions..js (node:internal/modules/cjs/loader:*:*)
99
at Module.load (node:internal/modules/cjs/loader:*:*)
10-
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
10+
at Module._load (node:internal/modules/cjs/loader:*:*)
1111
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
1212
at node:internal/main/run_main_module:*:*
1313
Emitted 'error' event on Foo instance at:

test/message/if-error-has-good-stack.out

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
1212
at a (*if-error-has-good-stack.js:*:*)
1313
at Object.<anonymous> (*if-error-has-good-stack.js:*:*)
1414
at Module._compile (node:internal/modules/cjs/loader:*:*)
15-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*)
15+
at Module._extensions..js (node:internal/modules/cjs/loader:*:*)
1616
at Module.load (node:internal/modules/cjs/loader:*:*)
17-
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
17+
at Module._load (node:internal/modules/cjs/loader:*:*)
1818
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
1919
at node:internal/main/run_main_module:*:* {
2020
generatedMessage: false,
@@ -25,9 +25,9 @@ AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error
2525
at a (*if-error-has-good-stack.js:*:*)
2626
at Object.<anonymous> (*if-error-has-good-stack.js:*:*)
2727
at Module._compile (node:internal/modules/cjs/loader:*:*)
28-
at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*)
28+
at Module._extensions..js (node:internal/modules/cjs/loader:*:*)
2929
at Module.load (node:internal/modules/cjs/loader:*:*)
30-
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
30+
at Module._load (node:internal/modules/cjs/loader:*:*)
3131
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
3232
at node:internal/main/run_main_module:*:*
3333
expected: null,

0 commit comments

Comments
 (0)