lib: convert transfer sequence to array in js #63444
Annotations
9 errors and 1 notice
test/parallel/test-buffer-isascii.js#L35
--- stderr ---
node:internal/structured_clone:35
idlOptions[key] = webidl.converters['sequence<transfer>'](options[key], {
^
TypeError: webidl.converters.sequence<transfer> is not a function
at structuredClone (node:internal/structured_clone:35:62)
at Object.<anonymous> (/home/runner/work/node/node/test/parallel/test-buffer-isascii.js:35:3)
at Module._compile (node:internal/modules/cjs/loader:1560:14)
at Object..js (node:internal/modules/cjs/loader:1703:10)
at Module.load (node:internal/modules/cjs/loader:1328:32)
at Function._load (node:internal/modules/cjs/loader:1138:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/parallel/test-buffer-isascii.js
|
test/parallel/test-buffer-isutf8.js#L79
--- stderr ---
node:internal/structured_clone:35
idlOptions[key] = webidl.converters['sequence<transfer>'](options[key], {
^
TypeError: webidl.converters.sequence<transfer> is not a function
at structuredClone (node:internal/structured_clone:35:62)
at Object.<anonymous> (/home/runner/work/node/node/test/parallel/test-buffer-isutf8.js:79:3)
at Module._compile (node:internal/modules/cjs/loader:1560:14)
at Object..js (node:internal/modules/cjs/loader:1703:10)
at Module.load (node:internal/modules/cjs/loader:1328:32)
at Function._load (node:internal/modules/cjs/loader:1138:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/parallel/test-buffer-isutf8.js
|
test/parallel/test-structuredClone-global.js#L9
--- stderr ---
node:assert:377
throw err;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
+ Comparison {}
- Comparison {
- code: 'ERR_INVALID_ARG_TYPE'
- }
at Object.<anonymous> (/home/runner/work/node/node/test/parallel/test-structuredClone-global.js:9:8)
at Module._compile (node:internal/modules/cjs/loader:1560:14)
at Object..js (node:internal/modules/cjs/loader:1703:10)
at Module.load (node:internal/modules/cjs/loader:1328:32)
at Function._load (node:internal/modules/cjs/loader:1138:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49 {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: TypeError: webidl.converters.sequence<transfer> is not a function
at structuredClone (node:internal/structured_clone:35:62)
at assert.throws.code (/home/runner/work/node/node/test/parallel/test-structuredClone-global.js:9:21)
at getActual (node:assert:498:5)
at Function.throws (node:assert:644:24)
at Object.<anonymous> (/home/runner/work/node/node/test/parallel/test-structuredClone-global.js:9:8)
at Module._compile (node:internal/modules/cjs/loader:1560:14)
at Object..js (node:internal/modules/cjs/loader:1703:10)
at Module.load (node:internal/modules/cjs/loader:1328:32)
at Function._load (node:internal/modules/cjs/loader:1138:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14),
expected: { code: 'ERR_INVALID_ARG_TYPE' },
operator: 'throws'
}
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/parallel/test-structuredClone-global.js
|
test/parallel/test-webstream-structured-clone-no-leftovers.mjs#L15
--- stdout ---
✖ do not leak promises (1.917348ms)
TypeError: webidl.converters.sequence<transfer> is not a function
at structuredClone (node:internal/structured_clone:35:62)
at TestContext.<anonymous> (file:///home/runner/work/node/node/test/parallel/test-webstream-structured-clone-no-leftovers.mjs:15:18)
at Test.runInAsyncScope (node:async_hooks:211:14)
at Test.run (node:internal/test_runner/test:934:25)
at Test.start (node:internal/test_runner/test:833:17)
at startSubtestAfterBootstrap (node:internal/test_runner/harness:297:17)
::debug::starting to run do not leak promises
::error title=do not leak promises,file=test/parallel/test-webstream-structured-clone-no-leftovers.mjs,line=15,col=18::[Error [ERR_TEST_FAILURE]: webidl.converters.sequence<transfer> is not a function] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: TypeError: webidl.converters.sequence<transfer> is not a function
at structuredClone (node:internal/structured_clone:35:62)
at TestContext.<anonymous> (file:///home/runner/work/node/node/test/parallel/test-webstream-structured-clone-no-leftovers.mjs:15:18)
at Test.runInAsyncScope (node:async_hooks:211:14)
at Test.run (node:internal/test_runner/test:934:25)
at Test.start (node:internal/test_runner/test:833:17)
at startSubtestAfterBootstrap (node:internal/test_runner/harness:297:17)
}
ℹ tests 1
ℹ suites 0
ℹ pass 0
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 106.805205
✖ failing tests:
test at test/parallel/test-webstream-structured-clone-no-leftovers.mjs:5:1
✖ do not leak promises (1.917348ms)
TypeError: webidl.converters.sequence<transfer> is not a function
at structuredClone (node:internal/structured_clone:35:62)
at TestContext.<anonymous> (file:///home/runner/work/node/node/test/parallel/test-webstream-structured-clone-no-leftovers.mjs:15:18)
at Test.runInAsyncScope (node:async_hooks:211:14)
at Test.run (node:internal/test_runner/test:934:25)
at Test.start (node:internal/test_runner/test:833:17)
at startSubtestAfterBootstrap (node:internal/test_runner/harness:297:17)
::notice file=test/parallel/test-webstream-structured-clone-no-leftovers.mjs,line=1,col=1::tests 1
::notice file=test/parallel/test-webstream-structured-clone-no-leftovers.mjs,line=1,col=1::suites 0
::notice file=test/parallel/test-webstream-structured-clone-no-leftovers.mjs,line=1,col=1::pass 0
::notice file=test/parallel/test-webstream-structured-clone-no-leftovers.mjs,line=1,col=1::fail 1
::notice file=test/parallel/test-webstream-structured-clone-no-leftovers.mjs,line=1,col=1::cancelled 0
::notice file=test/parallel/test-webstream-structured-clone-no-leftovers.mjs,line=1,col=1::skipped 0
::notice file=test/parallel/test-webstream-structured-clone-no-leftovers.mjs,line=1,col=1::todo 0
::notice file=test/parallel/test-webstream-structured-clone-no-leftovers.mjs,line=1,col=1::duration_ms 106.805205
::group::Test results (0 passed, 1 failed)
::notice::
::endgroup::
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/parallel/test-webstream-structured-clone-no-leftovers.mjs
|
test/parallel/test-webstreams-clone-unref.js#L13
--- stderr ---
node:internal/structured_clone:35
idlOptions[key] = webidl.converters['sequence<transfer>'](options[key], {
^
TypeError: webidl.converters.sequence<transfer> is not a function
at structuredClone (node:internal/structured_clone:35:62)
at Object.<anonymous> (/home/runner/work/node/node/test/parallel/test-webstreams-clone-unref.js:13:20)
at Module._compile (node:internal/modules/cjs/loader:1560:14)
at Object..js (node:internal/modules/cjs/loader:1703:10)
at Module.load (node:internal/modules/cjs/loader:1328:32)
at Function._load (node:internal/modules/cjs/loader:1138:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49
Node.js v23.0.0-pre
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/parallel/test-webstreams-clone-unref.js
|
test/parallel/test-stream-readable-unpipe-resume.js#L1
Command: out/Release/node --test-reporter=spec --test-reporter-destination=stdout --test-reporter=./tools/github_reporter/index.js --test-reporter-destination=stdout /home/runner/work/node/node/test/parallel/test-stream-readable-unpipe-resume.js
--- TIMEOUT ---
|
test/wpt/test-streams.js#L1
--- stderr ---
(node:200280) TimeoutNaNWarning: NaN is not a number.
Timeout duration was set to 1.
(Use `node --trace-warnings ...` to show where the warning was created)
/home/runner/work/node/node/test/common/wpt.js:800
throw new Error(
^
Error: Found 2 unexpected failures. Consider updating test/wpt/status/streams.json for these files:
readable-byte-streams/enqueue-with-detached-buffer.any.js
transferable/transform-stream-members.any.js
at process.<anonymous> (/home/runner/work/node/node/test/common/wpt.js:800:15)
at process.emit (node:events:507:28)
Node.js v23.0.0-pre
--- stdout ---
[SKIPPED] idlharness-shadowrealm.window.js: ShadowRealm support is not enabled
[SKIPPED] queuing-strategies-size-function-per-global.window.js: Browser-specific test
[SKIPPED] readable-streams/cross-realm-crash.window.js: Browser-specific test
[SKIPPED] readable-streams/owning-type-video-frame.any.js: Browser-specific test
[SKIPPED] readable-streams/read-task-handling.window.js: Browser-specific test
[SKIPPED] transferable/deserialize-error.window.js: Browser-specific test
[SKIPPED] transferable/transfer-with-messageport.window.js: Browser-specific test
[SKIPPED] transform-streams/invalid-realm.tentative.window.js: Browser-specific test
[PASS] a signal argument 'null' should cause pipeTo() to reject
[PASS] a signal argument 'AbortSignal' should cause pipeTo() to reject
[PASS] a signal argument 'true' should cause pipeTo() to reject
[PASS] a signal argument '-1' should cause pipeTo() to reject
[PASS] a signal argument '[object AbortSignal]' should cause pipeTo() to reject
[PASS] an aborted signal should cause the writable stream to reject with an AbortError
[PASS] (reason: 'null') all the error objects should be the same object
[PASS] (reason: 'undefined') all the error objects should be the same object
[PASS] (reason: 'error1: error1') all the error objects should be the same object
[PASS] preventCancel should prevent canceling the readable
[PASS] preventAbort should prevent aborting the readable
[PASS] preventCancel and preventAbort should prevent canceling the readable and aborting the readable
[PASS] (reason: 'null') abort should prevent further reads
[PASS] (reason: 'undefined') abort should prevent further reads
[PASS] (reason: 'error1: error1') abort should prevent further reads
[PASS] (reason: 'null') all pending writes should complete on abort
[PASS] (reason: 'undefined') all pending writes should complete on abort
[PASS] (reason: 'error1: error1') all pending writes should complete on abort
[PASS] (reason: 'null') underlyingSource.cancel() should called when abort, even with pending pull
[PASS] Closing must be propagated backward: starts closed; preventCancel omitted; fulfilled cancel promise
[PASS] (reason: 'undefined') underlyingSource.cancel() should called when abort, even with pending pull
[PASS] Closing must be propagated backward: starts closed; preventCancel omitted; rejected cancel promise
[PASS] Closing must be propagated backward: starts closed; preventCancel = undefined (falsy); fulfilled cancel promise
[PASS] Closing must be propagated backward: starts closed; preventCancel = null (falsy); fulfilled cancel promise
[PASS] (reason: 'error1: error1') underlyingSource.cancel() should called when abort, even with pending pull
[PASS] a rejection from underlyingSource.cancel() should be returned by pipeTo()
[PASS] Closing must be propagated backward: starts closed; preventCancel = false (falsy); fulfilled cancel promise
[PASS] a rejection from underlyingSink.abort() should be returned by pipeTo()
[PASS] Closing must be propagated backward: starts closed; preventCancel = 0 (falsy); fulfilled cancel promise
[PASS] a rejection from underlyingSink.abort() should be preferred to one from underlyingSource.cancel()
[PASS] abort signal takes priority over closed readable
[PASS] abort signal takes priority over errored readable
[PASS] abort signal takes priority over closed writable
[PASS] abort signal takes priority over errored writable
[PASS] abort should do nothing after the readable is closed
[PASS]
|
test/wpt/test-structured-clone.js#L1
--- stderr ---
/home/runner/work/node/node/test/common/wpt.js:800
throw new Error(
^
Error: Found 1 unexpected failures. Consider updating test/wpt/status/html/webappapis/structured-clone.json for these files:
structured-clone.any.js
at process.<anonymous> (/home/runner/work/node/node/test/common/wpt.js:800:15)
at process.emit (node:events:507:28)
Node.js v23.0.0-pre
--- stdout ---
[PASS] primitive undefined
[PASS] primitive null
[PASS] primitive true
[PASS] primitive false
[PASS] primitive string, empty string
[PASS] primitive string, lone high surrogate
[PASS] primitive string, lone low surrogate
[PASS] primitive string, NUL
[PASS] primitive string, astral character
[PASS] primitive number, 0.2
[PASS] primitive number, 0
[PASS] primitive number, -0
[PASS] primitive number, NaN
[PASS] primitive number, Infinity
[PASS] primitive number, -Infinity
[PASS] primitive number, 9007199254740992
[PASS] primitive number, -9007199254740992
[PASS] primitive number, 9007199254740994
[PASS] primitive number, -9007199254740994
[PASS] primitive BigInt, 0n
[PASS] primitive BigInt, -0n
[PASS] primitive BigInt, -9007199254740994000n
[PASS] primitive BigInt, -9007199254740994000900719925474099400090071992547409940009007199254740994000n
[PASS] Array primitives
[PASS] Object primitives
[PASS] Boolean true
[PASS] Boolean false
[PASS] Array Boolean objects
[PASS] Object Boolean objects
[PASS] String empty string
[PASS] String lone high surrogate
[PASS] String lone low surrogate
[PASS] String NUL
[PASS] String astral character
[PASS] Array String objects
[PASS] Object String objects
[PASS] Number 0.2
[PASS] Number 0
[PASS] Number -0
[PASS] Number NaN
[PASS] Number Infinity
[PASS] Number -Infinity
[PASS] Number 9007199254740992
[PASS] Number -9007199254740992
[PASS] Number 9007199254740994
[PASS] Number -9007199254740994
[PASS] BigInt -9007199254740994n
[PASS] Array Number objects
[PASS] Object Number objects
[PASS] Date 0
[PASS] Date -0
[PASS] Date -8.64e15
[PASS] Date 8.64e15
[PASS] Array Date objects
[PASS] Object Date objects
[PASS] RegExp flags and lastIndex
[PASS] RegExp sticky flag
[PASS] RegExp unicode flag
[PASS] RegExp empty
[PASS] RegExp slash
[PASS] RegExp new line
[PASS] Array RegExp object, RegExp flags and lastIndex
[PASS] Array RegExp object, RegExp sticky flag
[PASS] Array RegExp object, RegExp unicode flag
[PASS] Array RegExp object, RegExp empty
[PASS] Array RegExp object, RegExp slash
[PASS] Array RegExp object, RegExp new line
[PASS] Object RegExp object, RegExp flags and lastIndex
[PASS] Object RegExp object, RegExp sticky flag
[PASS] Object RegExp object, RegExp unicode flag
[PASS] Object RegExp object, RegExp empty
[PASS] Object RegExp object, RegExp slash
[PASS] Object RegExp object, RegExp new line
[PASS] Blob basic
[PASS] Blob unpaired high surrogate (invalid utf-8)
[PASS] Blob unpaired low surrogate (invalid utf-8)
[PASS] Blob paired surrogates (invalid utf-8)
[PASS] Blob empty
[PASS] Blob NUL
[PASS] Array Blob object, Blob basic
[PASS] Array Blob object, Blob unpaired high surrogate (invalid utf-8)
[PASS] Array Blob object, Blob unpaired low surrogate (invalid utf-8)
[PASS] Array Blob object, Blob paired surrogates (invalid utf-8)
[PASS] Array Blob object, Blob empty
[PASS] Array Blob object, Blob NUL
[PASS] Array Blob object, two Blobs
[PASS] Object Blob object, Blob basic
[PASS] Object Blob object, Blob unpaired high surrogate (invalid utf-8)
[PASS] Object Blob object, Blob unpaired low surrogate (invalid utf-8)
[PASS] Object Blob object, Blob paired surrogates (invalid utf-8)
[PASS] Object Blob object, Blob empty
[PASS] Object Blob object, Blob NUL
[PASS] File basic
[PASS] Array sparse
[PASS] Array with non-index property
[PASS] Object with index property and length
[PASS] Array with circular reference
[PASS] Object with circular reference
[PASS] Array with identical property values
[PASS] Object with identical property values
[PASS] Object with property on prototype
[PASS] Object with non-enumerable property
[PASS] Object with non-writable property
[PASS] Object with non-configurable pro
|
|
|
This job failed
Loading