readline: avoid painting default prompt before prompt() #74849
Annotations
10 errors, 1 warning, and 1 notice
|
test-macOS:
test/parallel/test-repl-history-navigation.js#L882
--- stderr ---
Failed test # 2
Last outputs: [
'> ',
'> '
]
/Users/runner/work/node/node/node/test/parallel/test-repl-history-navigation.js:888
throw e;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ '> '
- '> Array(100).fill(1).map((e, i) => i ** 2)'
^
at Writable.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-repl-history-navigation.js:882:20)
at Writable._write (/Users/runner/work/node/node/node/test/common/index.js:508:15)
at writeOrBuffer (node:internal/streams/writable:569:12)
at _write (node:internal/streams/writable:498:10)
at Writable.write (node:internal/streams/writable:507:10)
at [_writeToOutput] [as _writeToOutput] (node:internal/readline/interface:501:19)
at [_refreshLine] [as _refreshLine] (node:internal/readline/interface:552:27)
at repl._refreshLine (node:internal/repl/utils:493:5)
at REPLServer.prompt (node:internal/readline/interface:446:25)
at node:internal/readline/interface:365:12 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '> ',
expected: '> Array(100).fill(1).map((e, i) => i ** 2)',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node --expose-internals /Users/runner/work/node/node/node/test/parallel/test-repl-history-navigation.js
|
|
test-macOS:
test/parallel/test-repl-editor.js#L40
--- stderr ---
node:internal/assert/utils:146
throw error;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
'\x1B[1G\x1B[0J> \x1B[3G.editor\n' +
'// Entering editor mode (Ctrl+D to finish, Ctrl+C to cancel)\n' +
'let i = 1;\n' +
'i + 3\n' +
'4\n' +
+ '\x1B[1G\x1B[0J> \x1B[3G\x1B[1G\x1B[0J> \x1B[3G'
- '\x1B[1G\x1B[0J> \x1B[3G'
at run (/Users/runner/work/node/node/node/test/parallel/test-repl-editor.js:40:10)
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-repl-editor.js:72:7)
at Module._compile (node:internal/modules/cjs/loader:1829:14)
at Object..js (node:internal/modules/cjs/loader:1969:10)
at Module.load (node:internal/modules/cjs/loader:1552:32)
at Module._load (node:internal/modules/cjs/loader:1354:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '\x1B[1G\x1B[0J> \x1B[3G.editor\n' +
'// Entering editor mode (Ctrl+D to finish, Ctrl+C to cancel)\n' +
'let i = 1;\n' +
'i + 3\n' +
'4\n' +
'\x1B[1G\x1B[0J> \x1B[3G\x1B[1G\x1B[0J> \x1B[3G',
expected: '\x1B[1G\x1B[0J> \x1B[3G.editor\n' +
'// Entering editor mode (Ctrl+D to finish, Ctrl+C to cancel)\n' +
'let i = 1;\n' +
'i + 3\n' +
'4\n' +
'\x1B[1G\x1B[0J> \x1B[3G',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-repl-editor.js
|
|
test-macOS:
test/parallel/test-readline-undefined-columns.js#L0
--- stderr ---
node:events:487
throw er; // Unhandled 'error' event
^
Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at _write (node:internal/streams/writable:486:11)
at Writable.write (node:internal/streams/writable:507:10)
at cursorTo (node:internal/readline/callbacks:54:17)
at [_refreshLine] [as _refreshLine] (node:internal/readline/interface:537:5)
at Interface.prompt (node:internal/readline/interface:446:25)
at node:internal/readline/interface:365:12
at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
Emitted 'error' event on PassThrough instance at:
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
code: 'ERR_STREAM_WRITE_AFTER_END'
}
Node.js v26.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-readline-undefined-columns.js
|
|
test-macOS:
test/parallel/test-readline-tab-complete.js#L0
--- stderr ---
node:internal/readline/interface:606
throw new ERR_USE_AFTER_CLOSE('readline');
^
Error [ERR_USE_AFTER_CLOSE]: readline was closed
at Interface.resume (node:internal/readline/interface:606:13)
at Interface.prompt (node:internal/readline/interface:442:27)
at node:internal/readline/interface:365:12
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_USE_AFTER_CLOSE'
}
Node.js v26.0.0-pre
Command: out/Release/node --expose-internals /Users/runner/work/node/node/node/test/parallel/test-readline-tab-complete.js
|
|
test-macOS:
test/parallel/test-readline-set-raw-mode.js#L0
--- stderr ---
node:internal/readline/interface:606
throw new ERR_USE_AFTER_CLOSE('readline');
^
Error [ERR_USE_AFTER_CLOSE]: readline was closed
at Interface.resume (node:internal/readline/interface:606:13)
at Interface.prompt (node:internal/readline/interface:442:27)
at node:internal/readline/interface:365:12
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_USE_AFTER_CLOSE'
}
Node.js v26.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-readline-set-raw-mode.js
|
|
test-macOS:
test/parallel/test-readline-promises-tab-complete.js#L0
--- stderr ---
node:internal/process/task_queues:104
runMicrotasks();
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'γ\x1B[1G\x1B[0J> γ\x1B[3G'
- 'γ'
at /Users/runner/work/node/node/node/test/parallel/test-readline-promises-tab-complete.js:79:18
at /Users/runner/work/node/node/node/test/common/index.js:508:15
at process.processTicksAndRejections (node:internal/process/task_queues:104:5) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'γ\x1B[1G\x1B[0J> γ\x1B[3G',
expected: 'γ',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node --expose-internals /Users/runner/work/node/node/node/test/parallel/test-readline-promises-tab-complete.js
|
|
test-macOS:
test/parallel/test-readline-reopen.js#L0
--- stderr ---
node:internal/readline/emitKeypressEvents:74
throw err;
^
Error [ERR_USE_AFTER_CLOSE]: readline was closed
at Interface.resume (node:internal/readline/interface:606:13)
at Interface.prompt (node:internal/readline/interface:442:27)
at [_onLine] [as _onLine] (node:internal/readline/interface:480:14)
at [_line] [as _line] (node:internal/readline/interface:984:18)
at [_ttyWrite] [as _ttyWrite] (node:internal/readline/interface:1512:24)
at PassThrough.onkeypress (node:internal/readline/interface:289:20)
at PassThrough.emit (node:events:509:20)
at emitKeys (node:internal/readline/utils:371:14)
at emitKeys.next (<anonymous>)
at PassThrough.onData (node:internal/readline/emitKeypressEvents:64:36) {
code: 'ERR_USE_AFTER_CLOSE'
}
Node.js v26.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-readline-reopen.js
|
|
test-macOS:
test/parallel/test-readline-promises-interface.js#L0
--- stderr ---
node:internal/readline/interface:606
throw new ERR_USE_AFTER_CLOSE('readline');
^
Error [ERR_USE_AFTER_CLOSE]: readline was closed
at Interface.resume (node:internal/readline/interface:606:13)
at Interface.prompt (node:internal/readline/interface:442:27)
at node:internal/readline/interface:365:12
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_USE_AFTER_CLOSE'
}
Node.js v26.0.0-pre
Command: out/Release/node --expose-internals /Users/runner/work/node/node/node/test/parallel/test-readline-promises-interface.js
|
|
test-macOS:
test/parallel/test-readline-interface-no-trailing-newline.js#L26
--- stderr ---
node:internal/assert/utils:146
throw error;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ '{\n\x1B[1G\x1B[0J> \x1B[3G}'
- '{\n}'
^
at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-readline-interface-no-trailing-newline.js:26:8)
at Module._compile (node:internal/modules/cjs/loader:1829:14)
at Object..js (node:internal/modules/cjs/loader:1969:10)
at Module.load (node:internal/modules/cjs/loader:1552:32)
at Module._load (node:internal/modules/cjs/loader:1354:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: '{\n\x1B[1G\x1B[0J> \x1B[3G}',
expected: '{\n}',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v26.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-readline-interface-no-trailing-newline.js
|
|
test-macOS:
test/parallel/test-readline-interface.js#L0
--- stderr ---
node:internal/readline/interface:606
throw new ERR_USE_AFTER_CLOSE('readline');
^
Error [ERR_USE_AFTER_CLOSE]: readline was closed
at Interface.resume (node:internal/readline/interface:606:13)
at Interface.prompt (node:internal/readline/interface:442:27)
at node:internal/readline/interface:365:12
at process.processTicksAndRejections (node:internal/process/task_queues:85:11) {
code: 'ERR_USE_AFTER_CLOSE'
}
Node.js v26.0.0-pre
Command: out/Release/node --expose-internals /Users/runner/work/node/node/node/test/parallel/test-readline-interface.js
|
|
test-macOS
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
sccache stats
63% - 3113 hits, 1854 misses, 0 errors
|