repl: add experimental TypeScript support #77796
Annotations
8 errors and 1 notice
|
test-macOS
Process completed with exit code 2.
|
|
test-macOS:
test/sequential/test-cli-syntax-require.js#L27
--- stderr ---
[process 24433]: --- stderr ---
node:internal/main/check_syntax:79
module.exports = {
^
ReferenceError: module is not defined
at node:internal/main/check_syntax:79:1
Node.js v27.0.0-pre
[process 24433]: --- stdout ---
[process 24433]: status = 1, signal = null
/Users/runner/work/node/node/node/test/common/child_process.js:112
throw error;
^
Error: - stderr did not match expectation, checker throws:
AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^SyntaxError: \b/m. Input:
'node:internal/main/check_syntax:79\n' +
'module.exports = {\n' +
'^\n' +
'\n' +
'ReferenceError: module is not defined\n' +
' at node:internal/main/check_syntax:79:1\n' +
'\n' +
'Node.js v27.0.0-pre'
at stderr (/Users/runner/work/node/node/node/test/sequential/test-cli-syntax-require.js:27:16)
at checkOutput (/Users/runner/work/node/node/node/test/common/child_process.js:52:7)
at expectSyncExit (/Users/runner/work/node/node/node/test/common/child_process.js:122:32)
at spawnSyncAndExit (/Users/runner/work/node/node/node/test/common/child_process.js:143:10)
at /Users/runner/work/node/node/node/test/sequential/test-cli-syntax-require.js:20:5
at Array.forEach (<anonymous>)
at /Users/runner/work/node/node/node/test/sequential/test-cli-syntax-require.js:16:23
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/runner/work/node/node/node/test/sequential/test-cli-syntax-require.js:15:19)
at Module._compile (node:internal/modules/cjs/loader:1947:14) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'node:internal/main/check_syntax:79\n' +
'module.exports = {\n' +
'^\n' +
'\n' +
'ReferenceError: module is not defined\n' +
' at node:internal/main/check_syntax:79:1\n' +
'\n' +
'Node.js v27.0.0-pre',
expected: /^SyntaxError: \b/m,
operator: 'match',
diff: 'simple'
}
at /Users/runner/work/node/node/node/test/sequential/test-cli-syntax-require.js:20:5
at Array.forEach (<anonymous>)
at /Users/runner/work/node/node/node/test/sequential/test-cli-syntax-require.js:16:23
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/runner/work/node/node/node/test/sequential/test-cli-syntax-require.js:15:19)
at Module._compile (node:internal/modules/cjs/loader:1947:14)
at Object..js (node:internal/modules/cjs/loader:2087:10)
at Module.load (node:internal/modules/cjs/loader:1669:32)
at Module._load (node:internal/modules/cjs/loader:1450:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:260:19) {
command: '/Users/runner/work/node/node/node/out/Release/node -r /Users/runner/work/node/node/node/test/fixtures/no-wrapper.js -c /Users/runner/work/node/node/node/test/fixtures/syntax/illegal_if_not_wrapped.js'
}
Node.js v27.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/sequential/test-cli-syntax-require.js
|
|
test-macOS:
test/sequential/test-cli-syntax-good.js#L0
--- stderr ---
node:assert:818
throw newErr;
^
AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Command failed: "${ESCAPED_0}" ${ESCAPED_1} "${ESCAPED_2}"
node:internal/main/check_syntax:79
module.exports = {
^
ReferenceError: module is not defined
at node:internal/main/check_syntax:79:1
Node.js v27.0.0-pre
at genericNodeError (node:internal/errors:998:15)
at wrappedFn (node:internal/errors:543:14)
at ChildProcess.exithandler (node:child_process:417:12)
at ChildProcess.emit (node:events:509:20)
at maybeClose (node:internal/child_process:1125:16)
at Socket.<anonymous> (node:internal/child_process:497:11)
at Socket.emit (node:events:509:20)
at Pipe.<anonymous> (node:net:355:12) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: Error: Command failed: "${ESCAPED_0}" ${ESCAPED_1} "${ESCAPED_2}"
node:internal/main/check_syntax:79
module.exports = {
^
ReferenceError: module is not defined
at node:internal/main/check_syntax:79:1
Node.js v27.0.0-pre
at genericNodeError (node:internal/errors:998:15)
at wrappedFn (node:internal/errors:543:14)
at ChildProcess.exithandler (node:child_process:417:12)
at ChildProcess.emit (node:events:509:20)
at maybeClose (node:internal/child_process:1125:16)
at Socket.<anonymous> (node:internal/child_process:497:11)
at Socket.emit (node:events:509:20)
at Pipe.<anonymous> (node:net:355:12) {
code: 1,
killed: false,
signal: null,
cmd: '"${ESCAPED_0}" ${ESCAPED_1} "${ESCAPED_2}"'
},
expected: null,
operator: 'ifError',
diff: 'simple'
}
Node.js v27.0.0-pre
--- stdout ---
-- stdout --
-- stderr --
node:internal/main/check_syntax:79
module.exports = {
^
ReferenceError: module is not defined
at node:internal/main/check_syntax:79:1
Node.js v27.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/sequential/test-cli-syntax-good.js
|
|
test-macOS:
test/es-module/test-esm-import-flag.mjs#L133
--- stdout ---
Test failure: 'should import when running --check'
Location: test/es-module/test-esm-import-flag.mjs:123:3
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'node:internal/main/check_syntax:79\n' +
+ 'module.exports = {\n' +
+ '^\n' +
+ '\n' +
+ 'ReferenceError: module is not defined\n' +
+ ' at node:internal/main/check_syntax:79:1\n' +
+ '\n' +
+ 'Node.js v27.0.0-pre\n'
- ''
at TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/es-module/test-esm-import-flag.mjs:133:12)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1389:7)
at async Suite.processPendingSubtests (node:internal/test_runner/test:960:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'node:internal/main/check_syntax:79\n' +
'module.exports = {\n' +
'^\n' +
'\n' +
'ReferenceError: module is not defined\n' +
' at node:internal/main/check_syntax:79:1\n' +
'\n' +
'Node.js v27.0.0-pre\n',
expected: '',
operator: 'strictEqual',
diff: 'simple'
}
Test failure: 'should import when running --check fails'
Location: test/es-module/test-esm-import-flag.mjs:139:3
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'node:internal/main/check_syntax:79\n' +
+ 'module.exports = {\n' +
+ '^\n' +
+ '\n' +
+ 'ReferenceError: module is not defined\n' +
+ ' at node:internal/main/check_syntax:79:1\n' +
+ '\n' +
+ 'Node.js v27.0.0-pre\n'
- ''
at TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/es-module/test-esm-import-flag.mjs:150:12)
at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
at async Test.run (node:internal/test_runner/test:1389:7)
at async Suite.processPendingSubtests (node:internal/test_runner/test:960:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'node:internal/main/check_syntax:79\n' +
'module.exports = {\n' +
'^\n' +
'\n' +
'ReferenceError: module is not defined\n' +
' at node:internal/main/check_syntax:79:1\n' +
'\n' +
'Node.js v27.0.0-pre\n',
expected: '',
operator: 'strictEqual',
diff: 'simple'
}
Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /Users/runner/work/node/node/node/test/es-module/test-esm-import-flag.mjs
|
|
test-macOS:
test/parallel/test-snapshot-basic.js#L82
--- stderr ---
[process 41937]: --- stderr ---
node:internal/main/check_syntax:79
module.exports = {
^
ReferenceError: module is not defined
at node:internal/main/check_syntax:79:1
Node.js v27.0.0-pre
[process 41937]: --- stdout ---
[process 41937]: status = 1, signal = null
/Users/runner/work/node/node/node/test/common/child_process.js:112
throw error;
^
Error: - process terminated with status 1, expected 0
at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-snapshot-basic.js:82:3)
at Module._compile (node:internal/modules/cjs/loader:1947:14)
at Object..js (node:internal/modules/cjs/loader:2087:10)
at Module.load (node:internal/modules/cjs/loader:1669:32)
at Module._load (node:internal/modules/cjs/loader:1450:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:260:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
options: { cwd: '/Users/runner/work/node/node/node/test/.tmp.3304' },
command: '/Users/runner/work/node/node/node/out/Release/node --snapshot-blob /Users/runner/work/node/node/node/test/.tmp.3304/my-snapshot.blob -c /Users/runner/work/node/node/node/test/fixtures/snapshot/marked.js'
}
Node.js v27.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-snapshot-basic.js
|
|
test-macOS:
test/parallel/test-process-env-allowed-flags-are-documented.js#L147
--- stderr ---
node:internal/assert/utils:146
throw error;
^
AssertionError [ERR_ASSERTION]: --no-experimental-repl-typescript
at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-process-env-allowed-flags-are-documented.js:147:5)
at Module._compile (node:internal/modules/cjs/loader:1947:14)
at Object..js (node:internal/modules/cjs/loader:2087:10)
at Module.load (node:internal/modules/cjs/loader:1669:32)
at Module._load (node:internal/modules/cjs/loader:1450:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:260:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '==',
diff: 'simple'
}
Node.js v27.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-process-env-allowed-flags-are-documented.js
|
|
test-macOS:
test/parallel/test-cli-syntax-piped-good.js#L17
--- stderr ---
node:internal/assert/utils:146
throw error;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'node:internal/main/check_syntax:79\n' +
+ 'module.exports = {\n' +
+ '^\n' +
+ '\n' +
+ 'ReferenceError: module is not defined\n' +
+ ' at node:internal/main/check_syntax:79:1\n' +
+ '\n' +
+ 'Node.js v27.0.0-pre\n'
- ''
at /Users/runner/work/node/node/node/test/parallel/test-cli-syntax-piped-good.js:23:10
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-cli-syntax-piped-good.js:17:12)
at Module._compile (node:internal/modules/cjs/loader:1947:14)
at Object..js (node:internal/modules/cjs/loader:2087:10)
at Module.load (node:internal/modules/cjs/loader:1669:32)
at Module._load (node:internal/modules/cjs/loader:1450:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:260: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: 'node:internal/main/check_syntax:79\n' +
'module.exports = {\n' +
'^\n' +
'\n' +
'ReferenceError: module is not defined\n' +
' at node:internal/main/check_syntax:79:1\n' +
'\n' +
'Node.js v27.0.0-pre\n',
expected: '',
operator: 'strictEqual',
diff: 'simple'
}
Node.js v27.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-cli-syntax-piped-good.js
|
|
test-macOS:
test/parallel/test-cli-syntax-piped-bad.js#L21
--- stderr ---
node:internal/assert/utils:146
throw error;
^
AssertionError [ERR_ASSERTION]: node:internal/main/check_syntax:79
module.exports = {
^
ReferenceError: module is not defined
at node:internal/main/check_syntax:79:1
Node.js v27.0.0-pre
starts with var foo bar;
at /Users/runner/work/node/node/node/test/parallel/test-cli-syntax-piped-bad.js:26:3
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/runner/work/node/node/node/test/parallel/test-cli-syntax-piped-bad.js:21:12)
at Module._compile (node:internal/modules/cjs/loader:1947:14)
at Object..js (node:internal/modules/cjs/loader:2087:10)
at Module.load (node:internal/modules/cjs/loader:1669:32)
at Module._load (node:internal/modules/cjs/loader:1450:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:260:19)
at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
at node:internal/main/run_main_module:33:47 {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: false,
expected: true,
operator: '==',
diff: 'simple'
}
Node.js v27.0.0-pre
Command: out/Release/node /Users/runner/work/node/node/node/test/parallel/test-cli-syntax-piped-bad.js
|
|
sccache stats - test-macOS
87% - 4403 hits, 632 misses, 0 errors
|