diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/abort_controller.js b/crates/wasm-rquickjs/skeleton/src/builtin/abort_controller.js index b2cc9eff2..cd3ad7934 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/abort_controller.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/abort_controller.js @@ -39,6 +39,54 @@ class DOMException extends Error { } } +function toQuotaDouble(options, key) { + const value = +options[key]; + if (!Number.isFinite(value)) { + throw new TypeError(`Cannot convert options.${key} to a double: the value is ${Number.isNaN(value) ? 'NaN' : 'Infinity'}`); + } + if (value < 0) { + throw new RangeError(`options.${key} must not be negative`); + } + return value; +} + +// https://webidl.spec.whatwg.org/#quotaexceedederror (Node 26 global) +class QuotaExceededError extends DOMException { + #quota; + #requested; + + constructor(message = '', options = {__proto__: null}) { + super(message, 'QuotaExceededError'); + let quota = null; + let requested = null; + if (options !== null && options !== undefined) { + if ('quota' in options) quota = toQuotaDouble(options, 'quota'); + if ('requested' in options) requested = toQuotaDouble(options, 'requested'); + } + if (quota !== null && requested !== null && requested < quota) { + throw new RangeError('options.requested must not be less than options.quota'); + } + this.#quota = quota; + this.#requested = requested; + } + + get quota() { + if (!(#quota in this)) throw new TypeError('Value of "this" must be of type QuotaExceededError'); + return this.#quota; + } + + get requested() { + if (!(#requested in this)) throw new TypeError('Value of "this" must be of type QuotaExceededError'); + return this.#requested; + } +} + +Object.defineProperties(QuotaExceededError.prototype, { + [Symbol.toStringTag]: {__proto__: null, configurable: true, value: 'QuotaExceededError'}, + quota: {__proto__: null, enumerable: true, configurable: true}, + requested: {__proto__: null, enumerable: true, configurable: true}, +}); + // We need access to the Event _eventTrusted WeakMap to mark events as trusted. // Import the _eventTrusted symbol from events module. import { _eventTrusted, Event } from 'node:events'; @@ -379,4 +427,4 @@ Object.defineProperty(AbortSignal.prototype, Symbol.toStringTag, { configurable: true, }); -export { AbortController, AbortSignal, DOMException }; +export { AbortController, AbortSignal, DOMException, QuotaExceededError }; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/abort_controller.rs b/crates/wasm-rquickjs/skeleton/src/builtin/abort_controller.rs index 9d5a1e151..9866ff2e4 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/abort_controller.rs +++ b/crates/wasm-rquickjs/skeleton/src/builtin/abort_controller.rs @@ -3,8 +3,9 @@ pub const ABORT_CONTROLLER_JS: &str = include_str!("abort_controller.js"); // JS code wiring the abort_controller module into the global context pub const WIRE_JS: &str = r#" - import { AbortController, AbortSignal, DOMException } from '__wasm_rquickjs_builtin/abort_controller'; + import { AbortController, AbortSignal, DOMException, QuotaExceededError } from '__wasm_rquickjs_builtin/abort_controller'; globalThis.AbortController = AbortController; globalThis.AbortSignal = AbortSignal; globalThis.DOMException = DOMException; + globalThis.QuotaExceededError = QuotaExceededError; "#; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/assert.js b/crates/wasm-rquickjs/skeleton/src/builtin/assert.js index b07355024..72c586475 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/assert.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/assert.js @@ -1,7 +1,6 @@ -import { inspect, innerDeepEqual } from 'node:util'; +import { inspect, innerDeepEqual, types as utilTypes } from 'node:util'; import fs from 'node:fs'; import { ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_INVALID_RETURN_VALUE, ERR_MISSING_ARGS } from '__wasm_rquickjs_builtin/internal/errors'; -import { createPrivateWeakMap, createPrivateWeakSet } from '__wasm_rquickjs_builtin/internal/weak_collections'; const inspectDiffOptions = { depth: 1000, @@ -13,6 +12,9 @@ const inspectDiffOptions = { showProxy: false, }; const RegExpPrototypeExec = RegExp.prototype.exec; +const DatePrototypeGetTime = Date.prototype.getTime; +const TypedArrayPrototypeGetSymbolToStringTag = + Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype), Symbol.toStringTag).get; const RegExpPrototypeSourceGetter = Object.getOwnPropertyDescriptor(RegExp.prototype, 'source').get; function inspectForDiff(value) { @@ -965,6 +967,13 @@ function getErrMessage(stackStartFn) { return undefined; } + // Node 26 reads the expression from the source line of the call only + // (lib/internal/errors/error_source.js), so a call spanning lines shows its first line. + const newline = sourceExpression.indexOf('\n'); + if (newline !== -1) { + sourceExpression = sourceExpression.slice(0, newline); + } + sourceExpression = sourceExpression.replace(ESCAPE_SEQUENCES_REGEXP, escapeControlCharacter); sourceExpression = sourceExpression.replace(/\\\\u([0-9a-fA-F]{4})/g, function(_, hex) { return '\\u' + hex; @@ -1276,6 +1285,13 @@ function processMessage(message, actual, expected) { } function innerFail(obj) { + // Node 26 accepts only a string, an Error or a message factory function as the message of + // an assertion (lib/internal/assert/utils.js innerFail); assert.fail takes any message. + const message = obj.message; + if (obj.operator !== 'fail' && message !== undefined && message !== null && + typeof message !== 'string' && typeof message !== 'function' && !isErrorLike(message)) { + throw new ERR_INVALID_ARG_TYPE('message', ['string', 'function'], message); + } let msg = processMessage(obj.message, obj.actual, obj.expected); if (isErrorLike(msg)) throw msg; obj.message = msg; @@ -1509,25 +1525,35 @@ function partialDeepStrictEqual(actual, expected, message) { } function createPartialDeepMemo() { - return { weakMemo: createPrivateWeakMap(), pairsA: null, pairsB: null }; -} - -function partialMemoHas(memo, actual, expected) { - const expectedSet = memo.weakMemo.get(actual); - return expectedSet !== undefined && expectedSet.has(expected); -} - -function partialMemoAdd(memo, actual, expected) { - let expectedSet = memo.weakMemo.get(actual); - if (expectedSet === undefined) { - expectedSet = createPrivateWeakSet(); - memo.weakMemo.set(actual, expectedSet); - } - expectedSet.add(expected); -} + return { a: [], b: [], cycle: { useSet: false } }; +} + +// The comparison branch of a value, from its internal brand like Node 26 (comparisons.js +// uses ArrayIsArray, isMap, isDate, ...), so a spoofed Symbol.toStringTag cannot select it. +const kBrandedTags = [ + ['[object Array]', Array.isArray], + ['[object Map]', utilTypes.isMap], + ['[object Set]', utilTypes.isSet], + ['[object Date]', utilTypes.isDate], + ['[object RegExp]', utilTypes.isRegExp], + ['[object ArrayBuffer]', utilTypes.isArrayBuffer], + ['[object SharedArrayBuffer]', utilTypes.isSharedArrayBuffer], + ['[object DataView]', utilTypes.isDataView], +]; function getTag(value) { - return Object.prototype.toString.call(value); + for (let i = 0; i < kBrandedTags.length; i++) { + if (kBrandedTags[i][1](value)) { + return kBrandedTags[i][0]; + } + } + const tag = Object.prototype.toString.call(value); + for (let i = 0; i < kBrandedTags.length; i++) { + if (kBrandedTags[i][0] === tag) { + return '[object Object]'; + } + } + return tag; } function getEnumerableSymbols(value) { @@ -1563,7 +1589,8 @@ function compareExpectedProperties(actual, expected, memo, skipArrayIndices) { continue; } - if (!hasOwn(actual, key)) { + // Like Node 26 objEquiv, actual must own the key as an enumerable property. + if (!Object.prototype.propertyIsEnumerable.call(actual, key)) { return false; } @@ -1575,7 +1602,7 @@ function compareExpectedProperties(actual, expected, memo, skipArrayIndices) { const expectedSymbols = getEnumerableSymbols(expected); for (let i = 0; i < expectedSymbols.length; i++) { const symbolKey = expectedSymbols[i]; - if (!hasOwn(actual, symbolKey)) { + if (!Object.prototype.propertyIsEnumerable.call(actual, symbolKey)) { return false; } @@ -1601,6 +1628,53 @@ function arraysEqual(actualBytes, expectedBytes) { return true; } +// Node 26 partialArrayEquiv and partialSparseArrayEquiv (comparisons.js): expected's elements +// must appear in order in actual; from the first hole on either side, only present elements +// count, so a hole never matches a present undefined. +function partialSparseArrayEquiv(actual, expected, memo, startA, startB) { + let aPos = startA; + const keysA = Object.keys(actual); + const keysB = Object.keys(expected); + const lenA = keysA.length - startA; + const lenB = keysB.length - startB; + if (lenA < lenB) { + return false; + } + for (let i = 0; i < lenB; i++) { + const keyB = keysB[startB + i]; + while (!innerPartialDeepEqual(actual[keysA[aPos]], expected[keyB], memo)) { + aPos++; + if (aPos > keysA.length - lenB + i) { + return false; + } + } + aPos++; + } + return true; +} + +function partialArrayEquiv(actual, expected, memo) { + let aPos = 0; + for (let i = 0; i < expected.length; i++) { + let isSparse = expected[i] === undefined && !Object.prototype.hasOwnProperty.call(expected, i); + if (isSparse) { + return partialSparseArrayEquiv(actual, expected, memo, aPos, i); + } + while (!(isSparse = actual[aPos] === undefined && !Object.prototype.hasOwnProperty.call(actual, aPos)) && + !innerPartialDeepEqual(actual[aPos], expected[i], memo)) { + aPos++; + if (aPos > actual.length - expected.length + i) { + return false; + } + } + if (isSparse) { + return partialSparseArrayEquiv(actual, expected, memo, aPos, i); + } + aPos++; + } + return true; +} + function isSubsequence(actualValues, expectedValues, compare) { if (actualValues.length < expectedValues.length) { return false; @@ -1633,19 +1707,6 @@ function isTypedArrayView(value, tag) { return ArrayBuffer.isView(value); } -function strictMapKeyEqual(actualKey, expectedKey) { - if (Object.is(actualKey, expectedKey)) { - return true; - } - - if (actualKey === null || expectedKey === null || - typeof actualKey !== 'object' || typeof expectedKey !== 'object') { - return false; - } - - return innerDeepEqual(actualKey, expectedKey, true, undefined); -} - function isURLValue(value, tag) { return tag === '[object URL]' || (value !== null && typeof value === 'object' && @@ -1662,11 +1723,34 @@ function innerPartialDeepEqual(actual, expected, memo) { return false; } - if (partialMemoHas(memo, actual, expected)) { - return true; + // Node 26 cycle handling (comparisons.js handleCycles), as in util's deep equality: one + // level below the roots only the root on the same side counts; deeper, an object on the + // current path from either side matches only when its counterpart is on the path too. + const depth = memo.a.length; + if (depth >= 2) { + memo.cycle.useSet = true; + } + if (memo.cycle.useSet) { + const actualOnPath = memo.a.includes(actual) || memo.b.includes(actual); + const expectedOnPath = memo.a.includes(expected) || memo.b.includes(expected); + if (actualOnPath || expectedOnPath) { + return actualOnPath && expectedOnPath; + } + } else if (depth === 1) { + if (memo.a[0] === actual) return memo.b[0] === expected; + if (memo.b[0] === expected) return false; + } + memo.a.push(actual); + memo.b.push(expected); + try { + return partialContainerEqual(actual, expected, memo); + } finally { + memo.a.length = depth; + memo.b.length = depth; } - partialMemoAdd(memo, actual, expected); +} +function partialContainerEqual(actual, expected, memo) { const expectedTag = getTag(expected); const actualTag = getTag(actual); @@ -1675,9 +1759,7 @@ function innerPartialDeepEqual(actual, expected, memo) { return false; } - if (!isSubsequence(actual, expected, function(actualItem, expectedItem) { - return innerPartialDeepEqual(actualItem, expectedItem, memo); - })) { + if (actual.length < expected.length || !partialArrayEquiv(actual, expected, memo)) { return false; } @@ -1689,26 +1771,37 @@ function innerPartialDeepEqual(actual, expected, memo) { return false; } - const actualEntries = Array.from(actual.entries()); - - const expectedEntries = Array.from(expected.entries()); - for (let i = 0; i < expectedEntries.length; i++) { - const expectedEntry = expectedEntries[i]; - let foundMapEntry = false; + // Like Node 26 partialObjectMapEquiv, each actual entry with an object key matches at + // most one expected entry, and object keys compare partially. + const actualObjectEntries = []; + for (const entry of actual.entries()) { + if (typeof entry[0] === 'object' && entry[0] !== null) { + actualObjectEntries.push(entry); + } + } + const usedActualEntries = new Array(actualObjectEntries.length).fill(false); - if (actual.has(expectedEntry[0])) { - if (!innerPartialDeepEqual(actual.get(expectedEntry[0]), expectedEntry[1], memo)) { + for (const expectedEntry of expected.entries()) { + const expectedKey = expectedEntry[0]; + if (typeof expectedKey !== 'object' || expectedKey === null) { + if (!actual.has(expectedKey) || + !innerPartialDeepEqual(actual.get(expectedKey), expectedEntry[1], memo)) { return false; } - foundMapEntry = true; - } else { - for (let j = 0; j < actualEntries.length; j++) { - const actualEntry = actualEntries[j]; - if (strictMapKeyEqual(actualEntry[0], expectedEntry[0]) && - innerPartialDeepEqual(actualEntry[1], expectedEntry[1], memo)) { - foundMapEntry = true; - break; - } + continue; + } + + let foundMapEntry = false; + for (let j = 0; j < actualObjectEntries.length; j++) { + if (usedActualEntries[j]) { + continue; + } + const actualEntry = actualObjectEntries[j]; + if (innerPartialDeepEqual(actualEntry[0], expectedKey, memo) && + innerPartialDeepEqual(actualEntry[1], expectedEntry[1], memo)) { + usedActualEntries[j] = true; + foundMapEntry = true; + break; } } @@ -1731,7 +1824,17 @@ function innerPartialDeepEqual(actual, expected, memo) { usedActualValues[i] = false; } - const expectedValues = Array.from(expected.values()); + // Like Node 26 setEquiv, a value actual also holds matches itself first; only the + // remaining expected values are matched deeply against the unused actual values. + const expectedValues = []; + for (const expectedValue of expected.values()) { + const index = actual.has(expectedValue) ? actualValues.indexOf(expectedValue) : -1; + if (index !== -1 && !usedActualValues[index]) { + usedActualValues[index] = true; + } else { + expectedValues.push(expectedValue); + } + } for (let i = 0; i < expectedValues.length; i++) { const expectedValue = expectedValues[i]; let foundSetValue = false; @@ -1761,7 +1864,9 @@ function innerPartialDeepEqual(actual, expected, memo) { return false; } - return Object.is(actual.getTime(), expected.getTime()); + // Like Node 26 keyCheck in partial mode, expected's own properties must match too. + return Object.is(DatePrototypeGetTime.call(actual), DatePrototypeGetTime.call(expected)) && + compareExpectedProperties(actual, expected, memo, false); } if (expectedTag === '[object RegExp]' || actualTag === '[object RegExp]') { @@ -1771,7 +1876,8 @@ function innerPartialDeepEqual(actual, expected, memo) { return actual.source === expected.source && actual.flags === expected.flags && - actual.lastIndex === expected.lastIndex; + actual.lastIndex === expected.lastIndex && + compareExpectedProperties(actual, expected, memo, false); } if (expectedTag === '[object ArrayBuffer]' || expectedTag === '[object SharedArrayBuffer]') { @@ -1814,6 +1920,11 @@ function innerPartialDeepEqual(actual, expected, memo) { if (!isTypedArrayView(actual, actualTag) || actualTag !== expectedTag || actual.byteLength < expected.byteLength) { return false; } + // Symbol.toStringTag can be forged; compare the intrinsic element type like Node 26. + if (TypedArrayPrototypeGetSymbolToStringTag.call(actual) !== + TypedArrayPrototypeGetSymbolToStringTag.call(expected)) { + return false; + } const actualTypedArray = new Uint8Array(actual.buffer, actual.byteOffset, actual.byteLength); const expectedTypedArray = new Uint8Array(expected.buffer, expected.byteOffset, expected.byteLength); @@ -1827,7 +1938,9 @@ function innerPartialDeepEqual(actual, expected, memo) { return false; } - return compareExpectedProperties(actual, expected, memo, false); + // Element bytes were matched above; like Node's getOwnNonIndexProperties, only the + // remaining own properties are compared. + return compareExpectedProperties(actual, expected, memo, true); } const expectedIsURL = isURLValue(expected, expectedTag); @@ -1837,7 +1950,7 @@ function innerPartialDeepEqual(actual, expected, memo) { return false; } - return actual.href === expected.href; + return actual.href === expected.href && compareExpectedProperties(actual, expected, memo, false); } if (expectedTag === '[object Error]' || expected instanceof Error) { @@ -1876,6 +1989,11 @@ function innerPartialDeepEqual(actual, expected, memo) { return innerDeepEqual(actual, expected, true, undefined); } + // Like Node 26 objectComparisonStart, a plain expected object only matches a plain object. + if (actualTag !== '[object Object]') { + return false; + } + return compareExpectedProperties(actual, expected, memo, false); } @@ -2084,7 +2202,7 @@ function checkIsPromise(obj) { return obj !== null && typeof obj === 'object' && typeof obj.then === 'function' && typeof obj.catch === 'function'; } -function ensureAsyncAssertionFrame(error, assertionFn) { +function ensureAsyncAssertionFrame(error, assertionFn, receiver) { if (!error || typeof error !== 'object' || typeof assertionFn !== 'function' || !assertionFn.name) { return; } @@ -2093,7 +2211,9 @@ function ensureAsyncAssertionFrame(error, assertionFn) { return; } - const asyncFrame = 'at async Function.' + assertionFn.name; + // Like Node 26's V8 frames, the frame is named after the receiver the assertion was called on. + const owner = receiver === assert ? 'assert.' : receiver === strict ? 'strict.' : ''; + const asyncFrame = 'at async ' + owner + assertionFn.name; if (error.stack.indexOf(asyncFrame) !== -1) { return; } @@ -2101,7 +2221,7 @@ function ensureAsyncAssertionFrame(error, assertionFn) { error.stack += '\n ' + asyncFrame + ' (native)'; } -async function waitForActual(promiseFn, assertionFn) { +async function waitForActual(promiseFn, assertionFn, receiver) { let resultPromise; if (typeof promiseFn === 'function') { // If this throws synchronously, async function semantics make the returned @@ -2119,7 +2239,7 @@ async function waitForActual(promiseFn, assertionFn) { try { await resultPromise; } catch (e) { - ensureAsyncAssertionFrame(e, assertionFn); + ensureAsyncAssertionFrame(e, assertionFn, receiver); return e; } @@ -2236,12 +2356,12 @@ function doesNotThrow(fn) { async function rejects(promiseFn) { let args = Array.prototype.slice.call(arguments, 1); - expectsError.apply(null, [rejects, await waitForActual(promiseFn, rejects)].concat(args)); + expectsError.apply(null, [rejects, await waitForActual(promiseFn, rejects, this)].concat(args)); } async function doesNotReject(promiseFn) { const args = Array.prototype.slice.call(arguments, 1); - expectsNoError.apply(null, [doesNotReject, await waitForActual(promiseFn, doesNotReject)].concat(args)); + expectsNoError.apply(null, [doesNotReject, await waitForActual(promiseFn, doesNotReject, this)].concat(args)); } function ifError(value) { @@ -2546,7 +2666,9 @@ assert.match = match; assert.doesNotMatch = doesNotMatch; assert.fail = fail; assert.AssertionError = AssertionError; -assert.CallTracker = CallTracker; +// Node 26 removed assert.CallTracker (DEP0173, end of life). It stays available here for +// existing callers, non-enumerable as Node 26 no longer lists it among the assert methods. +Object.defineProperty(assert, 'CallTracker', { value: CallTracker, writable: true, configurable: true, enumerable: false }); const strict = function strict(value, message) { innerOk(strict, arguments.length, value, message); @@ -2571,7 +2693,7 @@ strict.match = match; strict.doesNotMatch = doesNotMatch; strict.fail = fail; strict.AssertionError = AssertionError; -strict.CallTracker = CallTracker; +Object.defineProperty(strict, 'CallTracker', { value: CallTracker, writable: true, configurable: true, enumerable: false }); strict.strict = strict; assert.strict = strict; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/buffer.js b/crates/wasm-rquickjs/skeleton/src/builtin/buffer.js index 80a6db379..4b0e47857 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/buffer.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/buffer.js @@ -650,23 +650,32 @@ Buffer.concat = function concat (list, length) { } } + // Use the intrinsic byteLength so a spoofed `length` property cannot + // expose uninitialized memory. if (length === undefined) { length = 0 for (i = 0; i < list.length; ++i) { - length += list[i].length + length += getTypedArrayByteLength(list[i]) } + } else { + validateInteger(length, 'length', 0, K_MAX_LENGTH) } const buffer = Buffer.allocUnsafe(length) let pos = 0 for (i = 0; i < list.length; ++i) { const buf = list[i] - if (pos + buf.length > buffer.length) { - buffer.set(buf.subarray(0, buffer.length - pos), pos) + const bufLength = getTypedArrayByteLength(buf) + if (pos + bufLength > length) { + buffer.set(new Uint8Array(getTypedArrayBuffer(buf), getTypedArrayByteOffset(buf), length - pos), pos) + pos = length break } - buffer.set(buf, pos) - pos += buf.length + buffer.set(new Uint8Array(getTypedArrayBuffer(buf), getTypedArrayByteOffset(buf), bufLength), pos) + pos += bufLength + } + if (pos < length) { + buffer.fill(0, pos, length) } return buffer } @@ -2388,24 +2397,21 @@ const hexCharValueTable = [ ] /* eslint-enable no-multi-spaces, indent */ +// Node 26 treats detached ArrayBuffers and views as empty input. +function isDetachedBuffer (buffer) { + if (typeof buffer.detached === 'boolean') return buffer.detached + if (buffer.byteLength !== 0) return false + try { + new Uint8Array(buffer) + return false + } catch (e) { + return true + } +} + function validateBufferSource (source) { if (source instanceof ArrayBuffer || source instanceof SharedArrayBuffer) { - if (typeof source.detached === 'boolean' && source.detached) { - const err = new TypeError('Cannot perform operation on a detached ArrayBuffer') - err.code = 'ERR_INVALID_STATE' - throw err - } - if (source.byteLength === 0 && source.maxByteLength === undefined) { - // Possibly detached — try to create a view to detect - try { - new Uint8Array(source) - } catch (e) { - const err = new TypeError('Cannot perform operation on a detached ArrayBuffer') - err.code = 'ERR_INVALID_STATE' - throw err - } - } - return new Uint8Array(source) + return isDetachedBuffer(source) ? new Uint8Array(0) : new Uint8Array(source) } if (!ArrayBuffer.isView(source)) { const err = new TypeError( @@ -2415,6 +2421,9 @@ function validateBufferSource (source) { err.code = 'ERR_INVALID_ARG_TYPE' throw err } + if (isDetachedBuffer(source.buffer)) { + return new Uint8Array(0) + } return new Uint8Array(source.buffer, source.byteOffset, source.byteLength) } @@ -2535,11 +2544,32 @@ Object.defineProperties(_Blob.prototype, { export const Blob = _Blob +let _fileCloneState +// structuredClone keeps a File's name and lastModified (Node 26, nodejs/node#47612). +const fileCloneAdapter = {__proto__: null, + kind: 'Blob', + clone(value) { + return new _File(_innerKey, cloneBlobBacking(blobBacking.get(value)), _fileCloneState(value)) + }, + cloneBacking(value, memo) { return cloneBlobBacking(blobBacking.get(value), memo) }, +} + const _File = class File extends _Blob { #name = '' #lastModified = 0 + static { + _fileCloneState = value => ({ name: value.#name, lastModified: value.#lastModified }) + } + constructor(fileBits, fileName, options = {}) { + if (fileBits === _innerKey) { + super(_innerKey, fileName) + this.#name = options.name + this.#lastModified = options.lastModified + registerCloneAdapter(this, fileCloneAdapter) + return + } if (arguments.length < 2) { throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`) } @@ -2562,6 +2592,7 @@ const _File = class File extends _Blob { } this.#name = String(fileName) + registerCloneAdapter(this, fileCloneAdapter) } get name() { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/diagnostics_channel.js b/crates/wasm-rquickjs/skeleton/src/builtin/diagnostics_channel.js index 75c9b5467..29d8c7ee3 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/diagnostics_channel.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/diagnostics_channel.js @@ -7,6 +7,9 @@ class Channel { this._name = name; this._subscribers = []; this._stores = new Map(); + // Node 26 channels carry their native subscriber-count slot as an own property; + // channels here have no native slot. + this._index = undefined; } get name() { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/dns.js b/crates/wasm-rquickjs/skeleton/src/builtin/dns.js index ad9727176..e2436edaa 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/dns.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/dns.js @@ -128,14 +128,9 @@ export function lookup(hostname, optionsOrCallback, callback) { const family = normalizeFamily(options.family || 0); const all = !!options.all; - // If hostname is falsy, return the null-address compatibility result. + // Node 26 rejects a falsy hostname instead of returning a null address. if (!hostname) { - if (all) { - queueMicrotask(() => cb(null, [{ address: null, family: 4 }])); - } else { - queueMicrotask(() => cb(null, null, 4)); - } - return; + throw new ERR_INVALID_ARG_VALUE('hostname', hostname, 'must be a non-empty string'); } if (typeof hostname === 'string' && hostname.toLowerCase() === 'localhost') { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/domain.js b/crates/wasm-rquickjs/skeleton/src/builtin/domain.js index dc296846e..ef008e48f 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/domain.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/domain.js @@ -103,7 +103,7 @@ EventEmitter._domainInit = function(emitter) { } }; -// Patch setTimeout/setInterval to auto-bind callbacks to the active domain. +// Patch setTimeout/setInterval/setImmediate to auto-bind callbacks to the active domain. const _origSetTimeout = globalThis.setTimeout; const _origSetInterval = globalThis.setInterval; @@ -125,6 +125,17 @@ if (_origSetInterval) { }; } +const _origSetImmediate = globalThis.setImmediate; + +if (_origSetImmediate) { + globalThis.setImmediate = function domainSetImmediate(callback, ...rest) { + if (active && typeof callback === 'function') { + callback = active.bind(callback); + } + return _origSetImmediate.call(globalThis, callback, ...rest); + }; +} + class Domain extends EventEmitter { constructor() { super(); diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/encoding.js b/crates/wasm-rquickjs/skeleton/src/builtin/encoding.js index 12a70e612..2e8ca9b7a 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/encoding.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/encoding.js @@ -234,6 +234,8 @@ Object.defineProperties(TextDecoder.prototype, { }, }); +const toWellFormed = Function.prototype.call.bind(String.prototype.toWellFormed); + export class TextEncoder { constructor() { } @@ -243,14 +245,15 @@ export class TextEncoder { } encode(input = '') { - return encodingNative.encode(`${input}`); + // USVString conversion: lone surrogates become U+FFFD. + return encodingNative.encode(toWellFormed(`${input}`)); } encodeInto(string, uint8Array) { if (typeof string !== 'string') { throw new TypeError('The "src" argument must be of type string. Received type ' + typeof string); } - return encodingNative.encode_into(string, uint8Array); + return encodingNative.encode_into(toWellFormed(string), uint8Array); } } diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/events.js b/crates/wasm-rquickjs/skeleton/src/builtin/events.js index 9f1621c67..d530d67b8 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/events.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/events.js @@ -575,10 +575,15 @@ EventEmitter.prototype.eventNames = function eventNames() { return Object.keys(this._events).concat(Object.getOwnPropertySymbols(this._events)); }; -// Legacy static listenerCount +// Static listenerCount; like Node 26 it also counts EventTarget (including AbortSignal) listeners. EventEmitter.listenerCount = function(emitter, eventName) { - if (emitter == null || typeof emitter.listenerCount !== 'function') return 0; - return emitter.listenerCount(eventName); + if (emitter == null) return 0; + if (typeof emitter.listenerCount === 'function') return emitter.listenerCount(eventName); + if (typeof emitter.addEventListener === 'function' && emitter._listeners) { + const entries = emitter._listeners[eventName]; + return entries ? entries.length : 0; + } + return 0; }; EventEmitter.once = function(emitter, name, options) { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/fetch-blob-4.0.0.js b/crates/wasm-rquickjs/skeleton/src/builtin/fetch-blob-4.0.0.js index 3f6a32b91..c292efc85 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/fetch-blob-4.0.0.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/fetch-blob-4.0.0.js @@ -96,6 +96,8 @@ const _Blob = class Blob { if (options === null) options = {} const encoder = new TextEncoder() + // WHATWG "convert line endings to native"; the native ending is "\n" on this POSIX target. + const nativeEndings = options.endings === 'native' for (const element of blobParts) { let part if (ArrayBuffer.isView(element)) { @@ -105,7 +107,8 @@ const _Blob = class Blob { } else if (element instanceof Blob) { part = element } else { - part = encoder.encode(`${element}`) + const text = `${element}` + part = encoder.encode(nativeEndings ? text.replace(/\r\n|\r|\n/g, '\n') : text) } const size = ArrayBuffer.isView(part) ? part.byteLength : part.size diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/fs.js b/crates/wasm-rquickjs/skeleton/src/builtin/fs.js index 1c6e58e2e..34843590f 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/fs.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/fs.js @@ -5,6 +5,7 @@ import { ERR_DIR_CONCURRENT_OPERATION, ERR_FS_FILE_TOO_LARGE, ERR_INVALID_ARG_TYPE, + ERR_INVALID_THIS, ERR_OUT_OF_RANGE, } from '__wasm_rquickjs_builtin/internal/errors'; import { @@ -165,7 +166,9 @@ const HAS_LCHMOD = false; const FILE_HANDLE_IN_USE_SYMBOL = Symbol.for('__wasm_rquickjs.filehandleInUse'); const FILE_HANDLE_IN_USE_COUNT_SYMBOL = Symbol.for('__wasm_rquickjs.filehandleInUseCount'); +// Node 26 exposes fs.constants as a null-prototype object. export let constants = { + __proto__: null, F_OK, R_OK, W_OK, X_OK, O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, O_DIRECTORY, O_NOATIME, O_NOFOLLOW, @@ -717,19 +720,26 @@ export let Dirent = class Dirent { // --- Dir class --- export let Dir = class Dir { + #path; + constructor(path, entries) { if (path === undefined) { const err = new TypeError('The "path" argument must be of type string. Received undefined'); err.code = 'ERR_MISSING_ARGS'; throw err; } - this.path = path; + this.#path = path; this._entries = entries; this._index = 0; this._closed = false; this._pendingAsyncOps = 0; } + get path() { + if (!(#path in this)) throw new ERR_INVALID_THIS('Dir'); + return this.#path; + } + _assertNotClosed() { if (this._closed) throw new ERR_DIR_CLOSED(); } @@ -819,6 +829,16 @@ export let Dir = class Dir { }); } + [Symbol.dispose]() { + if (this._closed) return; + this.closeSync(); + } + + async [Symbol.asyncDispose]() { + if (this._closed) return; + await this.close(); + } + [Symbol.asyncIterator]() { const self = this; return { @@ -1062,11 +1082,13 @@ export let openSync = function openSync(path, flags, mode) { mode = validateMode(mode, 'mode', 0o666); mode = mode & ~process.umask(); const fullPath = pathToString(path); + // Opening an existing file with O_CREAT creates no entry, so watchers see no 'rename'. + const created = (flags & O_CREAT) && _activeWatchers.size > 0 && native.fs_stat(fullPath).error; const result = native.fs_open(fullPath, flags, mode); if (result.error) { throw createSystemError(result.error); } - if (flags & O_CREAT) { + if (created) { _notifyFSWatchers(fullPath, 'rename'); } return result.fd; @@ -1265,6 +1287,8 @@ function makeStatFsResult(bigint) { return { type: BigInt(0), bsize: BigInt(4096), + // Node 26 adds the fragment size; WASI exposes no filesystem statistics. + frsize: BigInt(4096), blocks: BigInt(0), bfree: BigInt(0), bavail: BigInt(0), @@ -1275,6 +1299,7 @@ function makeStatFsResult(bigint) { return { type: 0, bsize: 4096, + frsize: 4096, blocks: 0, bfree: 0, bavail: 0, @@ -3401,9 +3426,16 @@ ReadStream.prototype.close = function(cb) { this.destroy(); }; +// Like Node 26 validateThisInternalField, autoClose works only on stream instances. Object.defineProperty(ReadStream.prototype, 'autoClose', { - get() { return this._readableState ? this._readableState.autoDestroy : true; }, - set(val) { if (this._readableState) this._readableState.autoDestroy = val; } + get() { + if (!this || !this._readableState) throw new ERR_INVALID_THIS('ReadStream'); + return this._readableState.autoDestroy; + }, + set(val) { + if (!this || !this._readableState) throw new ERR_INVALID_THIS('ReadStream'); + this._readableState.autoDestroy = val; + } }); Object.defineProperty(ReadStream.prototype, 'pending', { @@ -3664,8 +3696,14 @@ WriteStream.prototype.close = function(cb) { }; Object.defineProperty(WriteStream.prototype, 'autoClose', { - get() { return this._writableState ? this._writableState.autoDestroy : true; }, - set(val) { if (this._writableState) this._writableState.autoDestroy = val; } + get() { + if (!this || !this._writableState) throw new ERR_INVALID_THIS('WriteStream'); + return this._writableState.autoDestroy; + }, + set(val) { + if (!this || !this._writableState) throw new ERR_INVALID_THIS('WriteStream'); + this._writableState.autoDestroy = val; + } }); Object.defineProperty(WriteStream.prototype, 'pending', { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/fs_promises.js b/crates/wasm-rquickjs/skeleton/src/builtin/fs_promises.js index aa6b981d1..44fabcdb9 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/fs_promises.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/fs_promises.js @@ -17,10 +17,13 @@ import { validateUid, validateFlush, validateAbortSignal, - validateAppendFileData, validateMkdtempPrefix as _validateMkdtempPrefix, makeAbortError, } from '__wasm_rquickjs_builtin/internal/fs/shared'; +import { + validateInteger as validateIntegerOption, + validateOneOf, +} from '__wasm_rquickjs_builtin/internal/validators'; const fileHandleCloneAdapter = {__proto__: null, kind: 'FileHandle', requiresTransfer: true}; @@ -291,18 +294,10 @@ export class FileHandle { get fd() { return this._fd; } - async appendFile(data, options) { - if (this._closed) throw makeEBADF('write'); - validateAppendFileData(data); - if (typeof data === 'string') { - const pos = null; - const result = native.fs_write_string(this._fd, data, pos); - if (result.error) throw createSystemError(result.error); - } else { - const dataArray = new Uint8Array(data.buffer || data, data.byteOffset || 0, data.byteLength || data.length); - const result = native.fs_write_buffer(this._fd, dataArray, 0, dataArray.length, null); - if (result.error) throw createSystemError(result.error); - } + // FileHandle.appendFile is FileHandle.writeFile, as in Node: a handle opened with an + // append flag appends at the end. + appendFile(data, options) { + return this.writeFile(data, options); } async chmod(mode) { @@ -386,6 +381,7 @@ export class FileHandle { position = position !== undefined ? position : null; } } + length |= 0; if (length === 0) { return { bytesRead: 0, buffer }; @@ -735,29 +731,10 @@ export async function appendFile(path, data, options) { return path.appendFile(data, options); } - const pathString = pathToString(path); - const flush = options && typeof options === 'object' ? options.flush : undefined; - validateFlush(flush); - validateAppendFileData(data); - - let error; - if (typeof data === 'string') { - error = native.fs_append_file_string(pathString, data); - } else { - const dataArray = new Uint8Array(data.buffer || data, data.byteOffset || 0, data.byteLength || data.length); - error = native.fs_append_file(pathString, dataArray); - } - if (error) throw createSystemError(error); - - if (flush === true) { - const fs = require('node:fs'); - const fd = fs.openSync(pathString, 'r'); - try { - fs.fsyncSync(fd); - } finally { - fs.closeSync(fd); - } - } + // Like Node 26, appendFile is writeFile with flag 'a', so it shares its data types and signal. + const opts = typeof options === 'string' ? { encoding: options } : { ...options }; + opts.flag ||= 'a'; + return writeFile(path, data, opts); } export async function unlink(path) { @@ -1042,6 +1019,11 @@ export async function* watch(filename, options = {}) { throw err; } + const maxQueue = options.maxQueue ?? 2048; + validateIntegerOption(maxQueue, 'options.maxQueue'); + const overflow = options.overflow ?? 'ignore'; + validateOneOf(overflow, 'options.overflow', ['ignore', 'error']); + const signal = options.signal; validateAbortSignal(signal, 'options.signal'); @@ -1085,8 +1067,16 @@ export async function* watch(filename, options = {}) { const w = waiting; waiting = null; w.resolve(event); - } else { + } else if (queue.length < maxQueue) { queue.push(event); + } else if (overflow === 'error') { + // Like Node 26, an overflowing queue is replaced by a single queue-overflow error. + queue.length = 0; + const err = new Error(`fs.watch() queued more than ${maxQueue} events`); + err.code = 'ERR_FS_WATCH_QUEUE_OVERFLOW'; + queue.push(err); + } else { + process.emitWarning('fs.watch maxQueue exceeded'); } }); @@ -1112,6 +1102,7 @@ export async function* watch(filename, options = {}) { }); } if (event === null) break; + if (event instanceof Error) throw event; yield event; } } finally { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/binding/util.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/binding/util.js index 183eddb14..4d2de8a48 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/binding/util.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/binding/util.js @@ -32,6 +32,7 @@ import { import { NativeWeakRef, createPrivateWeakMap, + createPrivateWeakSet, nativeWeakMapDelete, nativeWeakMapGet, nativeWeakMapHas, @@ -114,7 +115,22 @@ export function guessHandleType(_fd) { notImplemented("util.guessHandleType"); } +// Proxies the runtime uses to emulate engine objects (such as vm module namespaces) are +// not proxies in Node, so util.inspect and util.types.isProxy must not report them. +const engineObjectProxies = createPrivateWeakSet(); + +export function markEngineObjectProxy(proxy) { + engineObjectProxies.add(proxy); + return proxy; +} + +// Returns the target an engine-object proxy emulates, or undefined for other values. +export function getEngineObjectProxyTarget(value) { + return engineObjectProxies.has(value) ? getProxyDetailsNative(value, false) : undefined; +} + export function getProxyDetails(value, fullProxy = true) { + if (engineObjectProxies.has(value)) return undefined; return getProxyDetailsNative(value, fullProxy); } diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/clone_policy.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/clone_policy.js index 6499aae50..9c43aebd0 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/clone_policy.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/clone_policy.js @@ -25,6 +25,24 @@ export function isMarkedAsUntransferable(value) { return untransferable.has(value); } +// Node marks untransferable buffers with a V8 detach key, so +// ArrayBuffer.prototype.transfer() also rejects them. +for (const name of ['transfer', 'transferToFixedLength']) { + const original = ArrayBuffer.prototype[name]; + if (typeof original !== 'function') continue; + const wrapped = { + [name](...args) { + if (untransferable.has(this)) { + throw new TypeError('Cannot transfer an untransferable ArrayBuffer'); + } + return Reflect.apply(original, this, args); + }, + }[name]; + Object.defineProperty(ArrayBuffer.prototype, name, { + value: wrapped, writable: true, enumerable: false, configurable: true, + }); +} + export function registerCloneAdapter(value, adapter) { adapters.set(value, adapter); } diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/crypto/util.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/crypto/util.js new file mode 100644 index 000000000..671c61bc8 --- /dev/null +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/crypto/util.js @@ -0,0 +1,33 @@ +// Web Crypto algorithm names supported by KeyObject#toCryptoKey, keyed by their +// upper-case spelling for case-insensitive lookup. +export const TO_CRYPTO_KEY_ALGORITHM_NAMES = { + 'AES-CTR': 'AES-CTR', + 'AES-CBC': 'AES-CBC', + 'AES-GCM': 'AES-GCM', + 'AES-KW': 'AES-KW', + 'PBKDF2': 'PBKDF2', + 'HKDF': 'HKDF', + 'HMAC': 'HMAC', + 'ED25519': 'Ed25519', + 'ED448': 'Ed448', + 'X25519': 'X25519', + 'X448': 'X448', + 'RSASSA-PKCS1-V1_5': 'RSASSA-PKCS1-v1_5', + 'RSA-PSS': 'RSA-PSS', + 'RSA-OAEP': 'RSA-OAEP', + 'ECDH': 'ECDH', + 'ECDSA': 'ECDSA', +}; + +// Mirrors the shape of Node's internal/crypto/util kSupportedAlgorithms for the +// operations exposed here: each operation maps a supported algorithm name to null. +function namesOf(names) { + const table = { __proto__: null }; + for (const name of names) table[name] = null; + return table; +} + +export const kSupportedAlgorithms = { + digest: namesOf(['SHA-1', 'SHA-256', 'SHA-384', 'SHA-512']), + importKey: namesOf(Object.values(TO_CRYPTO_KEY_ALGORITHM_NAMES)), +}; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/errors.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/errors.js index e4b64ac04..222a6661b 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/errors.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/errors.js @@ -572,7 +572,23 @@ Object.defineProperty(globalThis, '__wasm_rquickjs_install_source_map_error_stac // Node.js includes the error code in toString() so that regex tests like // /ERR_INVALID_ARG_TYPE/ can match against String(error). // We keep message and name clean (for exact-match tests) but add toString(). +const nativeErrorPrototypes = new Set([ + Error.prototype, + TypeError.prototype, + RangeError.prototype, + SyntaxError.prototype, + URIError.prototype, + EvalError.prototype, + ReferenceError.prototype, +]); + function addCodeToMessage(err, code) { + // Node creates coded errors as plain instances of their base class, so + // `err.constructor` is the native error constructor, not the ERR_* class. + const base = Object.getPrototypeOf(Object.getPrototypeOf(err)); + if (nativeErrorPrototypes.has(base)) { + Object.setPrototypeOf(err, base); + } err.code = code; const origToString = Error.prototype.toString; Object.defineProperty(err, 'toString', { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/mod.rs b/crates/wasm-rquickjs/skeleton/src/builtin/internal/mod.rs index a4e60eb1c..ae2d3132c 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/mod.rs +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/mod.rs @@ -15,6 +15,7 @@ pub fn add_to_resolver(resolver: BuiltinResolver) -> BuiltinResolver { .with_module("__wasm_rquickjs_builtin/internal/validators") .with_module("__wasm_rquickjs_builtin/internal/weak_collections") .with_module("__wasm_rquickjs_builtin/internal/clone_policy") + .with_module("__wasm_rquickjs_builtin/internal/crypto/util") .with_module("__wasm_rquickjs_builtin/internal/streams/add-abort-signal") .with_module("__wasm_rquickjs_builtin/internal/binding/util_native") .with_module("__wasm_rquickjs_builtin/internal/binding/util") @@ -91,6 +92,10 @@ pub fn module_loader() -> BuiltinLoader { "__wasm_rquickjs_builtin/internal/clone_policy", include_str!("clone_policy.js"), ) + .with_module( + "__wasm_rquickjs_builtin/internal/crypto/util", + include_str!("crypto/util.js"), + ) .with_module( "__wasm_rquickjs_builtin/internal/binding/util", include_str!("binding/util.js"), diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/compose.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/compose.js index 66de6fee8..a428c145d 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/compose.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/compose.js @@ -100,7 +100,6 @@ function compose(...streams) { let ondrain; let onfinish; - let onreadable; let onclose; let d; @@ -202,32 +201,19 @@ function compose(...streams) { if (readable) { if (isNodeStream(tail)) { - tail.on("readable", function () { - if (onreadable) { - const cb = onreadable; - onreadable = null; - cb(); + d._read = function () { + tail.resume(); + }; + + tail.on("data", function (chunk) { + if (!d.push(chunk)) { + tail.pause(); } }); tail.on("end", function () { d.push(null); }); - - d._read = function () { - while (true) { - const buf = tail.read(); - - if (buf === null) { - onreadable = d._read; - return; - } - - if (!d.push(buf)) { - return; - } - } - }; } else if (isWebStream(tail)) { const wsReadable = isTransformStream(tail) ? tail.readable : tail; const reader = wsReadable.getReader(); @@ -237,12 +223,12 @@ function compose(...streams) { try { const { value, done } = await reader.read(); - if (!d.push(value)) { + if (done) { + d.push(null); return; } - if (done) { - d.push(null); + if (!d.push(value)) { return; } } catch { @@ -258,7 +244,6 @@ function compose(...streams) { err = new AbortError(); } - onreadable = null; ondrain = null; onfinish = null; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/duplex.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/duplex.js index 7efdd4003..b9f31e8e3 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/duplex.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/duplex.js @@ -230,6 +230,8 @@ function duplexify(body, name) { const then = value?.then; if (typeof then === "function") { let d; + // Tracks whether writable final() has started. + let finalized = false; const promise = then.call( value, @@ -237,6 +239,11 @@ function duplexify(body, name) { if (val != null) { throw new ERR_INVALID_RETURN_VALUE("nully", "body", val); } + // Like Node 26, an async function that returns without consuming its + // input destroys the duplex so pipeline propagates destruction upstream. + if (!finalized) { + destroyer(d); + } }, (err) => { destroyer(d, err); @@ -249,6 +256,7 @@ function duplexify(body, name) { readable: false, write, final(cb) { + finalized = true; final(async () => { try { await promise; @@ -358,7 +366,7 @@ function fromAsyncGen(fn) { const { chunk, done, cb } = await _promise; nextTick(cb); if (done) return; - if (signal.aborted) throw new AbortError(); + if (signal.aborted) throw new AbortError(undefined, { cause: signal.reason }); ({ promise, resolve } = createDeferredPromise()); yield chunk; } @@ -379,7 +387,16 @@ function fromAsyncGen(fn) { _resolve({ done: true, cb }); }, destroy(err, cb) { - ac.abort(); + ac.abort(err); + + // Like Node 26, unblock a source iterator waiting for the next write/final + // so the readable side observes the abort and finishes destroying. + if (resolve !== null) { + const _resolve = resolve; + resolve = null; + _resolve({ done: true, cb() {} }); + } + cb(err); }, }; @@ -468,7 +485,7 @@ function _duplexify(pair) { eos(r, (err) => { readable = false; if (err) { - destroyer(r, err); + destroyer(w, err); } onfinished(err); }); diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/end-of-stream.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/end-of-stream.js index e9b139de7..d9ac0f5be 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/end-of-stream.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/end-of-stream.js @@ -42,6 +42,10 @@ function isServerResponse(stream) { const nop = () => { }; +// Internal only (Node exposes it to tests): if eos() can settle immediately +// because the signal is already aborted, invoke the callback before returning. +export const kEosNodeSynchronousCallback = Symbol('kEosNodeSynchronousCallback'); + export function eos(stream, options, callback) { if (arguments.length === 2) { @@ -194,7 +198,9 @@ export function eos(stream, options, callback) { cleanup(); endCallback.call(stream, new AbortError()); }; - if (options.signal.aborted) { + if (options.signal.aborted && options[kEosNodeSynchronousCallback]) { + abort(); + } else if (options.signal.aborted) { nextTick(abort); } else { const originalCallback = callback; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/from.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/from.js index 522772484..1f6b882c5 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/from.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/from.js @@ -3,7 +3,7 @@ // deno-lint-ignore-file import { Buffer } from "buffer"; -import { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } from "__wasm_rquickjs_builtin/internal/errors"; +import { aggregateTwoErrors, ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } from "__wasm_rquickjs_builtin/internal/errors"; import { nextTick } from "node:process"; function _from(Readable, iterable, opts) { @@ -36,6 +36,7 @@ function _from(Readable, iterable, opts) { // TODO(ronag): What options should be allowed? ...opts, }); + const originalDestroy = readable._destroy; // Flag to protect against _read // being called before last iteration completion. @@ -48,11 +49,16 @@ function _from(Readable, iterable, opts) { } }; + // Like Node 26, a destroy passed in opts (such as Duplex.from's async-function source) + // runs before the iterator closes, so a source waiting on it can settle. readable._destroy = function (error, cb) { - close(error).then( - () => nextTick(cb, error), // nextTick is here in case cb throws - (e) => nextTick(cb, e || error), - ); + originalDestroy.call(this, error, (destroyError) => { + const combinedError = destroyError || error; + close(combinedError).then( + () => nextTick(cb, combinedError), // nextTick is here in case cb throws + (closeError) => nextTick(cb, aggregateTwoErrors(combinedError, closeError)), + ); + }); }; async function close(error) { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/readable.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/readable.js index 0b276dc8a..785a5b26d 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/readable.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/readable.js @@ -379,6 +379,10 @@ function howMuchToRead(n, state) { return 1; } if (Number.isNaN(n)) { + // Without a decoder, read() returns the next buffered chunk, as in Node 26. + if (!state.decoder && state.length) { + return state.buffer.first().length; + } // Only flow one buffer at a time. if (state.flowing && state.length) { return state.buffer.first().length; @@ -1555,7 +1559,8 @@ function newReadableStreamFromStreamReadable(streamReadable, options = {}) { streamReadable.pause(); - const cleanup = eos(streamReadable, (error) => { + // Like Node 26, a Duplex's readable completion does not wait for its half-open writable side. + const cleanup = eos(streamReadable, { writable: false }, (error) => { cleanup(); streamReadable.on('error', () => {}); if (error) diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/writable.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/writable.js index 832fb18ed..9599d246c 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/writable.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/streams/writable.js @@ -287,10 +287,9 @@ function _write(stream, chunk, encoding, cb) { } if (typeof chunk === "string") { + // Node 26 rejects a string chunk with 'buffer' encoding (upstream f352556da8). if (encoding === "buffer") { - const err = new TypeError('Second argument must be a buffer'); - err.code = 'ERR_INVALID_ARG_TYPE'; - throw err; + throw new ERR_UNKNOWN_ENCODING(encoding); } if (state.decodeStrings !== false) { chunk = Buffer.from(chunk, encoding); diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/util.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/util.js index 16f7f2526..175c09a26 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/util.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/util.js @@ -86,7 +86,7 @@ export function emitExperimentalWarning(feature) { // Mark that a method should not be used. // Returns a modified function which warns once by default. // If --no-deprecation is set, then it is a no-op. -export function deprecate(fn, msg, code) { +export function deprecate(fn, msg, code, useEmitSync, modifyPrototype = true) { // TODO(kt3k): Uncomment this // if (process.noDeprecation === true) { // return fn; @@ -115,18 +115,57 @@ export function deprecate(fn, msg, code) { return Reflect.apply(fn, this, args); } - // The wrapper will keep the same prototype as fn to maintain prototype chain - Object.setPrototypeOf(deprecated, fn); - if (fn.prototype) { - // Setting this (rather than using Object.setPrototype, as above) ensures - // that calling the unwrapped constructor gives an instanceof the wrapped - // constructor. - deprecated.prototype = fn.prototype; + if (modifyPrototype) { + // The wrapper will keep the same prototype as fn to maintain prototype chain + Object.setPrototypeOf(deprecated, fn); + if (fn.prototype) { + // Setting this (rather than using Object.setPrototype, as above) ensures + // that calling the unwrapped constructor gives an instanceof the wrapped + // constructor. + deprecated.prototype = fn.prototype; + } + + Object.defineProperty(deprecated, 'length', { + __proto__: null, + ...Object.getOwnPropertyDescriptor(fn, 'length'), + }); } return deprecated; } +function isPendingDeprecation() { + const execArgv = globalThis.process?.execArgv; + return (Array.isArray(execArgv) && execArgv.includes('--pending-deprecation')) || + globalThis.process?.env?.NODE_PENDING_DEPRECATION === '1'; +} + +// Like deprecate(), but warns only with --pending-deprecation. +export function pendingDeprecate(fn, msg, code) { + let warned = false; + function deprecated(...args) { + if (!warned && isPendingDeprecation()) { + warned = true; + if (code !== undefined) { + if (!codesWarned.has(code)) { + process.emitWarning(msg, "DeprecationWarning", code, deprecated); + codesWarned.add(code); + } + } else { + process.emitWarning(msg, "DeprecationWarning", deprecated); + } + } + return Reflect.apply(fn, this, args); + } + + Object.defineProperty(deprecated, 'length', { + __proto__: null, + ...Object.getOwnPropertyDescriptor(fn, 'length'), + }); + + return deprecated; +} + // In addition to being accessible through util.promisify.custom, // this symbol is registered globally and can be accessed in any environment as // Symbol.for('nodejs.util.promisify.custom'). @@ -252,6 +291,7 @@ export default { sleep, once, deprecate, + pendingDeprecate, emitExperimentalWarning, promisify, removeColors, diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/util/inspect.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/util/inspect.js index 3c0c4e006..c5d83cf09 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/util/inspect.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/util/inspect.js @@ -28,6 +28,7 @@ import { createPrivateWeakMap, createPrivateWeakSet } from "__wasm_rquickjs_buil import { ALL_PROPERTIES, getConstructorName as internalGetConstructorName, + getEngineObjectProxyTarget, getPromiseDetails, getProxyDetails, getOwnNonIndexProperties, @@ -578,17 +579,35 @@ function formatValue( // Memorize the context for custom inspection on proxies. const context = value; + // Engine objects emulated with a proxy format as their target, without a Proxy wrapper. + const engineTarget = getEngineObjectProxyTarget(value); + if (engineTarget !== undefined) { + value = engineTarget; + } // Always check for proxies to prevent side effects and to prevent triggering // any proxy handlers. - const proxy = getProxyDetails(value, !!ctx.showProxy); + let proxy = getProxyDetails(value, !!ctx.showProxy); + // Node 26 formats the target of a proxy wrapped in `Proxy(...)`, once per proxy level. + let proxies = 0; if (proxy !== undefined) { - if (proxy === null || proxy[0] === null) { - return ctx.stylize("", "special"); - } if (ctx.showProxy) { + if (proxy === null || proxy[0] === null) { + return ctx.stylize("", "special"); + } return formatProxy(ctx, proxy, recurseTimes); } - value = proxy; + do { + if (proxy === null) { + let formatted = ctx.stylize("", "special"); + for (let i = 0; i < proxies; i++) { + formatted = `${ctx.stylize("Proxy(", "special")}${formatted}${ctx.stylize(")", "special")}`; + } + return formatted; + } + value = proxy; + proxy = getProxyDetails(value, false); + proxies += 1; + } while (proxy !== undefined); } // Provide a hook for user-specified inspect functions. @@ -641,7 +660,11 @@ function formatValue( return ctx.stylize(`[Circular *${index}]`, "special"); } - return formatRaw(ctx, value, recurseTimes, typedArray); + let formatted = formatRaw(ctx, value, recurseTimes, typedArray); + for (let i = 0; i < proxies; i++) { + formatted = `${ctx.stylize("Proxy(", "special")}${formatted}${ctx.stylize(")", "special")}`; + } + return formatted; } function formatRaw(ctx, value, recurseTimes, typedArray) { @@ -660,14 +683,11 @@ function formatRaw(ctx, value, recurseTimes, typedArray) { protoProps = undefined; } - let tag; + let tag = ""; try { tag = value[Symbol.toStringTag]; - } catch (err) { - if (err?.name === "TypeError" && err.message === "circular reference") { - err.message = "Converting circular structure to JSON"; - } - throw err; + } catch { + // Node 26 ignores a throwing Symbol.toStringTag getter. } // Only list the tag in case it's non-enumerable / not an own property. // Otherwise we'd print this twice. @@ -697,6 +717,7 @@ function formatRaw(ctx, value, recurseTimes, typedArray) { const filter = ctx.showHidden ? ALL_PROPERTIES : ONLY_ENUMERABLE; let extrasType = kObjectType; + let extraKeys; // Iterators and the rest are split to reduce checks. // We have to check all values in case the constructor is set to null. @@ -871,6 +892,20 @@ function formatRaw(ctx, value, recurseTimes, typedArray) { if (Object.prototype.hasOwnProperty.call(value, 'cause') && keys.indexOf('cause') === -1) { keys.push('cause'); } + // Node 26 also prints AggregateError errors and SuppressedError error/suppressed. + try { + const errors = value.errors; + if (Array.isArray(errors) && Object.prototype.hasOwnProperty.call(value, 'errors') && keys.indexOf('errors') === -1) { + keys.push('errors'); + } + } catch { + // A throwing errors getter is ignored. + } + for (const key of ['error', 'suppressed']) { + if (Object.prototype.hasOwnProperty.call(value, key) && keys.indexOf(key) === -1) { + keys.push(key); + } + } base = formatError(value, constructor, tag, ctx, keys); if (keys.length === 0 && protoProps === undefined) { return base; @@ -891,14 +926,14 @@ function formatRaw(ctx, value, recurseTimes, typedArray) { (formatter) = formatArrayBuffer; } else if (keys.length === 0 && protoProps === undefined) { return prefix + - `{ byteLength: ${formatNumber(ctx.stylize, value.byteLength, ctx.numericSeparator)} }`; + `{ [byteLength]: ${formatNumber(ctx.stylize, value.byteLength, ctx.numericSeparator)} }`; } braces[0] = `${prefix}{`; - Array.prototype.unshift.call(keys, "byteLength"); + extraKeys = ["byteLength"]; } else if (types.isDataView(value) || (constructor === null && nullProtoConstructor === "DataView")) { braces[0] = `${getPrefix(constructor, tag, "DataView")}{`; // .buffer goes last, it's not a primitive like the others. - Array.prototype.unshift.call(keys, "byteLength", "byteOffset", "buffer"); + extraKeys = ["byteLength", "byteOffset", "buffer"]; } else if ( types.isPromise(value) || (constructor === null && (nullProtoConstructor === "Promise" || isNullProtoPromise(value))) @@ -977,6 +1012,18 @@ function formatRaw(ctx, value, recurseTimes, typedArray) { const indentationLvl = ctx.indentationLvl; try { output = formatter(ctx, value, recurseTimes); + if (extraKeys !== undefined) { + for (i = 0; i < extraKeys.length; i++) { + let formatted; + try { + formatted = formatExtraProperties(ctx, value, recurseTimes, extraKeys[i], typedArray); + } catch { + const tempValue = { [extraKeys[i]]: value.buffer[extraKeys[i]] }; + formatted = formatExtraProperties(ctx, tempValue, recurseTimes, extraKeys[i], typedArray); + } + output.push(formatted); + } + } for (i = 0; i < keys.length; i++) { output.push( formatProperty(ctx, value, recurseTimes, keys[i], extrasType), @@ -1629,13 +1676,14 @@ function formatError( if (typeof stackValue === "string") { stack = stackValue; } else { + // Node 26 prints a non-string stack below the error's own summary line. const stackCtx = { ...ctx, compact: false, - indentationLvl: 0, - seen: [], + indentationLvl: ctx.indentationLvl + 4, + seen: [...ctx.seen, err], }; - stack = formatValue(stackCtx, stackValue, 0); + stack = `${Error.prototype.toString.call(err)}\n ${formatValue(stackCtx, stackValue, 0)}`; } } else { stack = Error.prototype.toString.call(err); @@ -2048,6 +2096,17 @@ function formatWeakMap(ctx, value, recurseTimes) { return formatMapIterInner(ctx, recurseTimes, entries, kWeak); } +function formatExtraProperties(ctx, value, recurseTimes, key, typedArray) { + // Read the value before indenting: the getter throws for a detached + // DataView, and formatRaw() then retries with a fallback value. + const extraValue = value[key]; + ctx.indentationLvl += 2; + const str = formatValue(ctx, extraValue, recurseTimes, typedArray); + ctx.indentationLvl -= 2; + const name = ctx.stylize(`[${key}]`, "string"); + return `${name}: ${str}`; +} + function formatProperty( ctx, value, @@ -2083,26 +2142,22 @@ function formatProperty( (ctx.getters === "get" && desc.set === undefined) || (ctx.getters === "set" && desc.set !== undefined)) ) { + ctx.indentationLvl += 2; try { const tmp = desc.get.call(original); - ctx.indentationLvl += 2; if (tmp === null) { str = `${s(`[${label}:`, sp)} ${s("null", "null")}${s("]", sp)}`; - } else if (typeof tmp === "object") { + } else if (typeof tmp === "object" || typeof tmp === "function") { str = `${s(`[${label}]`, sp)} ${formatValue(ctx, tmp, recurseTimes)}`; } else { const primitive = formatPrimitive(s, tmp, ctx); str = `${s(`[${label}:`, sp)} ${primitive}${s("]", sp)}`; } - ctx.indentationLvl -= 2; } catch (err) { - let errMessage = err?.message; - if (err?.name === "TypeError" && errMessage === "not a symbol") { - errMessage = "Symbol.prototype.toString requires that 'this' be a Symbol"; - } - const message = ``; + const message = ``; str = `${s(`[${label}:`, sp)} ${message}${s("]", sp)}`; } + ctx.indentationLvl -= 2; } else { str = ctx.stylize(`[${label}]`, sp); } @@ -2116,20 +2171,16 @@ function formatProperty( } if (typeof key === "symbol") { const tmp = key.toString().replace(strEscapeSequencesReplacer, escapeFn); - - name = `[${ctx.stylize(tmp, "symbol")}]`; - } else if (key === "__proto__") { - name = "['__proto__']"; - } else if (desc.enumerable === false) { - const tmp = key.replace(strEscapeSequencesReplacer, escapeFn); - - name = `[${tmp}]`; + name = ctx.stylize(tmp, "symbol"); } else if (keyStrRegExp.test(key)) { - name = ctx.stylize(key, "name"); + name = key === "__proto__" ? "['__proto__']" : ctx.stylize(key, "name"); } else { name = ctx.stylize(strEscape(key), "string"); } + if (desc.enumerable === false) { + name = `[${name}]`; + } return `${name}:${extra}${str}`; } @@ -2718,11 +2769,14 @@ function formatSetIterInner( // Adopted from https://github.com/chalk/ansi-regex/blob/HEAD/index.js // License: MIT, authors: @sindresorhus, Qix-, arjunmehta and LitoMore // Matches all ansi escape code sequences in a string -const ansiPattern = "[\\u001B\\u009B][[\\]()#;?]*" + - "(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*" + - "|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))" + - "|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"; -const ansi = new RegExp(ansiPattern, "g"); +// Node 26 lib/internal/util/inspect.js: OSC sequences (such as hyperlinks) end at BEL, +// ESC \\ or ST; CSI parameters may also be separated by colons. +const ansi = new RegExp( + '(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))' + + '|[\\u001B\\u009B][[\\]()#;?]*' + + '(?:\\d{1,4}(?:[;:]\\d{0,4})*)?' + + '[\\dA-PR-TZcf-nq-uy=><~]', 'g', +); /** * Returns the number of columns required to display the given string. diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/internal/util/types.js b/crates/wasm-rquickjs/skeleton/src/builtin/internal/util/types.js index de81a42b5..8947d9643 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/internal/util/types.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/internal/util/types.js @@ -21,7 +21,18 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. -const _toString = Object.prototype.toString; +const _objectToString = Object.prototype.toString; +// These brand checks read Symbol.toStringTag, which V8's native checks never do, +// so a throwing user getter must not escape them. +const _toString = { + call(value) { + try { + return _objectToString.call(value); + } catch { + return ""; + } + }, +}; const _getPrototypeOf = Object.getPrototypeOf; const _isObjectLike = (value) => @@ -60,12 +71,41 @@ const _setIteratorPrototype = (() => { return _getPrototypeOf(new Set().values()); })(); +// V8 checks these types by their internal brand, not Symbol.toStringTag, so +// use intrinsic accessors that only accept real instances. +const _getter = (prototype, key) => + Object.getOwnPropertyDescriptor(prototype, key)?.get; + +const _hasBrand = (getter, value) => { + if (!_isObjectLike(value) || getter === undefined) { + return false; + } + try { + getter.call(value); + return true; + } catch { + return false; + } +}; + +const _arrayBufferByteLength = _getter(ArrayBuffer.prototype, "byteLength"); +const _sharedArrayBufferByteLength = typeof SharedArrayBuffer === "function" + ? _getter(SharedArrayBuffer.prototype, "byteLength") + : undefined; +// A detached DataView still answers .buffer, unlike .byteLength. +const _dataViewBuffer = _getter(DataView.prototype, "buffer"); +const _dateGetTime = Date.prototype.getTime; +const _regExpGlobal = _getter(RegExp.prototype, "global"); +const _typedArrayToStringTag = _getter( + Object.getPrototypeOf(Uint8Array.prototype), + Symbol.toStringTag, +); + +const _typedArrayName = (value) => + _isObjectLike(value) ? _typedArrayToStringTag.call(value) : undefined; + export function isAnyArrayBuffer(value) { - return ( - _isObjectLike(value) && - (_toString.call(value) === "[object ArrayBuffer]" || - _toString.call(value) === "[object SharedArrayBuffer]") - ); + return isArrayBuffer(value) || isSharedArrayBuffer(value); } export function isArgumentsObject(value) { @@ -73,9 +113,7 @@ export function isArgumentsObject(value) { } export function isArrayBuffer(value) { - return ( - _isObjectLike(value) && _toString.call(value) === "[object ArrayBuffer]" - ); + return _hasBrand(_arrayBufferByteLength, value); } export function isAsyncFunction(value) { @@ -106,11 +144,19 @@ export function isBoxedPrimitive(value) { } export function isDataView(value) { - return _isObjectLike(value) && _toString.call(value) === "[object DataView]"; + return _hasBrand(_dataViewBuffer, value); } export function isDate(value) { - return _isObjectLike(value) && _toString.call(value) === "[object Date]"; + if (!_isObjectLike(value)) { + return false; + } + try { + _dateGetTime.call(value); + return true; + } catch { + return false; + } } export function isGeneratorFunction(value) { @@ -183,7 +229,15 @@ export function isPromise(value) { } export function isRegExp(value) { - return _isObjectLike(value) && _toString.call(value) === "[object RegExp]"; + if (!_isObjectLike(value)) { + return false; + } + try { + // RegExp.prototype itself answers undefined instead of throwing. + return typeof _regExpGlobal.call(value) === "boolean"; + } catch { + return false; + } } export function isSet(value) { @@ -210,10 +264,7 @@ export function isSetIterator(value) { } export function isSharedArrayBuffer(value) { - return ( - _isObjectLike(value) && - _toString.call(value) === "[object SharedArrayBuffer]" - ); + return _hasBrand(_sharedArrayBufferByteLength, value); } export function isStringObject(value) { @@ -251,74 +302,49 @@ export function isArrayBufferView(value) { } export function isBigInt64Array(value) { - return ( - _isObjectLike(value) && _toString.call(value) === "[object BigInt64Array]" - ); + return _typedArrayName(value) === "BigInt64Array"; } export function isBigUint64Array(value) { - return ( - _isObjectLike(value) && _toString.call(value) === "[object BigUint64Array]" - ); + return _typedArrayName(value) === "BigUint64Array"; } export function isFloat32Array(value) { - return ( - _isObjectLike(value) && _toString.call(value) === "[object Float32Array]" - ); + return _typedArrayName(value) === "Float32Array"; } export function isFloat64Array(value) { - return ( - _isObjectLike(value) && _toString.call(value) === "[object Float64Array]" - ); + return _typedArrayName(value) === "Float64Array"; } export function isInt8Array(value) { - return _isObjectLike(value) && _toString.call(value) === "[object Int8Array]"; + return _typedArrayName(value) === "Int8Array"; } export function isInt16Array(value) { - return ( - _isObjectLike(value) && _toString.call(value) === "[object Int16Array]" - ); + return _typedArrayName(value) === "Int16Array"; } export function isInt32Array(value) { - return ( - _isObjectLike(value) && _toString.call(value) === "[object Int32Array]" - ); + return _typedArrayName(value) === "Int32Array"; } -// Adapted from Lodash export function isTypedArray(value) { - /** Used to match `toStringTag` values of typed arrays. */ - const reTypedTag = - /^\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped|Big(?:Uint|Int)64)Array\]$/; - return _isObjectLike(value) && reTypedTag.test(_toString.call(value)); + return _typedArrayName(value) !== undefined; } export function isUint8Array(value) { - return ( - _isObjectLike(value) && _toString.call(value) === "[object Uint8Array]" - ); + return _typedArrayName(value) === "Uint8Array"; } export function isUint8ClampedArray(value) { - return ( - _isObjectLike(value) && - _toString.call(value) === "[object Uint8ClampedArray]" - ); + return _typedArrayName(value) === "Uint8ClampedArray"; } export function isUint16Array(value) { - return ( - _isObjectLike(value) && _toString.call(value) === "[object Uint16Array]" - ); + return _typedArrayName(value) === "Uint16Array"; } export function isUint32Array(value) { - return ( - _isObjectLike(value) && _toString.call(value) === "[object Uint32Array]" - ); + return _typedArrayName(value) === "Uint32Array"; } diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/module.js b/crates/wasm-rquickjs/skeleton/src/builtin/module.js index 715c6cb9d..f180472bb 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/module.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/module.js @@ -17,7 +17,9 @@ import * as internalUtilDebuglog from '__wasm_rquickjs_builtin/internal/util/deb import * as internalWebstreamsUtil from '__wasm_rquickjs_builtin/internal/webstreams/util'; import * as internalStreamsAddAbortSignal from '__wasm_rquickjs_builtin/internal/streams/add-abort-signal'; import * as internalStreamsState from '__wasm_rquickjs_builtin/internal/streams/state'; +import * as internalStreamsEndOfStream from '__wasm_rquickjs_builtin/internal/streams/end-of-stream'; import * as internalTestBinding from '__wasm_rquickjs_builtin/internal/test/binding'; +import { kSupportedAlgorithms } from '__wasm_rquickjs_builtin/internal/crypto/util'; import { extractSourceMapURL } from '__wasm_rquickjs_builtin/internal/source_map_url'; import { createPrivateWeakMap, createPrivateWeakSet } from '__wasm_rquickjs_builtin/internal/weak_collections'; import { get_diagnostic_data as diagnosticData } from '__wasm_rquickjs_builtin/internal/binding/util_native'; @@ -89,6 +91,10 @@ const internalUtilDebuglogCjs = cjsExport(internalUtilDebuglog); const internalWebstreamsUtilCjs = cjsExport(internalWebstreamsUtil); const internalStreamsAddAbortSignalCjs = cjsExport(internalStreamsAddAbortSignal); const internalStreamsStateCjs = cjsExport(internalStreamsState); +const internalStreamsEndOfStreamCjs = { + eos: internalStreamsEndOfStream.eos, + kEosNodeSynchronousCallback: internalStreamsEndOfStream.kEosNodeSynchronousCallback, +}; const internalTestBindingCjs = cjsExport(internalTestBinding); const builtinCjsCache = Object.create(null); @@ -187,7 +193,9 @@ builtinModuleMap['internal/util/debuglog'] = internalUtilDebuglogCjs; builtinModuleMap['internal/webstreams/util'] = internalWebstreamsUtilCjs; builtinModuleMap['internal/streams/add-abort-signal'] = internalStreamsAddAbortSignalCjs; builtinModuleMap['internal/streams/state'] = internalStreamsStateCjs; +builtinModuleMap['internal/streams/end-of-stream'] = internalStreamsEndOfStreamCjs; builtinModuleMap['internal/test/binding'] = internalTestBindingCjs; +builtinModuleMap['internal/crypto/util'] = { kSupportedAlgorithms }; // --- Module mock registry (used by node:test mock.module()) --- const _moduleMockRegistry = Object.create(null); @@ -3237,7 +3245,48 @@ function unmarkRequireEsmSourceOverride(previous) { } } -function requireEsmWithCacheGuard(mod, resolvedFilename, forceModule, sourceOverride) { +const REQUIRED_TLA_HINT = ' To see where the top-level await comes from, use --experimental-print-required-tla.'; + +// Node's ERR_REQUIRE_ASYNC_MODULE lists the requiring modules (parent first). +function decorateRequireAsyncModuleError(err, parent) { + if (!err || err.code !== 'ERR_REQUIRE_ASYNC_MODULE' || Object.hasOwn(err, 'requireStack') || + typeof err.message !== 'string' || !err.message.includes('\nRequired module: ')) { + return; + } + let message = err.message; + if (rustHasExecArgvFlag('--experimental-print-required-tla')) { + message = message.replace(REQUIRED_TLA_HINT, ''); + } + const requireStack = []; + for (let cursor = parent; cursor; cursor = cursor.parent) { + const id = cursor.filename || cursor.id; + // The synthetic main record of the runtime (filename '/') is not a module of the + // graph; an entry script reuses that record with its real filename. + if (id === '/') break; + requireStack.push(id); + } + if (requireStack.length > 0) { + message += '\nRequire stack:\n- ' + requireStack.join('\n- '); + } + err.message = message; + Object.defineProperty(err, 'requireStack', { + value: requireStack, writable: true, enumerable: false, configurable: true, + }); +} + +const CJS_GLOBAL_LIKE_NAMES = ['require', 'module', 'exports', '__filename', '__dirname']; + +// Node's ModuleJobSync explains a bare CommonJS global reference in an ES module +// (lib/internal/modules/esm/module_job.js explainCommonJSGlobalLikeNotDefinedError). +function explainCommonJsGlobalLikeNotDefinedError(err) { + if (!err || err.name !== 'ReferenceError' || typeof err.message !== 'string') return; + const name = CJS_GLOBAL_LIKE_NAMES.find((globalLike) => err.message === globalLike + ' is not defined'); + if (name === undefined) return; + err.message += ' in ES module scope'; + if (name === 'require') err.message += ', you can use import instead'; +} + +function requireEsmWithCacheGuard(mod, resolvedFilename, forceModule, sourceOverride, parentModule = mod.parent) { let esmIdentity = resolvedFilename; if ( sourceOverride === undefined && @@ -3261,7 +3310,14 @@ function requireEsmWithCacheGuard(mod, resolvedFilename, forceModule, sourceOver }); try { if (forceModule) markRequireEsmForcedModule(resolvedFilename); - const namespace = _requireEsm(esmIdentity); + let namespace; + try { + namespace = _requireEsm(esmIdentity); + } catch (err) { + decorateRequireAsyncModuleError(err, parentModule); + explainCommonJsGlobalLikeNotDefinedError(err); + throw err; + } if (namespace && typeof namespace === 'object' && Object.hasOwn(namespace, 'module.exports')) { return namespace['module.exports']; } @@ -3493,7 +3549,7 @@ function loadCommonJsTransaction(descriptor) { } if (isEsm) { try { - mod.exports = requireEsmWithCacheGuard(mod, filename); + mod.exports = requireEsmWithCacheGuard(mod, filename, undefined, undefined, parentModule); } catch (err) { discardCjsModuleLoad(cacheKey, parentModule, mod); throw err; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/net.js b/crates/wasm-rquickjs/skeleton/src/builtin/net.js index 1ff5f1005..05eaa76a1 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/net.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/net.js @@ -527,6 +527,9 @@ Socket.prototype.connect = function connect(...args) { if (options.host !== undefined && typeof options.host !== 'string') { throw new ERR_INVALID_ARG_TYPE('options.host', 'string', options.host); } + if (typeof options.host === 'string' && options.host.includes('\u0000')) { + throw new ERR_INVALID_ARG_VALUE('options.host', options.host, 'must be a string without null bytes'); + } if (options.lookup !== undefined && typeof options.lookup !== 'function') { throw new ERR_INVALID_ARG_TYPE('options.lookup', 'Function', options.lookup); @@ -1962,7 +1965,8 @@ export const connect = createConnection; // --- Auto-select family stubs --- let _defaultAutoSelectFamily = false; -let _defaultAutoSelectFamilyAttemptTimeout = 250; +// Node 26 raised the --network-family-autoselection-attempt-timeout default from 250 to 500 ms. +let _defaultAutoSelectFamilyAttemptTimeout = 500; export function getDefaultAutoSelectFamily() { return _defaultAutoSelectFamily; } export function setDefaultAutoSelectFamily(value) { _defaultAutoSelectFamily = !!value; } diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/node_http.js b/crates/wasm-rquickjs/skeleton/src/builtin/node_http.js index 77a43c553..6c6432fb6 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/node_http.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/node_http.js @@ -998,9 +998,11 @@ IncomingMessage.prototype._addHeaderLine = function _addHeaderLine(field, value, dest[name] = value; } } else { - // No prefix: first-wins (single value headers) + // No prefix: first-wins (single value headers), unless the message joins duplicates. if (dest[name] === undefined) { dest[name] = value; + } else if (this.joinDuplicateHeaders) { + dest[name] += ', ' + value; } } }; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/node_http_common.js b/crates/wasm-rquickjs/skeleton/src/builtin/node_http_common.js index 9cd8c7f14..6e6542d22 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/node_http_common.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/node_http_common.js @@ -363,8 +363,12 @@ export function _checkIsHttpToken(value) { return HTTP_TOKEN_REGEX.test(value); } -export function _checkInvalidHeaderChar(value) { - return INVALID_HEADER_CHAR_REGEX.test(value); +// Node 26 lenient (Fetch spec) values reject only NUL, CR, LF and characters above 0xff. +// eslint-disable-next-line no-control-regex +const LENIENT_INVALID_HEADER_CHAR_REGEX = /[\x00\x0a\x0d]|[^\x00-\xff]/; + +export function _checkInvalidHeaderChar(value, lenient = false) { + return (lenient ? LENIENT_INVALID_HEADER_CHAR_REGEX : INVALID_HEADER_CHAR_REGEX).test(value); } export { HTTPParser, methods }; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/node_http_server.js b/crates/wasm-rquickjs/skeleton/src/builtin/node_http_server.js index f2243d354..298845884 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/node_http_server.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/node_http_server.js @@ -235,13 +235,14 @@ function ServerResponse(req, options) { this.req = req; this.socket = req.socket; this.connection = req.socket; - this._standaloneSocket = false; this.statusCode = 200; this.statusMessage = undefined; this.sendDate = true; this.headersSent = false; this.finished = false; this._finishEmitted = false; + this._endCallbacks = []; + this._flushError = undefined; this._writableEnded = false; this._headers = Object.create(null); this._headerNames = Object.create(null); @@ -294,7 +295,6 @@ ServerResponse.prototype.assignSocket = function assignSocket(socket) { } this.socket = socket; this.connection = socket; - this._standaloneSocket = true; socket._httpMessage = this; const pending = this._pendingOutput; this._pendingOutput = []; @@ -309,7 +309,6 @@ ServerResponse.prototype.detachSocket = function detachSocket(socket) { } this.socket = null; this.connection = null; - this._standaloneSocket = false; }; Object.defineProperty(ServerResponse.prototype, 'writableEnded', { @@ -325,7 +324,8 @@ Object.defineProperty(ServerResponse.prototype, 'writableFinished', { !this._finishEmitted && (this._needDrain || this.socket.writableNeedDrain) && (this.socket.writableLength || 0) > 0; - return this.finished && this._outputSize === 0 && !socketHasBlockedOutput; + return this.finished && this._outputSize === 0 && !socketHasBlockedOutput && + this._flushError === undefined; }, }); @@ -942,6 +942,27 @@ ServerResponse.prototype.write = function write(chunk, encoding, cb) { return result; }; +// Like Node 26, end() callbacks report the flush outcome: null once finished, or the flush error. +function queueEndCallback(res, callback) { + if (res._finishEmitted) { + callback(new ERR_STREAM_ALREADY_FINISHED('end')); + return; + } + if (res._flushError !== undefined) { + process.nextTick(callback, res._flushError); + return; + } + res._endCallbacks.push(callback); +} + +function flushEndCallbacks(res, error) { + const callbacks = res._endCallbacks; + res._endCallbacks = []; + for (const callback of callbacks) { + callback(error); + } +} + ServerResponse.prototype.end = function end(data, encoding, cb) { if (typeof data === 'function') { cb = data; @@ -958,11 +979,7 @@ ServerResponse.prototype.end = function end(data, encoding, cb) { scheduleWriteAfterEnd(this, cb); } } else if (typeof cb === 'function') { - if (this.writableFinished) { - cb(new ERR_STREAM_ALREADY_FINISHED('end')); - } else { - this.on('finish', cb); - } + queueEndCallback(this, cb); } return this; } @@ -1038,18 +1055,20 @@ ServerResponse.prototype.end = function end(data, encoding, cb) { this._writeOutput(Buffer.from('0\r\n\r\n')); } - if (this._standaloneSocket) { - this._writeOutput(Buffer.alloc(0)); - } - if (typeof cb === 'function') { - this.once('finish', cb); - } - const finishResponse = () => { - // Like Node's internal end completion, this only notifies finish. - // Socket errors belong to socket error/close handling and public write - // callbacks; re-emitting them here races the socket's abort cleanup. + queueEndCallback(this, cb); + } + const finishResponse = (error) => { + // Like Node 26, a failed flush never finishes: end() callbacks receive the + // write error instead of a 'finish' event. Socket errors still belong to + // socket error/close handling; re-emitting them here races its abort cleanup. + if (error) { + this._flushError = error; + flushEndCallbacks(this, error); + return; + } this._finishEmitted = true; + flushEndCallbacks(this, null); this.emit('finish'); }; @@ -1103,7 +1122,8 @@ ServerResponse.prototype.writeProcessing = function writeProcessing(callback) { this._writeOutput(Buffer.from('HTTP/1.1 102 Processing\r\n\r\n'), callback); }; -const LINK_HEADER_REGEX = /^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/; +// Like Node 26, CR and LF are rejected inside the link target. +const LINK_HEADER_REGEX = /^(?:<[^>\r\n]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/; function _validateLinkHeaderFormat(value) { if (value === undefined || !LINK_HEADER_REGEX.test(value)) { @@ -1153,8 +1173,19 @@ ServerResponse.prototype.writeEarlyHints = function writeEarlyHints(hints, cb) { let head = 'HTTP/1.1 103 Early Hints\r\n'; head += 'Link: ' + link + '\r\n'; + // Like Node 26, every extra hint is validated so it cannot inject header lines. for (const key of Object.keys(hints)) { if (key !== 'link') { + if (!_checkIsHttpToken(key)) { + const err = new TypeError(`Header name must be a valid HTTP token ["${key}"]`); + err.code = 'ERR_INVALID_HTTP_TOKEN'; + throw err; + } + if (INVALID_HEADER_CHAR_REGEX.test(String(hints[key]))) { + const err = new TypeError(`Invalid character in header content ["${key}"]`); + err.code = 'ERR_INVALID_CHAR'; + throw err; + } head += key + ': ' + hints[key] + '\r\n'; } } @@ -1340,7 +1371,7 @@ function createConnectionParser(server, socket) { state.bytesReceived += data.length; // Clear idle keep-alive timeout on new data - socket.setTimeout(0); + socket.setTimeout?.(0); state.buffer = Buffer.concat([state.buffer, data]); if (!state.inputPaused) parseLoop(); @@ -1348,7 +1379,7 @@ function createConnectionParser(server, socket) { // Track active request inactivity via server.setTimeout(). // Keep-alive idle timeout remains managed after responses finish. if (state.responseQueue.some((context) => !context.responseFinished)) { - socket.setTimeout(server.timeout || 0); + socket.setTimeout?.(server.timeout || 0); } }); @@ -1436,9 +1467,10 @@ function createConnectionParser(server, socket) { } } // Complete cleanup for the whole pipeline before invoking application - // error handlers, since an unhandled request error throws. + // error handlers. Like Node's IncomingMessage, the error is emitted only + // to requests with an 'error' listener. for (const req of requestsWithErrors) { - req.emit('error', err); + if (req.listenerCount('error') > 0) req.emit('error', err); } }); @@ -1514,7 +1546,7 @@ function createConnectionParser(server, socket) { if (state.buffer.length > 0 && state.state === IDLE) { parseLoop(); if (state.responseQueue.length > 0 || state.current !== null) { - socket.setTimeout(server.timeout || 0); + socket.setTimeout?.(server.timeout || 0); return true; } } @@ -1534,9 +1566,9 @@ function createConnectionParser(server, socket) { ? server.keepAliveTimeout : 0; if (kaTimeout > 0) { - socket.setTimeout(kaTimeout); + socket.setTimeout?.(kaTimeout); } else { - socket.setTimeout(0); + socket.setTimeout?.(0); } return true; } diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/path.js b/crates/wasm-rquickjs/skeleton/src/builtin/path.js index 027618f51..30708efd6 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/path.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/path.js @@ -1,9 +1,25 @@ -// node:path implementation — pure JavaScript port of Node.js v22.14.0 lib/path.js +// node:path implementation — JavaScript port of Node.js v26.13.1 lib/path.js // Provides both POSIX and win32 path utilities. import { validateString, validateObject } from '__wasm_rquickjs_builtin/internal/validators'; -// Character code constants +const uncurryThis = (fn) => (self, ...args) => Reflect.apply(fn, self, args); +const ArrayPrototypeIncludes = uncurryThis(Array.prototype.includes); +const ArrayPrototypeJoin = uncurryThis(Array.prototype.join); +const ArrayPrototypePush = uncurryThis(Array.prototype.push); +const ArrayPrototypeSlice = uncurryThis(Array.prototype.slice); +const StringPrototypeCharCodeAt = uncurryThis(String.prototype.charCodeAt); +const StringPrototypeIncludes = uncurryThis(String.prototype.includes); +const StringPrototypeIndexOf = uncurryThis(String.prototype.indexOf); +const StringPrototypeLastIndexOf = uncurryThis(String.prototype.lastIndexOf); +const StringPrototypeRepeat = uncurryThis(String.prototype.repeat); +const StringPrototypeReplace = uncurryThis(String.prototype.replace); +const StringPrototypeSlice = uncurryThis(String.prototype.slice); +const StringPrototypeSplit = uncurryThis(String.prototype.split); +const StringPrototypeToLowerCase = uncurryThis(String.prototype.toLowerCase); +const StringPrototypeToUpperCase = uncurryThis(String.prototype.toUpperCase); +const FunctionPrototypeBind = uncurryThis(Function.prototype.bind); + const CHAR_UPPERCASE_A = 65; const CHAR_LOWERCASE_A = 97; const CHAR_UPPERCASE_Z = 90; @@ -13,6 +29,70 @@ const CHAR_FORWARD_SLASH = 47; const CHAR_BACKWARD_SLASH = 92; const CHAR_COLON = 58; const CHAR_QUESTION_MARK = 63; +// The component is a POSIX host. +const isWindows = false; + +function _matchesGlob(path, pattern, isWindows) { + validateString(path, 'path'); + validateString(pattern, 'pattern'); + + if (isWindows) { + path = path.replace(/\\/g, '/'); + pattern = pattern.replace(/\\/g, '/'); + } + + // Build regex from glob pattern, preserving [...] character classes + let regexStr = ''; + let i = 0; + while (i < pattern.length) { + const c = pattern[i]; + if (c === '[') { + // Find closing bracket — pass through as regex character class + const start = i; + i++; + // Handle negation: [!...] -> [^...] + if (i < pattern.length && pattern[i] === '!') { + regexStr += '[^'; + i++; + } else { + regexStr += '['; + } + while (i < pattern.length && pattern[i] !== ']') { + regexStr += pattern[i]; + i++; + } + if (i < pattern.length) { + regexStr += ']'; + i++; + } + } else if (c === '*') { + if (i + 1 < pattern.length && pattern[i + 1] === '*') { + // ** matches everything including / + regexStr += '.*'; + i += 2; + // skip trailing separator after ** + if (i < pattern.length && pattern[i] === '/') { + i++; + } + } else { + regexStr += '[^/]*'; + i++; + } + } else if (c === '?') { + regexStr += '[^/]'; + i++; + } else if ('.+^${}()|\\'.indexOf(c) !== -1) { + regexStr += '\\' + c; + i++; + } else { + regexStr += c; + i++; + } + } + + const regex = new RegExp(`^${regexStr}$`); + return regex.test(path); +} function isPathSeparator(code) { return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; @@ -22,11 +102,25 @@ function isPosixPathSeparator(code) { return code === CHAR_FORWARD_SLASH; } +const WINDOWS_RESERVED_NAMES = [ + 'CON', 'PRN', 'AUX', 'NUL', + 'COM1', 'COM2', 'COM3', 'COM4', 'COM5', 'COM6', 'COM7', 'COM8', 'COM9', + 'LPT1', 'LPT2', 'LPT3', 'LPT4', 'LPT5', 'LPT6', 'LPT7', 'LPT8', 'LPT9', + 'COM\xb9', 'COM\xb2', 'COM\xb3', + 'LPT\xb9', 'LPT\xb2', 'LPT\xb3', +]; + +function isWindowsReservedName(path, colonIndex) { + const devicePart = StringPrototypeToUpperCase(StringPrototypeSlice(path, 0, colonIndex)); + return ArrayPrototypeIncludes(WINDOWS_RESERVED_NAMES, devicePart); +} + function isWindowsDeviceRoot(code) { return (code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z) || (code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z); } +// Resolves . and .. elements in a path with directory names function normalizeString(path, allowAboveRoot, separator, isPathSeparator) { let res = ''; let lastSegmentLength = 0; @@ -35,7 +129,7 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) { let code = 0; for (let i = 0; i <= path.length; ++i) { if (i < path.length) - code = path.charCodeAt(i); + code = StringPrototypeCharCodeAt(path, i); else if (isPathSeparator(code)) break; else @@ -46,17 +140,17 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) { // NOOP } else if (dots === 2) { if (res.length < 2 || lastSegmentLength !== 2 || - res.charCodeAt(res.length - 1) !== CHAR_DOT || - res.charCodeAt(res.length - 2) !== CHAR_DOT) { + StringPrototypeCharCodeAt(res, res.length - 1) !== CHAR_DOT || + StringPrototypeCharCodeAt(res, res.length - 2) !== CHAR_DOT) { if (res.length > 2) { - const lastSlashIndex = res.lastIndexOf(separator); + const lastSlashIndex = res.length - lastSegmentLength - 1; if (lastSlashIndex === -1) { res = ''; lastSegmentLength = 0; } else { - res = res.slice(0, lastSlashIndex); + res = StringPrototypeSlice(res, 0, lastSlashIndex); lastSegmentLength = - res.length - 1 - res.lastIndexOf(separator); + res.length - 1 - StringPrototypeLastIndexOf(res, separator); } lastSlash = i; dots = 0; @@ -75,9 +169,9 @@ function normalizeString(path, allowAboveRoot, separator, isPathSeparator) { } } else { if (res.length > 0) - res += `${separator}${path.slice(lastSlash + 1, i)}`; + res += `${separator}${StringPrototypeSlice(path, lastSlash + 1, i)}`; else - res = path.slice(lastSlash + 1, i); + res = StringPrototypeSlice(path, lastSlash + 1, i); lastSegmentLength = i - lastSlash - 1; } lastSlash = i; @@ -95,6 +189,17 @@ function formatExt(ext) { return ext ? `${ext[0] === '.' ? '' : '.'}${ext}` : ''; } +/** + * @param {string} sep + * @param {{ + * dir?: string; + * root?: string; + * base?: string; + * name?: string; + * ext?: string; + * }} pathObject + * @returns {string} + */ function _format(sep, pathObject) { validateObject(pathObject, 'pathObject'); const dir = pathObject.dir || pathObject.root; @@ -106,71 +211,14 @@ function _format(sep, pathObject) { return dir === pathObject.root ? `${dir}${base}` : `${dir}${sep}${base}`; } -function _matchesGlob(path, pattern, isWindows) { - validateString(path, 'path'); - validateString(pattern, 'pattern'); - - if (isWindows) { - path = path.replace(/\\/g, '/'); - pattern = pattern.replace(/\\/g, '/'); - } - - // Build regex from glob pattern, preserving [...] character classes - let regexStr = ''; - let i = 0; - while (i < pattern.length) { - const c = pattern[i]; - if (c === '[') { - // Find closing bracket — pass through as regex character class - const start = i; - i++; - // Handle negation: [!...] -> [^...] - if (i < pattern.length && pattern[i] === '!') { - regexStr += '[^'; - i++; - } else { - regexStr += '['; - } - while (i < pattern.length && pattern[i] !== ']') { - regexStr += pattern[i]; - i++; - } - if (i < pattern.length) { - regexStr += ']'; - i++; - } - } else if (c === '*') { - if (i + 1 < pattern.length && pattern[i + 1] === '*') { - // ** matches everything including / - regexStr += '.*'; - i += 2; - // skip trailing separator after ** - if (i < pattern.length && pattern[i] === '/') { - i++; - } - } else { - regexStr += '[^/]*'; - i++; - } - } else if (c === '?') { - regexStr += '[^/]'; - i++; - } else if ('.+^${}()|\\'.indexOf(c) !== -1) { - regexStr += '\\' + c; - i++; - } else { - regexStr += c; - i++; - } - } - - const regex = new RegExp(`^${regexStr}$`); - return regex.test(path); -} - -// ======================== win32 ======================== +const forwardSlashRegExp = /\//g; const win32 = { + /** + * path.resolve([from ...], to) + * @param {...string} args + * @returns {string} + */ resolve(...args) { let resolvedDevice = ''; let resolvedTail = ''; @@ -181,17 +229,35 @@ const win32 = { if (i >= 0) { path = args[i]; validateString(path, `paths[${i}]`); + + // Skip empty entries if (path.length === 0) { continue; } } else if (resolvedDevice.length === 0) { path = process.cwd(); + // Fast path for current directory + if (args.length === 0 || ((args.length === 1 && (args[0] === '' || args[0] === '.')) && + isPathSeparator(StringPrototypeCharCodeAt(path, 0)))) { + if (!isWindows) { + path = StringPrototypeReplace(path, forwardSlashRegExp, '\\'); + } + return path; + } } else { - path = process.cwd(); + // Windows has the concept of drive-specific current working + // directories. If we've resolved a drive letter but not yet an + // absolute path, get cwd for that drive, or the process cwd if + // the drive cwd is not available. We're sure the device is not + // a UNC path at this points, because UNC paths are always absolute. + path = process.env[`=${resolvedDevice}`] || process.cwd(); + + // Verify that a cwd was found and that it actually points + // to our drive. If not, default to the drive's root. if (path === undefined || - (path.slice(0, 2).toLowerCase() !== - resolvedDevice.toLowerCase() && - path.charCodeAt(2) === CHAR_BACKWARD_SLASH)) { + (StringPrototypeToLowerCase(StringPrototypeSlice(path, 0, 2)) !== + StringPrototypeToLowerCase(resolvedDevice) && + StringPrototypeCharCodeAt(path, 2) === CHAR_BACKWARD_SLASH)) { path = `${resolvedDevice}\\`; } } @@ -200,36 +266,59 @@ const win32 = { let rootEnd = 0; let device = ''; let isAbsolute = false; - const code = path.charCodeAt(0); + const code = StringPrototypeCharCodeAt(path, 0); + // Try to match a root if (len === 1) { if (isPathSeparator(code)) { + // `path` contains just a path separator rootEnd = 1; isAbsolute = true; } } else if (isPathSeparator(code)) { + // Possible UNC root + + // If we started with a separator, we know we at least have an + // absolute path of some kind (UNC or otherwise) isAbsolute = true; - if (isPathSeparator(path.charCodeAt(1))) { + if (isPathSeparator(StringPrototypeCharCodeAt(path, 1))) { + // Matched double path separator at beginning let j = 2; let last = j; - while (j < len && !isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more non-path separators + while (j < len && + !isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j < len && j !== last) { - const firstPart = path.slice(last, j); + const firstPart = StringPrototypeSlice(path, last, j); + // Matched! last = j; - while (j < len && isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more path separators + while (j < len && + isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j < len && j !== last) { + // Matched! last = j; - while (j < len && !isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more non-path separators + while (j < len && + !isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j === len || j !== last) { - device = `\\\\${firstPart}\\${path.slice(last, j)}`; - rootEnd = j; + if (firstPart !== '.' && firstPart !== '?') { + // We matched a UNC root + device = + `\\\\${firstPart}\\${StringPrototypeSlice(path, last, j)}`; + rootEnd = j; + } else { + // We matched a device root (e.g. \\\\.\\PHYSICALDRIVE0) + device = `\\\\${firstPart}`; + rootEnd = 4; + } } } } @@ -237,10 +326,13 @@ const win32 = { rootEnd = 1; } } else if (isWindowsDeviceRoot(code) && - path.charCodeAt(1) === CHAR_COLON) { - device = path.slice(0, 2); + StringPrototypeCharCodeAt(path, 1) === CHAR_COLON) { + // Possible device root + device = StringPrototypeSlice(path, 0, 2); rootEnd = 2; - if (len > 2 && isPathSeparator(path.charCodeAt(2))) { + if (len > 2 && isPathSeparator(StringPrototypeCharCodeAt(path, 2))) { + // Treat separator following drive name as an absolute path + // indicator isAbsolute = true; rootEnd = 3; } @@ -248,7 +340,9 @@ const win32 = { if (device.length > 0) { if (resolvedDevice.length > 0) { - if (device.toLowerCase() !== resolvedDevice.toLowerCase()) + if (StringPrototypeToLowerCase(device) !== + StringPrototypeToLowerCase(resolvedDevice)) + // This path points to another device so it is not applicable continue; } else { resolvedDevice = device; @@ -259,7 +353,8 @@ const win32 = { if (resolvedDevice.length > 0) break; } else { - resolvedTail = `${path.slice(rootEnd)}\\${resolvedTail}`; + resolvedTail = + `${StringPrototypeSlice(path, rootEnd)}\\${resolvedTail}`; resolvedAbsolute = isAbsolute; if (isAbsolute && resolvedDevice.length > 0) { break; @@ -267,6 +362,11 @@ const win32 = { } } + // At this point the path should be resolved to a full absolute path, + // but handle relative paths to be safe (might happen when process.cwd() + // fails) + + // Normalize the tail path resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, '\\', isPathSeparator); @@ -275,6 +375,10 @@ const win32 = { `${resolvedDevice}${resolvedTail}` || '.'; }, + /** + * @param {string} path + * @returns {string} + */ normalize(path) { validateString(path, 'path'); const len = path.length; @@ -283,73 +387,124 @@ const win32 = { let rootEnd = 0; let device; let isAbsolute = false; - const code = path.charCodeAt(0); + const code = StringPrototypeCharCodeAt(path, 0); + // Try to match a root if (len === 1) { + // `path` contains just a single char, exit early to avoid + // unnecessary work return isPosixPathSeparator(code) ? '\\' : path; } if (isPathSeparator(code)) { + // Possible UNC root + + // If we started with a separator, we know we at least have an absolute + // path of some kind (UNC or otherwise) isAbsolute = true; - if (isPathSeparator(path.charCodeAt(1))) { + if (isPathSeparator(StringPrototypeCharCodeAt(path, 1))) { + // Matched double path separator at beginning let j = 2; let last = j; - while (j < len && !isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more non-path separators + while (j < len && + !isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j < len && j !== last) { - const firstPart = path.slice(last, j); + const firstPart = StringPrototypeSlice(path, last, j); + // Matched! last = j; - while (j < len && isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more path separators + while (j < len && + isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j < len && j !== last) { + // Matched! last = j; - while (j < len && !isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more non-path separators + while (j < len && + !isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } - if (j === len) { - return `\\\\${firstPart}\\${path.slice(last)}\\`; - } - if (j !== last) { - device = `\\\\${firstPart}\\${path.slice(last, j)}`; - rootEnd = j; + if (j === len || j !== last) { + if (firstPart === '.' || firstPart === '?') { + // We matched a device root (e.g. \\\\.\\PHYSICALDRIVE0) + device = `\\\\${firstPart}`; + rootEnd = 4; + const colonIndex = StringPrototypeIndexOf(path, ':'); + // Special case: handle \\?\COM1: or similar reserved device paths + const possibleDevice = StringPrototypeSlice(path, 4, colonIndex + 1); + if (isWindowsReservedName(possibleDevice, possibleDevice.length - 1)) { + device = `\\\\?\\${possibleDevice}`; + rootEnd = 4 + possibleDevice.length; + } + } else if (j === len) { + // We matched a UNC root only + // Return the normalized version of the UNC root since there + // is nothing left to process + return `\\\\${firstPart}\\${StringPrototypeSlice(path, last)}\\`; + } else { + // We matched a UNC root with leftovers + device = + `\\\\${firstPart}\\${StringPrototypeSlice(path, last, j)}`; + rootEnd = j; + } } } } } else { rootEnd = 1; } - } else if (isWindowsDeviceRoot(code) && - path.charCodeAt(1) === CHAR_COLON) { - device = path.slice(0, 2); - rootEnd = 2; - if (len > 2 && isPathSeparator(path.charCodeAt(2))) { - isAbsolute = true; - rootEnd = 3; + } else { + const colonIndex = StringPrototypeIndexOf(path, ':'); + if (colonIndex > 0) { + if (isWindowsDeviceRoot(code) && colonIndex === 1) { + device = StringPrototypeSlice(path, 0, 2); + rootEnd = 2; + if (len > 2 && isPathSeparator(StringPrototypeCharCodeAt(path, 2))) { + isAbsolute = true; + rootEnd = 3; + } + } else if (isWindowsReservedName(path, colonIndex)) { + device = StringPrototypeSlice(path, 0, colonIndex + 1); + rootEnd = colonIndex + 1; + + } } } let tail = rootEnd < len ? - normalizeString(path.slice(rootEnd), !isAbsolute, '\\', isPathSeparator) : + normalizeString(StringPrototypeSlice(path, rootEnd), + !isAbsolute, '\\', isPathSeparator) : ''; if (tail.length === 0 && !isAbsolute) tail = '.'; if (tail.length > 0 && - isPathSeparator(path.charCodeAt(len - 1))) + isPathSeparator(StringPrototypeCharCodeAt(path, len - 1))) tail += '\\'; - if (!isAbsolute && device === undefined && path.includes(':')) { + if (!isAbsolute && device === undefined && StringPrototypeIncludes(path, ':')) { + // If the original path was not absolute and if we have not been able to + // resolve it relative to a particular device, we need to ensure that the + // `tail` has not become something that Windows might interpret as an + // absolute path. See CVE-2024-36139. if (tail.length >= 2 && - isWindowsDeviceRoot(tail.charCodeAt(0)) && - tail.charCodeAt(1) === CHAR_COLON) { + isWindowsDeviceRoot(StringPrototypeCharCodeAt(tail, 0)) && + StringPrototypeCharCodeAt(tail, 1) === CHAR_COLON) { return `.\\${tail}`; } - let index = path.indexOf(':'); + let index = StringPrototypeIndexOf(path, ':'); + do { - if (index === len - 1 || isPathSeparator(path.charCodeAt(index + 1))) { + if (index === len - 1 || isPathSeparator(StringPrototypeCharCodeAt(path, index + 1))) { return `.\\${tail}`; } - } while ((index = path.indexOf(':', index + 1)) !== -1); + } while ((index = StringPrototypeIndexOf(path, ':', index + 1)) !== -1); + } + const colonIndex = StringPrototypeIndexOf(path, ':'); + if (isWindowsReservedName(path, colonIndex)) { + return `.\\${device ?? ''}${tail}`; } if (device === undefined) { return isAbsolute ? `\\${tail}` : tail; @@ -357,69 +512,133 @@ const win32 = { return isAbsolute ? `${device}\\${tail}` : `${device}${tail}`; }, + /** + * @param {string} path + * @returns {boolean} + */ isAbsolute(path) { validateString(path, 'path'); const len = path.length; if (len === 0) return false; - const code = path.charCodeAt(0); + const code = StringPrototypeCharCodeAt(path, 0); return isPathSeparator(code) || + // Possible device root (len > 2 && isWindowsDeviceRoot(code) && - path.charCodeAt(1) === CHAR_COLON && - isPathSeparator(path.charCodeAt(2))); + StringPrototypeCharCodeAt(path, 1) === CHAR_COLON && + isPathSeparator(StringPrototypeCharCodeAt(path, 2))); }, + /** + * @param {...string} args + * @returns {string} + */ join(...args) { if (args.length === 0) return '.'; - let joined; - let firstPart; + const path = []; for (let i = 0; i < args.length; ++i) { const arg = args[i]; validateString(arg, 'path'); if (arg.length > 0) { - if (joined === undefined) - joined = firstPart = arg; - else - joined += `\\${arg}`; + ArrayPrototypePush(path, arg); } } - if (joined === undefined) + if (path.length === 0) return '.'; + const firstPart = path[0]; + let joined = ArrayPrototypeJoin(path, '\\'); + + // Make sure that the joined path doesn't start with two slashes, because + // normalize() will mistake it for a UNC path then. + // + // This step is skipped when it is very clear that the user actually + // intended to point at a UNC path. This is assumed when the first + // non-empty string arguments starts with exactly two slashes followed by + // at least one more non-slash character. + // + // Note that for normalize() to treat a path as a UNC path it needs to + // have at least 2 components, so we don't filter for that here. + // This means that the user can use join to construct UNC paths from + // a server name and a share name; for example: + // path.join('//server', 'share') -> '\\\\server\\share\\') let needsReplace = true; let slashCount = 0; - if (isPathSeparator(firstPart.charCodeAt(0))) { + if (isPathSeparator(StringPrototypeCharCodeAt(firstPart, 0))) { ++slashCount; const firstLen = firstPart.length; if (firstLen > 1 && - isPathSeparator(firstPart.charCodeAt(1))) { + isPathSeparator(StringPrototypeCharCodeAt(firstPart, 1))) { ++slashCount; if (firstLen > 2) { - if (isPathSeparator(firstPart.charCodeAt(2))) + if (isPathSeparator(StringPrototypeCharCodeAt(firstPart, 2))) ++slashCount; else { + // We matched a UNC path in the first part needsReplace = false; } } } } if (needsReplace) { + // Find any more consecutive slashes we need to replace while (slashCount < joined.length && - isPathSeparator(joined.charCodeAt(slashCount))) { + isPathSeparator(StringPrototypeCharCodeAt(joined, slashCount))) { slashCount++; } + + // Replace the slashes if needed if (slashCount >= 2) - joined = `\\${joined.slice(slashCount)}`; + joined = `\\${StringPrototypeSlice(joined, slashCount)}`; + } + + // Skip normalization when reserved device names are present + const parts = []; + let part = ''; + + for (let i = 0; i < joined.length; i++) { + if (joined[i] === '\\') { + if (part) parts.push(part); + part = ''; + // Skip consecutive backslashes + while (i + 1 < joined.length && joined[i + 1] === '\\') i++; + } else { + part += joined[i]; + } + } + // Add the final part if any + if (part) parts.push(part); + + // Check if any part has a Windows reserved name + if (parts.some((p) => { + const colonIndex = StringPrototypeIndexOf(p, ':'); + return colonIndex !== -1 && isWindowsReservedName(p, colonIndex); + })) { + // Replace forward slashes with backslashes + let result = ''; + for (let i = 0; i < joined.length; i++) { + result += joined[i] === '/' ? '\\' : joined[i]; + } + return result; } return win32.normalize(joined); }, + /** + * It will solve the relative path from `from` to `to`, for instance + * from = 'C:\\orandea\\test\\aaa' + * to = 'C:\\orandea\\impl\\bbb' + * The output of the function should be: '..\\..\\impl\\bbb' + * @param {string} from + * @param {string} to + * @returns {string} + */ relative(from, to) { validateString(from, 'from'); validateString(to, 'to'); @@ -433,15 +652,15 @@ const win32 = { if (fromOrig === toOrig) return ''; - from = fromOrig.toLowerCase(); - to = toOrig.toLowerCase(); + from = StringPrototypeToLowerCase(fromOrig); + to = StringPrototypeToLowerCase(toOrig); if (from === to) return ''; if (fromOrig.length !== from.length || toOrig.length !== to.length) { - const fromSplit = fromOrig.split('\\'); - const toSplit = toOrig.split('\\'); + const fromSplit = StringPrototypeSplit(fromOrig, '\\'); + const toSplit = StringPrototypeSplit(toOrig, '\\'); if (fromSplit[fromSplit.length - 1] === '') { fromSplit.pop(); } @@ -455,7 +674,7 @@ const win32 = { let i; for (i = 0; i < length; i++) { - if (fromSplit[i].toLowerCase() !== toSplit[i].toLowerCase()) { + if (StringPrototypeToLowerCase(fromSplit[i]) !== StringPrototypeToLowerCase(toSplit[i])) { break; } } @@ -464,70 +683,87 @@ const win32 = { return toOrig; } else if (i === length) { if (toLen > length) { - return toSplit.slice(i).join('\\'); + return ArrayPrototypeJoin(ArrayPrototypeSlice(toSplit, i), '\\'); } if (fromLen > length) { - return '..\\'.repeat(fromLen - 1 - i) + '..'; + return StringPrototypeRepeat('..\\', fromLen - 1 - i) + '..'; } return ''; } - return '..\\'.repeat(fromLen - i) + toSplit.slice(i).join('\\'); + return StringPrototypeRepeat('..\\', fromLen - i) + ArrayPrototypeJoin(ArrayPrototypeSlice(toSplit, i), '\\'); } + // Trim any leading backslashes let fromStart = 0; while (fromStart < from.length && - from.charCodeAt(fromStart) === CHAR_BACKWARD_SLASH) { + StringPrototypeCharCodeAt(from, fromStart) === CHAR_BACKWARD_SLASH) { fromStart++; } + // Trim trailing backslashes (applicable to UNC paths only) let fromEnd = from.length; while ( fromEnd - 1 > fromStart && - from.charCodeAt(fromEnd - 1) === CHAR_BACKWARD_SLASH + StringPrototypeCharCodeAt(from, fromEnd - 1) === CHAR_BACKWARD_SLASH ) { fromEnd--; } const fromLen = fromEnd - fromStart; + // Trim any leading backslashes let toStart = 0; while (toStart < to.length && - to.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) { + StringPrototypeCharCodeAt(to, toStart) === CHAR_BACKWARD_SLASH) { toStart++; } + // Trim trailing backslashes (applicable to UNC paths only) let toEnd = to.length; while (toEnd - 1 > toStart && - to.charCodeAt(toEnd - 1) === CHAR_BACKWARD_SLASH) { + StringPrototypeCharCodeAt(to, toEnd - 1) === CHAR_BACKWARD_SLASH) { toEnd--; } const toLen = toEnd - toStart; + // Compare paths to find the longest common path from root const length = fromLen < toLen ? fromLen : toLen; let lastCommonSep = -1; let i = 0; for (; i < length; i++) { - const fromCode = from.charCodeAt(fromStart + i); - if (fromCode !== to.charCodeAt(toStart + i)) + const fromCode = StringPrototypeCharCodeAt(from, fromStart + i); + if (fromCode !== StringPrototypeCharCodeAt(to, toStart + i)) break; else if (fromCode === CHAR_BACKWARD_SLASH) lastCommonSep = i; } + // We found a mismatch before the first common path separator was seen, so + // return the original `to`. if (i !== length) { if (lastCommonSep === -1) return toOrig; } else { if (toLen > length) { - if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) { - return toOrig.slice(toStart + i + 1); + if (StringPrototypeCharCodeAt(to, toStart + i) === + CHAR_BACKWARD_SLASH) { + // We get here if `from` is the exact base path for `to`. + // For example: from='C:\\foo\\bar'; to='C:\\foo\\bar\\baz' + return StringPrototypeSlice(toOrig, toStart + i + 1); } if (i === 2) { - return toOrig.slice(toStart + i); + // We get here if `from` is the device root. + // For example: from='C:\\'; to='C:\\foo' + return StringPrototypeSlice(toOrig, toStart + i); } } if (fromLen > length) { - if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) { + if (StringPrototypeCharCodeAt(from, fromStart + i) === + CHAR_BACKWARD_SLASH) { + // We get here if `to` is the exact base path for `from`. + // For example: from='C:\\foo\\bar'; to='C:\\foo' lastCommonSep = i; } else if (i === 2) { + // We get here if `to` is the device root. + // For example: from='C:\\foo\\bar'; to='C:\\' lastCommonSep = 3; } } @@ -536,24 +772,33 @@ const win32 = { } let out = ''; + // Generate the relative path based on the path difference between `to` and + // `from` for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) { if (i === fromEnd || - from.charCodeAt(i) === CHAR_BACKWARD_SLASH) { + StringPrototypeCharCodeAt(from, i) === CHAR_BACKWARD_SLASH) { out += out.length === 0 ? '..' : '\\..'; } } toStart += lastCommonSep; + // Lastly, append the rest of the destination (`to`) path that comes after + // the common path parts if (out.length > 0) - return `${out}${toOrig.slice(toStart, toEnd)}`; + return `${out}${StringPrototypeSlice(toOrig, toStart, toEnd)}`; - if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) + if (StringPrototypeCharCodeAt(toOrig, toStart) === CHAR_BACKWARD_SLASH) ++toStart; - return toOrig.slice(toStart, toEnd); + return StringPrototypeSlice(toOrig, toStart, toEnd); }, + /** + * @param {string} path + * @returns {string} + */ toNamespacedPath(path) { + // Note: this will *probably* throw somewhere. if (typeof path !== 'string' || path.length === 0) return path; @@ -562,24 +807,31 @@ const win32 = { if (resolvedPath.length <= 2) return path; - if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) { - if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) { - const code = resolvedPath.charCodeAt(2); + if (StringPrototypeCharCodeAt(resolvedPath, 0) === CHAR_BACKWARD_SLASH) { + // Possible UNC root + if (StringPrototypeCharCodeAt(resolvedPath, 1) === CHAR_BACKWARD_SLASH) { + const code = StringPrototypeCharCodeAt(resolvedPath, 2); if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) { - return `\\\\?\\UNC\\${resolvedPath.slice(2)}`; + // Matched non-long UNC root, convert the path to a long UNC path + return `\\\\?\\UNC\\${StringPrototypeSlice(resolvedPath, 2)}`; } } } else if ( - isWindowsDeviceRoot(resolvedPath.charCodeAt(0)) && - resolvedPath.charCodeAt(1) === CHAR_COLON && - resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH + isWindowsDeviceRoot(StringPrototypeCharCodeAt(resolvedPath, 0)) && + StringPrototypeCharCodeAt(resolvedPath, 1) === CHAR_COLON && + StringPrototypeCharCodeAt(resolvedPath, 2) === CHAR_BACKWARD_SLASH ) { + // Matched device root, convert the path to a long UNC path return `\\\\?\\${resolvedPath}`; } return resolvedPath; }, + /** + * @param {string} path + * @returns {string} + */ dirname(path) { validateString(path, 'path'); const len = path.length; @@ -587,56 +839,77 @@ const win32 = { return '.'; let rootEnd = -1; let offset = 0; - const code = path.charCodeAt(0); + const code = StringPrototypeCharCodeAt(path, 0); if (len === 1) { + // `path` contains just a path separator, exit early to avoid + // unnecessary work or a dot. return isPathSeparator(code) ? path : '.'; } + // Try to match a root if (isPathSeparator(code)) { + // Possible UNC root + rootEnd = offset = 1; - if (isPathSeparator(path.charCodeAt(1))) { + if (isPathSeparator(StringPrototypeCharCodeAt(path, 1))) { + // Matched double path separator at beginning let j = 2; let last = j; - while (j < len && !isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more non-path separators + while (j < len && + !isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j < len && j !== last) { + // Matched! last = j; - while (j < len && isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more path separators + while (j < len && + isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j < len && j !== last) { + // Matched! last = j; - while (j < len && !isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more non-path separators + while (j < len && + !isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j === len) { + // We matched a UNC root only return path; } if (j !== last) { + // We matched a UNC root with leftovers + + // Offset by 1 to include the separator after the UNC root to + // treat it as a "normal root" on top of a (UNC) root rootEnd = offset = j + 1; } } } } + // Possible device root } else if (isWindowsDeviceRoot(code) && - path.charCodeAt(1) === CHAR_COLON) { + StringPrototypeCharCodeAt(path, 1) === CHAR_COLON) { rootEnd = - len > 2 && isPathSeparator(path.charCodeAt(2)) ? 3 : 2; + len > 2 && isPathSeparator(StringPrototypeCharCodeAt(path, 2)) ? 3 : 2; offset = rootEnd; } let end = -1; let matchedSlash = true; for (let i = len - 1; i >= offset; --i) { - if (isPathSeparator(path.charCodeAt(i))) { + if (isPathSeparator(StringPrototypeCharCodeAt(path, i))) { if (!matchedSlash) { end = i; break; } } else { + // We saw the first non-path separator matchedSlash = false; } } @@ -644,11 +917,17 @@ const win32 = { if (end === -1) { if (rootEnd === -1) return '.'; + end = rootEnd; } - return path.slice(0, end); + return StringPrototypeSlice(path, 0, end); }, + /** + * @param {string} path + * @param {string} [suffix] + * @returns {string} + */ basename(path, suffix) { if (suffix !== undefined) validateString(suffix, 'suffix'); @@ -657,9 +936,12 @@ const win32 = { let end = -1; let matchedSlash = true; + // Check for a drive letter prefix so as not to mistake the following + // path separator as an extra separator at the end of the path that can be + // disregarded if (path.length >= 2 && - isWindowsDeviceRoot(path.charCodeAt(0)) && - path.charCodeAt(1) === CHAR_COLON) { + isWindowsDeviceRoot(StringPrototypeCharCodeAt(path, 0)) && + StringPrototypeCharCodeAt(path, 1) === CHAR_COLON) { start = 2; } @@ -669,23 +951,32 @@ const win32 = { let extIdx = suffix.length - 1; let firstNonSlashEnd = -1; for (let i = path.length - 1; i >= start; --i) { - const code = path.charCodeAt(i); + const code = StringPrototypeCharCodeAt(path, i); if (isPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now if (!matchedSlash) { start = i + 1; break; } } else { if (firstNonSlashEnd === -1) { + // We saw the first non-path separator, remember this index in case + // we need it if the extension ends up not matching matchedSlash = false; firstNonSlashEnd = i + 1; } if (extIdx >= 0) { - if (code === suffix.charCodeAt(extIdx)) { + // Try to match the explicit extension + if (code === StringPrototypeCharCodeAt(suffix, extIdx)) { if (--extIdx === -1) { + // We matched the extension, so mark this as the end of our path + // component end = i; } } else { + // Extension does not match, so our result is the entire path + // component extIdx = -1; end = firstNonSlashEnd; } @@ -697,15 +988,19 @@ const win32 = { end = firstNonSlashEnd; else if (end === -1) end = path.length; - return path.slice(start, end); + return StringPrototypeSlice(path, start, end); } for (let i = path.length - 1; i >= start; --i) { - if (isPathSeparator(path.charCodeAt(i))) { + if (isPathSeparator(StringPrototypeCharCodeAt(path, i))) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now if (!matchedSlash) { start = i + 1; break; } } else if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // path component matchedSlash = false; end = i + 1; } @@ -713,9 +1008,13 @@ const win32 = { if (end === -1) return ''; - return path.slice(start, end); + return StringPrototypeSlice(path, start, end); }, + /** + * @param {string} path + * @returns {string} + */ extname(path) { validateString(path, 'path'); let start = 0; @@ -723,17 +1022,25 @@ const win32 = { let startPart = 0; let end = -1; let matchedSlash = true; + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find let preDotState = 0; + // Check for a drive letter prefix so as not to mistake the following + // path separator as an extra separator at the end of the path that can be + // disregarded + if (path.length >= 2 && - path.charCodeAt(1) === CHAR_COLON && - isWindowsDeviceRoot(path.charCodeAt(0))) { + StringPrototypeCharCodeAt(path, 1) === CHAR_COLON && + isWindowsDeviceRoot(StringPrototypeCharCodeAt(path, 0))) { start = startPart = 2; } for (let i = path.length - 1; i >= start; --i) { - const code = path.charCodeAt(i); + const code = StringPrototypeCharCodeAt(path, i); if (isPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now if (!matchedSlash) { startPart = i + 1; break; @@ -741,34 +1048,49 @@ const win32 = { continue; } if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension matchedSlash = false; end = i + 1; } if (code === CHAR_DOT) { + // If this is our first dot, mark it as the start of our extension if (startDot === -1) startDot = i; else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension preDotState = -1; } } if (startDot === -1 || end === -1 || + // We saw a non-dot character immediately before the dot preDotState === 0 || + // The (right-most) trimmed path component is exactly '..' (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) { return ''; } - return path.slice(startDot, end); - }, - - format(pathObject) { - return _format('\\', pathObject); + return StringPrototypeSlice(path, startDot, end); }, + format: FunctionPrototypeBind(_format, null, '\\'), + + /** + * @param {string} path + * @returns {{ + * dir: string; + * root: string; + * base: string; + * name: string; + * ext: string; + * }} + */ parse(path) { validateString(path, 'path'); @@ -778,51 +1100,72 @@ const win32 = { const len = path.length; let rootEnd = 0; - let code = path.charCodeAt(0); + let code = StringPrototypeCharCodeAt(path, 0); if (len === 1) { if (isPathSeparator(code)) { + // `path` contains just a path separator, exit early to avoid + // unnecessary work ret.root = ret.dir = path; return ret; } ret.base = ret.name = path; return ret; } + // Try to match a root if (isPathSeparator(code)) { + // Possible UNC root + rootEnd = 1; - if (isPathSeparator(path.charCodeAt(1))) { + if (isPathSeparator(StringPrototypeCharCodeAt(path, 1))) { + // Matched double path separator at beginning let j = 2; let last = j; - while (j < len && !isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more non-path separators + while (j < len && + !isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j < len && j !== last) { + // Matched! last = j; - while (j < len && isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more path separators + while (j < len && + isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j < len && j !== last) { + // Matched! last = j; - while (j < len && !isPathSeparator(path.charCodeAt(j))) { + // Match 1 or more non-path separators + while (j < len && + !isPathSeparator(StringPrototypeCharCodeAt(path, j))) { j++; } if (j === len) { + // We matched a UNC root only rootEnd = j; } else if (j !== last) { + // We matched a UNC root with leftovers rootEnd = j + 1; } } } } } else if (isWindowsDeviceRoot(code) && - path.charCodeAt(1) === CHAR_COLON) { + StringPrototypeCharCodeAt(path, 1) === CHAR_COLON) { + // Possible device root if (len <= 2) { + // `path` contains just a drive root, exit early to avoid + // unnecessary work ret.root = ret.dir = path; return ret; } rootEnd = 2; - if (isPathSeparator(path.charCodeAt(2))) { + if (isPathSeparator(StringPrototypeCharCodeAt(path, 2))) { if (len === 3) { + // `path` contains just a drive root, exit early to avoid + // unnecessary work ret.root = ret.dir = path; return ret; } @@ -830,18 +1173,24 @@ const win32 = { } } if (rootEnd > 0) - ret.root = path.slice(0, rootEnd); + ret.root = StringPrototypeSlice(path, 0, rootEnd); let startDot = -1; let startPart = rootEnd; let end = -1; let matchedSlash = true; let i = path.length - 1; + + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find let preDotState = 0; + // Get non-dir info for (; i >= rootEnd; --i) { - code = path.charCodeAt(i); + code = StringPrototypeCharCodeAt(path, i); if (isPathSeparator(code)) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now if (!matchedSlash) { startPart = i + 1; break; @@ -849,35 +1198,45 @@ const win32 = { continue; } if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension matchedSlash = false; end = i + 1; } if (code === CHAR_DOT) { + // If this is our first dot, mark it as the start of our extension if (startDot === -1) startDot = i; else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension preDotState = -1; } } if (end !== -1) { if (startDot === -1 || + // We saw a non-dot character immediately before the dot preDotState === 0 || + // The (right-most) trimmed path component is exactly '..' (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) { - ret.base = ret.name = path.slice(startPart, end); + ret.base = ret.name = StringPrototypeSlice(path, startPart, end); } else { - ret.name = path.slice(startPart, startDot); - ret.base = path.slice(startPart, end); - ret.ext = path.slice(startDot, end); + ret.name = StringPrototypeSlice(path, startPart, startDot); + ret.base = StringPrototypeSlice(path, startPart, end); + ret.ext = StringPrototypeSlice(path, startDot, end); } } + // If the directory is the root, use the entire root as the `dir` including + // the trailing slash if any (`C:\abc` -> `C:\`). Otherwise, strip out the + // trailing slash (`C:\abc\def` -> `C:\abc`). if (startPart > 0 && startPart !== rootEnd) - ret.dir = path.slice(0, startPart - 1); + ret.dir = StringPrototypeSlice(path, 0, startPart - 1); else ret.dir = ret.root; @@ -894,18 +1253,34 @@ const win32 = { posix: null, }; -// ======================== posix ======================== +const posixCwd = (() => { + if (isWindows) { + // Converts Windows' backslash path separators to POSIX forward slashes + // and truncates any drive indicator + const regexp = /\\/g; + return () => { + const cwd = StringPrototypeReplace(process.cwd(), regexp, '/'); + return StringPrototypeSlice(cwd, StringPrototypeIndexOf(cwd, '/')); + }; + } + + // We're already on POSIX, no need for any transformations + return () => process.cwd(); +})(); const posix = { + /** + * path.resolve([from ...], to) + * @param {...string} args + * @returns {string} + */ resolve(...args) { - // Fast path for common cases: no args or single empty/dot arg if (args.length === 0 || (args.length === 1 && (args[0] === '' || args[0] === '.'))) { - const cwd = process.cwd(); - if (cwd.charCodeAt(0) === CHAR_FORWARD_SLASH) { + const cwd = posixCwd(); + if (StringPrototypeCharCodeAt(cwd, 0) === CHAR_FORWARD_SLASH) { return cwd; } } - let resolvedPath = ''; let resolvedAbsolute = false; @@ -913,22 +1288,28 @@ const posix = { const path = args[i]; validateString(path, `paths[${i}]`); + // Skip empty entries if (path.length === 0) { continue; } resolvedPath = `${path}/${resolvedPath}`; - resolvedAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH; + resolvedAbsolute = path[0] === '/'; } if (!resolvedAbsolute) { - const cwd = process.cwd(); + const cwd = posixCwd(); resolvedPath = `${cwd}/${resolvedPath}`; - resolvedAbsolute = cwd.charCodeAt(0) === CHAR_FORWARD_SLASH; + resolvedAbsolute = + StringPrototypeCharCodeAt(cwd, 0) === CHAR_FORWARD_SLASH; } + // At this point the path should be resolved to a full absolute path, but + // handle relative paths to be safe (might happen when process.cwd() fails) + + // Normalize the path resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, '/', - isPosixPathSeparator); + isPosixPathSeparator); if (resolvedAbsolute) { return `/${resolvedPath}`; @@ -936,16 +1317,20 @@ const posix = { return resolvedPath.length > 0 ? resolvedPath : '.'; }, + /** + * @param {string} path + * @returns {string} + */ normalize(path) { validateString(path, 'path'); if (path.length === 0) return '.'; - const isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH; - const trailingSeparator = - path.charCodeAt(path.length - 1) === CHAR_FORWARD_SLASH; + const isAbsolute = path[0] === '/'; + const trailingSeparator = path[path.length - 1] === '/'; + // Normalize the path path = normalizeString(path, !isAbsolute, '/', isPosixPathSeparator); if (path.length === 0) { @@ -959,30 +1344,44 @@ const posix = { return isAbsolute ? `/${path}` : path; }, + /** + * @param {string} path + * @returns {boolean} + */ isAbsolute(path) { validateString(path, 'path'); - return path.length > 0 && path.charCodeAt(0) === CHAR_FORWARD_SLASH; + return path.length > 0 && + StringPrototypeCharCodeAt(path, 0) === CHAR_FORWARD_SLASH; }, + /** + * @param {...string} args + * @returns {string} + */ join(...args) { if (args.length === 0) return '.'; - const pathSegments = []; + const path = []; for (let i = 0; i < args.length; ++i) { const arg = args[i]; validateString(arg, 'path'); if (arg.length > 0) { - pathSegments.push(arg); + path.push(arg); } } - if (pathSegments.length === 0) + if (path.length === 0) return '.'; - return posix.normalize(pathSegments.join('/')); + return posix.normalize(ArrayPrototypeJoin(path, '/')); }, + /** + * @param {string} from + * @param {string} to + * @returns {string} + */ relative(from, to) { validateString(from, 'from'); validateString(to, 'to'); @@ -990,6 +1389,7 @@ const posix = { if (from === to) return ''; + // Trim leading forward slashes. from = posix.resolve(from); to = posix.resolve(to); @@ -1002,62 +1402,86 @@ const posix = { const toStart = 1; const toLen = to.length - toStart; + // Compare paths to find the longest common path from root const length = (fromLen < toLen ? fromLen : toLen); let lastCommonSep = -1; let i = 0; for (; i < length; i++) { - const fromCode = from.charCodeAt(fromStart + i); - if (fromCode !== to.charCodeAt(toStart + i)) + const fromCode = StringPrototypeCharCodeAt(from, fromStart + i); + if (fromCode !== StringPrototypeCharCodeAt(to, toStart + i)) break; else if (fromCode === CHAR_FORWARD_SLASH) lastCommonSep = i; } if (i === length) { if (toLen > length) { - if (to.charCodeAt(toStart + i) === CHAR_FORWARD_SLASH) { - return to.slice(toStart + i + 1); + if (StringPrototypeCharCodeAt(to, toStart + i) === CHAR_FORWARD_SLASH) { + // We get here if `from` is the exact base path for `to`. + // For example: from='/foo/bar'; to='/foo/bar/baz' + return StringPrototypeSlice(to, toStart + i + 1); } if (i === 0) { - return to.slice(toStart + i); + // We get here if `from` is the root + // For example: from='/'; to='/foo' + return StringPrototypeSlice(to, toStart + i); } } else if (fromLen > length) { - if (from.charCodeAt(fromStart + i) === CHAR_FORWARD_SLASH) { + if (StringPrototypeCharCodeAt(from, fromStart + i) === + CHAR_FORWARD_SLASH) { + // We get here if `to` is the exact base path for `from`. + // For example: from='/foo/bar/baz'; to='/foo/bar' lastCommonSep = i; } else if (i === 0) { + // We get here if `to` is the root. + // For example: from='/foo/bar'; to='/' lastCommonSep = 0; } } } let out = ''; + // Generate the relative path based on the path difference between `to` + // and `from`. for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) { if (i === fromEnd || - from.charCodeAt(i) === CHAR_FORWARD_SLASH) { + StringPrototypeCharCodeAt(from, i) === CHAR_FORWARD_SLASH) { out += out.length === 0 ? '..' : '/..'; } } - return `${out}${to.slice(toStart + lastCommonSep)}`; + // Lastly, append the rest of the destination (`to`) path that comes after + // the common path parts. + return `${out}${StringPrototypeSlice(to, toStart + lastCommonSep)}`; }, + /** + * @param {string} path + * @returns {string} + */ toNamespacedPath(path) { + // Non-op on posix systems return path; }, + /** + * @param {string} path + * @returns {string} + */ dirname(path) { validateString(path, 'path'); if (path.length === 0) return '.'; - const hasRoot = path.charCodeAt(0) === CHAR_FORWARD_SLASH; + const hasRoot = StringPrototypeCharCodeAt(path, 0) === CHAR_FORWARD_SLASH; let end = -1; let matchedSlash = true; for (let i = path.length - 1; i >= 1; --i) { - if (path.charCodeAt(i) === CHAR_FORWARD_SLASH) { + if (StringPrototypeCharCodeAt(path, i) === CHAR_FORWARD_SLASH) { if (!matchedSlash) { end = i; break; } } else { + // We saw the first non-path separator matchedSlash = false; } } @@ -1066,9 +1490,14 @@ const posix = { return hasRoot ? '/' : '.'; if (hasRoot && end === 1) return '//'; - return path.slice(0, end); + return StringPrototypeSlice(path, 0, end); }, + /** + * @param {string} path + * @param {string} [suffix] + * @returns {string} + */ basename(path, suffix) { if (suffix !== undefined) validateString(suffix, 'suffix'); @@ -1084,23 +1513,32 @@ const posix = { let extIdx = suffix.length - 1; let firstNonSlashEnd = -1; for (let i = path.length - 1; i >= 0; --i) { - const code = path.charCodeAt(i); + const code = StringPrototypeCharCodeAt(path, i); if (code === CHAR_FORWARD_SLASH) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now if (!matchedSlash) { start = i + 1; break; } } else { if (firstNonSlashEnd === -1) { + // We saw the first non-path separator, remember this index in case + // we need it if the extension ends up not matching matchedSlash = false; firstNonSlashEnd = i + 1; } if (extIdx >= 0) { - if (code === suffix.charCodeAt(extIdx)) { + // Try to match the explicit extension + if (code === StringPrototypeCharCodeAt(suffix, extIdx)) { if (--extIdx === -1) { + // We matched the extension, so mark this as the end of our path + // component end = i; } } else { + // Extension does not match, so our result is the entire path + // component extIdx = -1; end = firstNonSlashEnd; } @@ -1112,15 +1550,19 @@ const posix = { end = firstNonSlashEnd; else if (end === -1) end = path.length; - return path.slice(start, end); + return StringPrototypeSlice(path, start, end); } for (let i = path.length - 1; i >= 0; --i) { - if (path.charCodeAt(i) === CHAR_FORWARD_SLASH) { + if (StringPrototypeCharCodeAt(path, i) === CHAR_FORWARD_SLASH) { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now if (!matchedSlash) { start = i + 1; break; } } else if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // path component matchedSlash = false; end = i + 1; } @@ -1128,19 +1570,27 @@ const posix = { if (end === -1) return ''; - return path.slice(start, end); + return StringPrototypeSlice(path, start, end); }, + /** + * @param {string} path + * @returns {string} + */ extname(path) { validateString(path, 'path'); let startDot = -1; let startPart = 0; let end = -1; let matchedSlash = true; + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find let preDotState = 0; for (let i = path.length - 1; i >= 0; --i) { - const code = path.charCodeAt(i); - if (code === CHAR_FORWARD_SLASH) { + const char = path[i]; + if (char === '/') { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now if (!matchedSlash) { startPart = i + 1; break; @@ -1148,41 +1598,57 @@ const posix = { continue; } if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension matchedSlash = false; end = i + 1; } - if (code === CHAR_DOT) { + if (char === '.') { + // If this is our first dot, mark it as the start of our extension if (startDot === -1) startDot = i; else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension preDotState = -1; } } if (startDot === -1 || end === -1 || + // We saw a non-dot character immediately before the dot preDotState === 0 || + // The (right-most) trimmed path component is exactly '..' (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) { return ''; } - return path.slice(startDot, end); - }, - - format(pathObject) { - return _format('/', pathObject); + return StringPrototypeSlice(path, startDot, end); }, + format: FunctionPrototypeBind(_format, null, '/'), + + /** + * @param {string} path + * @returns {{ + * dir: string; + * root: string; + * base: string; + * name: string; + * ext: string; + * }} + */ parse(path) { validateString(path, 'path'); const ret = { root: '', dir: '', base: '', ext: '', name: '' }; if (path.length === 0) return ret; - const isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH; + const isAbsolute = + StringPrototypeCharCodeAt(path, 0) === CHAR_FORWARD_SLASH; let start; if (isAbsolute) { ret.root = '/'; @@ -1195,11 +1661,17 @@ const posix = { let end = -1; let matchedSlash = true; let i = path.length - 1; + + // Track the state of characters (if any) we see before our first dot and + // after any path separator we find let preDotState = 0; + // Get non-dir info for (; i >= start; --i) { - const code = path.charCodeAt(i); - if (code === CHAR_FORWARD_SLASH) { + const char = path[i]; + if (char === '/') { + // If we reached a path separator that was not part of a set of path + // separators at the end of the string, stop now if (!matchedSlash) { startPart = i + 1; break; @@ -1207,15 +1679,20 @@ const posix = { continue; } if (end === -1) { + // We saw the first non-path separator, mark this as the end of our + // extension matchedSlash = false; end = i + 1; } - if (code === CHAR_DOT) { + if (char === '.') { + // If this is our first dot, mark it as the start of our extension if (startDot === -1) startDot = i; else if (preDotState !== 1) preDotState = 1; } else if (startDot !== -1) { + // We saw a non-dot and non-path separator before our dot, so we should + // have a good chance at having a non-empty extension preDotState = -1; } } @@ -1223,20 +1700,22 @@ const posix = { if (end !== -1) { const start = startPart === 0 && isAbsolute ? 1 : startPart; if (startDot === -1 || + // We saw a non-dot character immediately before the dot preDotState === 0 || + // The (right-most) trimmed path component is exactly '..' (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)) { - ret.base = ret.name = path.slice(start, end); + ret.base = ret.name = StringPrototypeSlice(path, start, end); } else { - ret.name = path.slice(start, startDot); - ret.base = path.slice(start, end); - ret.ext = path.slice(startDot, end); + ret.name = StringPrototypeSlice(path, start, startDot); + ret.base = StringPrototypeSlice(path, start, end); + ret.ext = StringPrototypeSlice(path, startDot, end); } } if (startPart > 0) - ret.dir = path.slice(0, startPart - 1); + ret.dir = StringPrototypeSlice(path, 0, startPart - 1); else if (isAbsolute) ret.dir = '/'; @@ -1253,11 +1732,10 @@ const posix = { posix: null, }; -// Cross-link win32 and posix posix.win32 = win32.win32 = win32; posix.posix = win32.posix = posix; -// Legacy internal API +// Legacy internal API, docs-only deprecated: DEP0080 win32._makeLong = win32.toNamespacedPath; posix._makeLong = posix.toNamespacedPath; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/process.js b/crates/wasm-rquickjs/skeleton/src/builtin/process.js index 181e6dc48..06e9205b5 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/process.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/process.js @@ -9,6 +9,7 @@ import { memory_usage as _native_memory_usage, has_typescript_runtime, typescript_runtime_mode, + sqlite_version, is_preinitializing, reject_preinit_uncaught_error, await_runtime_idle @@ -227,19 +228,25 @@ process.pid = 1; process.ppid = 0; process.platform = 'wasi'; process.arch = 'wasm32'; -process.version = 'v22.0.0'; +// Node.js release whose public API this runtime targets; see tests/node_compat/target-selection.md. +process.version = 'v26.13.1'; process.versions = { - node: '22.0.0', - modules: '127', + node: '26.13.1', + modules: '147', openssl: '3.0.0', }; +// Only builds with the sqlite feature have a working node:sqlite. +const _sqliteVersion = sqlite_version(); +if (_sqliteVersion) { + process.versions.sqlite = _sqliteVersion; +} process.config = { target_defaults: { default_configuration: 'Release' }, variables: { v8_enable_i18n_support: 0, asan: 0, openssl_quic: 0, - node_module_version: 127, + node_module_version: 147, node_use_amaro: has_typescript_runtime(), }, }; @@ -257,8 +264,11 @@ process.features = { tls_sni: false, tls_ocsp: false, tls: false, + openssl_is_boringssl: false, cached_builtins: true, require_module: true, + dtls: false, + quic: false, typescript: typescriptRuntimeMode ?? false, }; process.execPath = '/usr/local/bin/node'; @@ -269,7 +279,7 @@ Object.defineProperty(process, 'title', { enumerable: true, configurable: true, }); -process.release = { name: 'node' }; +process.release = { name: 'node', lts: 'Lithium' }; process.allowedNodeEnvironmentFlags = new Set(); const _reportOptions = { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/process.rs b/crates/wasm-rquickjs/skeleton/src/builtin/process.rs index 471c62aa0..eae2b4230 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/process.rs +++ b/crates/wasm-rquickjs/skeleton/src/builtin/process.rs @@ -105,6 +105,18 @@ pub mod native_module { cfg!(feature = "typescript-runtime") } + #[rquickjs::function] + pub fn sqlite_version() -> Option<&'static str> { + #[cfg(feature = "sqlite")] + { + Some(rusqlite::version()) + } + #[cfg(not(feature = "sqlite"))] + { + None + } + } + #[rquickjs::function] pub fn typescript_runtime_mode() -> Option<&'static str> { if cfg!(feature = "typescript-transform-runtime") { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/sqlite.js b/crates/wasm-rquickjs/skeleton/src/builtin/sqlite.js index 43b3633fe..2ef8af294 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/sqlite.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/sqlite.js @@ -124,13 +124,24 @@ class _DatabaseSyncImpl { err.code = 'ERR_INVALID_ARG_TYPE'; throw err; } - const stmtOptions = { - readBigInts: options.readBigInts ?? this.#options.readBigInts, - returnArrays: options.returnArrays ?? this.#options.returnArrays, - allowBareNamedParameters: options.allowBareNamedParameters ?? this.#options.allowBareNamedParameters, - allowUnknownNamedParameters: options.allowUnknownNamedParameters ?? this.#options.allowUnknownNamedParameters, - }; - return new StatementSync(_stmtSecret, this.#connId, sql, stmtOptions); + if (options === null || (typeof options !== 'object' && typeof options !== 'function')) { + const err = new TypeError('The "options" argument must be an object.'); + err.code = 'ERR_INVALID_ARG_TYPE'; + throw err; + } + const stmtOptions = { __proto__: null }; + for (const key of ['returnArrays', 'readBigInts', 'allowBareNamedParameters', 'allowUnknownNamedParameters']) { + const value = options[key]; + if (value !== undefined && typeof value !== 'boolean') { + const err = new TypeError(`The "options.${key}" argument must be a boolean.`); + err.code = 'ERR_INVALID_ARG_TYPE'; + throw err; + } + stmtOptions[key] = value === undefined ? this.#options[key] : value; + } + // An option getter can close the database while validation runs. + if (this.#connId === null) throwDbNotOpen('ERR_INVALID_STATE'); + return new Statement(_stmtSecret, this.#connId, sql, stmtOptions); } function(name, optionsOrFn, maybeFn) { @@ -322,12 +333,12 @@ class _DatabaseSyncImpl { } get isTransaction() { - if (this.#connId === null) return false; + if (this.#connId === null) throwDbNotOpen('ERR_INVALID_STATE'); return !is_autocommit(this.#connId); } } -export function DatabaseSync(path, options) { +export function Database(path, options) { if (!new.target) { const err = new TypeError('Cannot call constructor without `new`'); err.code = 'ERR_CONSTRUCT_CALL_REQUIRED'; @@ -335,7 +346,10 @@ export function DatabaseSync(path, options) { } return new _DatabaseSyncImpl(path, options); } -DatabaseSync.prototype = _DatabaseSyncImpl.prototype; +Database.prototype = _DatabaseSyncImpl.prototype; +Object.defineProperty(_DatabaseSyncImpl.prototype, 'constructor', { value: Database, writable: true, configurable: true }); +// DEP0210: Node 26 renamed DatabaseSync to Database and keeps the old name as an alias. +export const DatabaseSync = Database; export class Session { #sessionId; @@ -380,7 +394,7 @@ export class Session { const _stmtSecret = Symbol('stmtSecret'); -export class StatementSync { +export class Statement { #connId; #sql; #options; @@ -628,4 +642,7 @@ export function isAutocommitDatabaseSync(db) { return is_autocommit(_getConnId(db)); } -export default { DatabaseSync, StatementSync, Session, SQLTagStore, constants, backup, serializeDatabase, restoreDatabase, serializeDatabaseSync, restoreDatabaseSync, isAutocommitDatabaseSync }; +// DEP0211: Node 26 renamed StatementSync to Statement and keeps the old name as an alias. +export const StatementSync = Statement; + +export default { Database, DatabaseSync, Statement, StatementSync, Session, SQLTagStore, constants, backup, serializeDatabase, restoreDatabase, serializeDatabaseSync, restoreDatabaseSync, isAutocommitDatabaseSync }; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/sqlite.rs b/crates/wasm-rquickjs/skeleton/src/builtin/sqlite.rs index 0e17a2302..d455f436a 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/sqlite.rs +++ b/crates/wasm-rquickjs/skeleton/src/builtin/sqlite.rs @@ -250,12 +250,9 @@ fn js_value_to_sqlite<'js>( return Ok(rusqlite::types::Value::Integer(if b { 1 } else { 0 })); } if let Some(i) = val.as_int() { - return Ok(rusqlite::types::Value::Integer(i as i64)); + return Ok(rusqlite::types::Value::Real(i as f64)); } if let Some(f) = val.as_float() { - if f.fract() == 0.0 && f >= i64::MIN as f64 && f <= i64::MAX as f64 { - return Ok(rusqlite::types::Value::Integer(f as i64)); - } return Ok(rusqlite::types::Value::Real(f)); } if val.is_big_int() { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/sqlite_disabled.rs b/crates/wasm-rquickjs/skeleton/src/builtin/sqlite_disabled.rs index 33146df6f..2c5df0740 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/sqlite_disabled.rs +++ b/crates/wasm-rquickjs/skeleton/src/builtin/sqlite_disabled.rs @@ -3,9 +3,11 @@ pub mod native_module {} pub const SQLITE_JS: &str = r#" const msg = 'node:sqlite is not available (sqlite feature is not enabled)'; -class DatabaseSync { constructor() { throw new Error(msg); } } -class StatementSync { constructor() { throw new Error(msg); } } +class Database { constructor() { throw new Error(msg); } } +class Statement { constructor() { throw new Error(msg); } } +const DatabaseSync = Database; +const StatementSync = Statement; const constants = {}; -export { DatabaseSync, StatementSync, constants }; -export default { DatabaseSync, StatementSync, constants }; +export { Database, DatabaseSync, Statement, StatementSync, constants }; +export default { Database, DatabaseSync, Statement, StatementSync, constants }; "#; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/structured_clone.js b/crates/wasm-rquickjs/skeleton/src/builtin/structured_clone.js index 43cc76a50..42e4c595d 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/structured_clone.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/structured_clone.js @@ -483,7 +483,7 @@ function optionsTransfer(options) { throw invalidArgument("Failed to execute 'structuredClone': Options cannot be converted to a dictionary"); const transfer = options.transfer; if (transfer === undefined) return []; - const memberError = () => invalidArgument("Failed to execute 'structuredClone': transfer in Options can not be converted to sequence."); + const memberError = () => invalidArgument("Failed to execute 'structuredClone': transfer in Options cannot be converted to sequence."); if (!isObject(transfer)) throw memberError(); const method = transfer[symbolIterator]; if (method == null) throw memberError(); diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/test.js b/crates/wasm-rquickjs/skeleton/src/builtin/test.js index 5d0e8e80e..34cc70610 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/test.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/test.js @@ -4,6 +4,7 @@ // and an aggregate error is thrown after all tests in a suite complete. import assert from 'node:assert'; +import { isDeepStrictEqual } from 'node:util'; import { ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE } from '__wasm_rquickjs_builtin/internal/errors'; import { validateNumber, validateInteger } from '__wasm_rquickjs_builtin/internal/validators'; @@ -17,6 +18,89 @@ function activeTestEntryFile(moduleContext) { return moduleContext ? moduleContext.filename : undefined; } +// --- t.assert methods (Node 26 lib/internal/test_runner/assert.js) --- +const kTestAssertMethods = [ + 'deepEqual', 'deepStrictEqual', 'doesNotMatch', 'doesNotReject', 'doesNotThrow', 'equal', + 'fail', 'ifError', 'match', 'notDeepEqual', 'notDeepStrictEqual', 'notEqual', + 'notStrictEqual', 'partialDeepStrictEqual', 'rejects', 'strictEqual', 'throws', +]; + +function getMockContext(fn) { + const ctx = fn == null ? undefined : fn.mock; + if (ctx === null || typeof ctx !== 'object' || typeof ctx.callCount !== 'function' || !Array.isArray(ctx.calls)) { + throw new ERR_INVALID_ARG_TYPE('fn', 'mock function', fn); + } + return ctx; +} + +function assertCalledWithAt(fn, n, args, stackStartFn) { + const calls = getMockContext(fn).calls; + if (n > calls.length) { + throw new assert.AssertionError({ + message: `Expected mock function to have been called at least ${n} times, ` + + `but it was called ${calls.length} times`, + actual: calls.length, + expected: n, + operator: stackStartFn.name, + stackStartFn, + }); + } + const actual = calls[n - 1].arguments; + if (!isDeepStrictEqual(actual, args)) { + throw new assert.AssertionError({ + message: `Expected call ${n} of mock function to have been called with:`, + actual, + expected: args, + operator: 'deepStrictEqual', + stackStartFn, + }); + } +} + +const mockAssertions = { + called: function called(fn, message) { + const count = getMockContext(fn).callCount(); + if (count === 0) { + throw new assert.AssertionError({ + message: message ?? 'Expected mock function to have been called', + actual: count, + operator: 'called', + stackStartFn: called, + }); + } + }, + callCount: function callCount(fn, times, message) { + validateInteger(times, 'times', 0); + const count = getMockContext(fn).callCount(); + if (count !== times) { + throw new assert.AssertionError({ + message: message ?? + `Expected mock function to have been called ${times} times, but it was called ${count} times`, + actual: count, + expected: times, + operator: 'callCount', + stackStartFn: callCount, + }); + } + }, + lastCalledWith: function lastCalledWith(fn, ...args) { + const count = getMockContext(fn).callCount(); + if (count === 0) { + throw new assert.AssertionError({ + message: 'Expected mock function to have been called', + actual: count, + operator: 'lastCalledWith', + stackStartFn: lastCalledWith, + }); + } + assertCalledWithAt(fn, count, args, lastCalledWith); + }, + nthCalledWith: function nthCalledWith(fn, n, ...args) { + validateInteger(n, 'n', 1); + assertCalledWithAt(fn, n, args, nthCalledWith); + }, +}; + // --- Custom assertions registry (testAssertions.register) --- const _customAssertions = {}; @@ -59,6 +143,18 @@ Object.defineProperty(SuiteContext.prototype, 'fullName', { } }); +// Node 26 SuiteContext: whether the suite has passed so far, the retry attempt, and +// diagnostics reported for the suite. +Object.defineProperty(SuiteContext.prototype, 'passed', { + get: function () { return !this._failed; }, +}); +Object.defineProperty(SuiteContext.prototype, 'attempt', { + get: function () { return 0; }, +}); +SuiteContext.prototype.diagnostic = function (msg) { + (this._diagnostics || (this._diagnostics = [])).push(msg); +}; + SuiteContext.prototype.collectBeforeEach = function () { let fns = []; if (this.parent) { @@ -99,18 +195,18 @@ function TestContext(name, parent, filePath) { this._planCount = undefined; this._assertionCount = 0; - // Build t.assert: copy assert methods excluding AssertionError, CallTracker, strict, - // and add snapshot/fileSnapshot per Node.js spec. + // Build t.assert like Node 26 (lib/internal/test_runner/assert.js and test.js): the + // assertion map, then registered custom assertions, which may replace entries, then ok. // All methods are wrapped to track assertion count for t.plan(). - const uncopiedKeys = ['AssertionError', 'CallTracker', 'strict']; const tAssert = {}; const self = this; - const assertKeys = Object.keys(assert); - for (let i = 0; i < assertKeys.length; i++) { - const key = assertKeys[i]; - if (!uncopiedKeys.includes(key)) { - tAssert[key] = wrapAssertForPlan(assert[key], self); - } + for (let i = 0; i < kTestAssertMethods.length; i++) { + const key = kTestAssertMethods[i]; + tAssert[key] = wrapAssertForPlan(assert[key], self); + } + const mockAssertKeys = Object.keys(mockAssertions); + for (let i = 0; i < mockAssertKeys.length; i++) { + tAssert[mockAssertKeys[i]] = wrapAssertForPlan(mockAssertions[mockAssertKeys[i]], self); } tAssert.snapshot = wrapAssertForPlan(function snapshot(_value, _options) { throw new Error('snapshot is not supported in this context'); @@ -124,12 +220,15 @@ function TestContext(name, parent, filePath) { const ckey = customKeys[ci]; tAssert[ckey] = wrapAssertForPlan(wrapCustomAssertion(_customAssertions[ckey], this), self); } + if (!Object.prototype.hasOwnProperty.call(_customAssertions, 'ok')) { + tAssert.ok = wrapAssertForPlan(assert.ok, self); + } this.assert = tAssert; } Object.defineProperty(TestContext.prototype, 'fullName', { get: function () { - const parentName = this._parent ? this._parent.fullName : ''; + const parentName = this._parent && this._parent !== rootSuite ? this._parent.fullName : ''; if (parentName) { return `${parentName} > ${this.name}`; } @@ -162,46 +261,86 @@ TestContext.prototype.test = function (name, optionsOrFn, maybeFn) { } const childCtx = new TestContext(parsed.name, parentTest); - const restoreMocks = function () { childCtx.mock.restoreAll(); }; + // Hooks registered with t.beforeEach/t.afterEach run around every subtest of t and of + // its subtests: beforeEach from the outermost context in, afterEach from the innermost out. + const beforeEachFns = collectContextHooks(parentTest, '_beforeEachFns').reverse().flat(); + const afterEachFns = collectContextHooks(parentTest, '_afterEachFns').flat(); + const runHooks = function (hooks, start = 0) { + for (let i = start; i < hooks.length; i++) { + const result = hooks[i].call(childCtx, childCtx); + if (result && typeof result.then === 'function') { + return Promise.resolve(result).then(function () { return runHooks(hooks, i + 1); }); + } + } + }; + // Like Node 26's runOnce-wrapped afterEach, teardown runs at most once: a hook that throws + // after the subtest succeeded must not run again when that error is handled as a failure. + let tornDown = false; + const teardown = function () { + if (tornDown) return; + tornDown = true; + try { + const result = runHooks(afterEachFns); + if (result && typeof result.then === 'function') { + return Promise.resolve(result).finally(function () { childCtx.mock.restoreAll(); }); + } + } catch (e) { + childCtx.mock.restoreAll(); + throw e; + } + childCtx.mock.restoreAll(); + }; + const fail = function (error) { + // A body/setup failure wins over a secondary teardown failure, but cleanup + // still finishes before the child settles. Preserve the existing skip contract. + const finish = function () { if (!(error instanceof SkipError)) throw error; }; + try { + return Promise.resolve(teardown()).then(finish, finish); + } catch { + return Promise.resolve().then(finish); + } + }; - try { + const runBody = function () { + let result; if (fn.length >= 2) { // done callback pattern - return new Promise(function (resolve, reject) { + result = new Promise(function (resolve, reject) { const done = function (err) { - restoreMocks(); if (err) reject(err); else resolve(); }; - try { - fn.call(childCtx, childCtx, done); - } catch (e) { - restoreMocks(); - reject(e); - } + fn.call(childCtx, childCtx, done); }); + } else { + result = fn.call(childCtx, childCtx); } - - const result = fn.call(childCtx, childCtx); if (result && typeof result.then === 'function') { - return result.then(function () { - restoreMocks(); - }, function (e) { - restoreMocks(); - throw e; - }); + return Promise.resolve(result).then(teardown); } - restoreMocks(); - return Promise.resolve(); + return teardown(); + }; + try { + const setup = runHooks(beforeEachFns); + // Keep synchronous hooks and bodies eager; only yield when a hook/body does. + const result = setup && typeof setup.then === 'function' + ? Promise.resolve(setup).then(runBody) : runBody(); + return Promise.resolve(result).catch(fail); } catch (e) { - restoreMocks(); - if (e instanceof SkipError) { - return Promise.resolve(); - } - return Promise.reject(e); + return fail(e); } }; +// Returns the hooks of `key` registered on ctx and its ancestor test contexts, innermost +// context first, each context's hooks in registration order. +function collectContextHooks(ctx, key) { + const hooks = []; + for (let c = ctx; c instanceof TestContext; c = c._parent) { + hooks.push(c[key]); + } + return hooks; +} + TestContext.prototype.before = function (fn) { this._beforeFns.push(fn); }; @@ -728,6 +867,7 @@ function test(nameOrOpts, optionsOrFn, maybeFn) { } // Top-level test — run immediately + runRootBeforeHooks(); const result = runTest(parsed, rootSuite); if (result.status === 'async') { const p = result.promise.then(function (resolved) { @@ -791,6 +931,7 @@ function describe(nameOrOpts, optionsOrFn, maybeFn) { } // Top-level suite — run immediately + runRootBeforeHooks(); const result = runSuite(parsed.name, parsed.options, parsed.fn, rootSuite, parsed.moduleContext); if (result.status === 'async-suite') { if (result.promise) { @@ -863,6 +1004,17 @@ function before(fn) { } } +// Top-level tests run as soon as they are declared, so root before() hooks declared so far run +// before the next top-level test or suite, with the root context (fullName ''). +let rootBeforeHooksRun = 0; +const rootHookContext = { fullName: '', name: '' }; +function runRootBeforeHooks() { + while (rootBeforeHooksRun < rootSuite.beforeFns.length) { + const hook = rootSuite.beforeFns[rootBeforeHooksRun++]; + hook.call(rootHookContext, rootHookContext); + } +} + function after(fn) { if (currentSuite) { currentSuite.afterFns.push(fn); @@ -1261,6 +1413,36 @@ MockTracker.prototype.module = function module(specifier, options) { if (opts.namedExports !== undefined && (opts.namedExports === null || typeof opts.namedExports !== 'object')) { throw new ERR_INVALID_ARG_TYPE('options.namedExports', 'object', opts.namedExports); } + // Node 26 options.exports replaces namedExports/defaultExport; `exports.default` is the default export. + const hasExports = 'exports' in opts; + const hasNamedExports = 'namedExports' in opts; + const hasDefaultExport = 'defaultExport' in opts; + if (hasExports && (opts.exports === null || typeof opts.exports !== 'object')) { + throw new ERR_INVALID_ARG_TYPE('options.exports', 'object', opts.exports); + } + if (hasExports && (hasNamedExports || hasDefaultExport)) { + let reason = "cannot be used with 'options.namedExports'"; + if (hasDefaultExport) { + reason = hasNamedExports ? + "cannot be used with 'options.namedExports' or 'options.defaultExport'" : + "cannot be used with 'options.defaultExport'"; + } + throw new ERR_INVALID_ARG_VALUE('options.exports', opts.exports, reason); + } + if (hasExports) { + const namedExports = {}; + const descriptors = Object.getOwnPropertyDescriptors(opts.exports); + const converted = { cache: opts.cache }; + for (const key of Reflect.ownKeys(descriptors)) { + if (key === 'default') { + Object.defineProperty(converted, 'defaultExport', descriptors[key]); + } else { + Object.defineProperty(namedExports, key, descriptors[key]); + } + } + converted.namedExports = namedExports; + opts = converted; + } var registerFn = globalThis.__wasm_rquickjs_register_module_mock; if (!registerFn) { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/url.js b/crates/wasm-rquickjs/skeleton/src/builtin/url.js index fbb22c7a7..bfaaafcb5 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/url.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/url.js @@ -5,7 +5,7 @@ import { domainToUnicode as domainToUnicodeNative, } from '__wasm_rquickjs_builtin/url_native'; import * as querystring from 'node:querystring'; -import { ERR_INVALID_ARG_TYPE, ERR_MISSING_ARGS } from '__wasm_rquickjs_builtin/internal/errors'; +import { ERR_INVALID_ARG_TYPE, ERR_INVALID_ARG_VALUE, ERR_MISSING_ARGS } from '__wasm_rquickjs_builtin/internal/errors'; import { createPrivateWeakMap } from '__wasm_rquickjs_builtin/internal/weak_collections'; const __URLSearchParams__ = "__URLSearchParams__"; @@ -82,7 +82,8 @@ function URLSearchParamsPolyfill(search) { throw new TypeError("Class constructor URLSearchParams cannot be invoked without 'new'"); } - if (search === undefined || search === null) { + // WebIDL union resolution: only undefined means "no init"; null becomes the string "null". + if (search === undefined) { search = ""; } else if (search instanceof URLSearchParams || search instanceof URLSearchParamsPolyfill) { search = search.toString(); @@ -484,8 +485,8 @@ function parseToPairs(search) { toUSVString(search); } - if (typeof search === "object" || typeof search === 'function') { - const iterator = search && search[Symbol.iterator]; + if ((typeof search === "object" && search !== null) || typeof search === 'function') { + const iterator = search[Symbol.iterator]; if (iterator !== undefined) { if (typeof iterator !== 'function') { throw makeNotIterableError(); @@ -510,14 +511,24 @@ function parseToPairs(search) { pairs.push([toUSVString(first.value), toUSVString(second.value)]); } } else { - const symbols = Object.getOwnPropertySymbols(search || {}); + const symbols = Object.getOwnPropertySymbols(search); if (symbols.length > 0) { toUSVString(symbols[0]); } - const keys = Object.keys(search || {}); + // A record key that collides after USV conversion keeps its first position and + // takes the last value. + const indexByKey = new Map(); + const keys = Object.keys(search); for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - pairs.push([toUSVString(key), toUSVString(search[key])]); + const key = toUSVString(keys[i]); + const value = toUSVString(search[keys[i]]); + const index = indexByKey.get(key); + if (index === undefined) { + indexByKey.set(key, pairs.length); + pairs.push([key, value]); + } else { + pairs[index][1] = value; + } } } } else { @@ -686,11 +697,6 @@ function makeInvalidUrlError(input) { } const FORBIDDEN_HOST_CHARS = /[\0\t\n\r #%/<>?@\\^|]/; -const WARN_INVALID_HOSTNAME_KEY = '__wasm_rquickjs_url_warned_invalid_hostname'; - -if (globalThis[WARN_INVALID_HOSTNAME_KEY] === undefined) { - globalThis[WARN_INVALID_HOSTNAME_KEY] = false; -} function validateHostName(hostname, ipv6Host, input) { if (!hostname) { @@ -701,28 +707,6 @@ function validateHostName(hostname, ipv6Host, input) { } } -function emitInvalidUrlDeprecation(input) { - if (globalThis[WARN_INVALID_HOSTNAME_KEY]) { - return; - } - globalThis[WARN_INVALID_HOSTNAME_KEY] = true; - - const warningMessage = `The URL ${input} is invalid. Future versions of Node.js will throw an error.`; - - if (typeof process !== 'undefined' && typeof process.emitWarning === 'function') { - process.emitWarning(warningMessage, { - type: 'DeprecationWarning', - code: 'DEP0170', - }); - } - - if (typeof process !== 'undefined' && - process.stderr && - typeof process.stderr.write === 'function') { - process.stderr.write(`[DEP0170] DeprecationWarning: ${warningMessage}\n`); - } -} - const ENCODE_CHARS_RE = /[\x00-\x1F\x20"#%?<>{}|\\^`~\[\]\x7F]/g; function percentEncode(char) { @@ -781,11 +765,13 @@ export function fileURLToPath(url, options) { const pathname = url.pathname; if (pathname.indexOf('%2F') !== -1 || pathname.indexOf('%2f') !== -1) { - throw makeNodeError( + const err = makeNodeError( 'ERR_INVALID_FILE_URL_PATH', TypeError, 'File URL path must not include encoded / characters' ); + err.input = url; + throw err; } return decodeURIComponent(pathname); @@ -863,6 +849,9 @@ export function pathToFileURL(path, options) { } export function urlToHttpOptions(url) { + if (url === null || (typeof url !== 'object' && typeof url !== 'function')) { + throw new ERR_INVALID_ARG_TYPE('url', 'object', url); + } const options = { protocol: url.protocol, hostname: typeof url.hostname === 'string' && url.hostname.startsWith('[') @@ -1519,7 +1508,7 @@ export function parse(urlString, parseQueryString, slashesDenoteHost) { } if (shouldWarnInvalidHost) { - emitInvalidUrlDeprecation(urlString); + throw new ERR_INVALID_ARG_VALUE('url', 'Invalid port in url', urlString); } if (parseQueryString) { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/util.js b/crates/wasm-rquickjs/skeleton/src/builtin/util.js index 40de160ac..4f7f20742 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/util.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/util.js @@ -1,6 +1,6 @@ import { isAbortSignal, markTransferableSignal } from '__wasm_rquickjs_builtin/internal/clone_policy'; import { AbortController as NativeAbortController, AbortSignal as NativeAbortSignal } from '__wasm_rquickjs_builtin/abort_controller'; -import { validateAbortSignal, validateObject } from '__wasm_rquickjs_builtin/internal/validators'; +import { validateAbortSignal, validateObject, validateOneOf } from '__wasm_rquickjs_builtin/internal/validators'; import { NativeWeakRef, nativeWeakRefDeref } from '__wasm_rquickjs_builtin/internal/weak_collections'; // Copyright Joyent, Inc. and other Node contributors. // @@ -33,6 +33,7 @@ import { import * as webCryptoNative from '__wasm_rquickjs_builtin/web_crypto_native'; import { ERR_INVALID_ARG_TYPE, + ERR_INVALID_ARG_VALUE, ERR_OUT_OF_RANGE, isErrorStackTraceLimitWritable } from '__wasm_rquickjs_builtin/internal/errors'; @@ -61,7 +62,9 @@ const getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors; // Mark that a method should not be used. // Returns a modified function which warns once by default. // If --no-deprecation is set, then it is a no-op. -export const deprecate = _internalDeprecate; +export function deprecate(fn, msg, code, { modifyPrototype } = {}) { + return _internalDeprecate(fn, msg, code, undefined, modifyPrototype); +} const debugs = {}; @@ -418,10 +421,10 @@ function _exportKeyForCompare(key, keyType) { // Try a more explicit export signature. } + const formatType = keyType === 'public' ? 'spki' : 'pkcs8'; try { - return key.export('der'); + return key.export({ format: 'der', type: formatType }); } catch (_) { - const formatType = keyType === 'public' ? 'spki' : 'pkcs8'; try { return key.export('der', formatType, undefined); } catch (_) { @@ -540,7 +543,7 @@ function _deepObjEquiv(a, b, strict, memo) { return a === b; } - if (strict && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b)) + if (strict && !_deepSkipPrototype && Object.getPrototypeOf(a) !== Object.getPrototypeOf(b)) return false; // Check type tags match - objects of different built-in types are never equal @@ -590,9 +593,10 @@ function _deepObjEquiv(a, b, strict, memo) { } catch (_) { return false; } - if (aDateTime !== bDateTime) return false; + // Two invalid dates (NaN time) are equal, as in Node 26. + if (aDateTime !== bDateTime && (aDateTime === aDateTime || bDateTime === bDateTime)) return false; // In strict mode, also check constructor and own properties - if (strict && a.constructor !== b.constructor) return false; + if (strict && !_deepSkipPrototype && a.constructor !== b.constructor) return false; const dKeysA = Object.keys(a); const dKeysB = Object.keys(b); if (dKeysA.length !== dKeysB.length) return false; @@ -712,7 +716,7 @@ function _deepObjEquiv(a, b, strict, memo) { return false; } if (aSource !== bSource || aFlags !== bFlags || aLastIndex !== bLastIndex) return false; - if (strict && a.constructor !== b.constructor) return false; + if (strict && !_deepSkipPrototype && a.constructor !== b.constructor) return false; const rKeysA = Object.keys(a); const rKeysB = Object.keys(b); if (rKeysA.length !== rKeysB.length) return false; @@ -780,13 +784,14 @@ function _deepObjEquiv(a, b, strict, memo) { if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) { if (a.byteLength !== b.byteLength) return false; if (aTypedBrand === '' || bTypedBrand === '') { - if (strict) { + if (strict && !_deepSkipPrototype) { if (a.constructor !== b.constructor) return false; } else { if (aTag !== bTag) return false; } } - if (!strict && (a instanceof Float32Array || a instanceof Float64Array)) { + const floatTag = _getTypedArrayTag(a); + if (!strict && (floatTag === 'Float16Array' || floatTag === 'Float32Array' || floatTag === 'Float64Array')) { if (a.length !== b.length) return false; for (let i = 0; i < a.length; i++) { if (a[i] != b[i]) return false; @@ -820,17 +825,37 @@ function _deepObjEquiv(a, b, strict, memo) { } if (!memo) { - memo = { a: [], b: [] }; - } - // Check for cycles: if we've seen this exact pair (a, b), assume equal - for (let mi = 0; mi < memo.a.length; mi++) { - if (memo.a[mi] === a && memo.b[mi] === b) { - return true; - } + memo = { a: [], b: [], cycle: { useSet: false } }; + } + // Node 26 cycle handling (comparisons.js handleCycles). One level below the roots, + // only the root on the same side counts. Once the comparison goes deeper, every object + // on the current path counts, from either side, for the rest of the comparison: an + // object on the path then matches only when its counterpart is on the path too. + const depth = memo.a.length; + if (depth >= 2) { + memo.cycle.useSet = true; + } + if (memo.cycle.useSet) { + const aOnPath = memo.a.includes(a) || memo.b.includes(a); + const bOnPath = memo.a.includes(b) || memo.b.includes(b); + if (aOnPath || bOnPath) { + return aOnPath && bOnPath; + } + } else if (depth === 1) { + if (memo.a[0] === a) return memo.b[0] === b; + if (memo.b[0] === b) return false; } memo.a.push(a); memo.b.push(b); + try { + return _deepContainerEquiv(a, b, strict, memo); + } finally { + memo.a.length = depth; + memo.b.length = depth; + } +} +function _deepContainerEquiv(a, b, strict, memo) { if (a instanceof Map && b instanceof Map) { if (a.size !== b.size) return false; const aEntries = Array.from(a.entries()); @@ -863,7 +888,7 @@ function _deepObjEquiv(a, b, strict, memo) { for (let j = 0; j < bEntries.length; j++) { if (matchedB[j]) continue; if (Object.is(aKey, bEntries[j][0])) { - const valueMemo = { a: memo.a.slice(), b: memo.b.slice() }; + const valueMemo = { a: memo.a.slice(), b: memo.b.slice(), cycle: memo.cycle }; if (_innerDeep(aEntries[i][1], bEntries[j][1], strict, valueMemo)) { memo.a = valueMemo.a; memo.b = valueMemo.b; @@ -883,9 +908,9 @@ function _deepObjEquiv(a, b, strict, memo) { let found = false; for (let j = 0; j < bEntries.length; j++) { if (matchedB[j]) continue; - const keyMemo = { a: memo.a.slice(), b: memo.b.slice() }; + const keyMemo = { a: memo.a.slice(), b: memo.b.slice(), cycle: memo.cycle }; if (_innerDeep(aEntries[ai][0], bEntries[j][0], strict, keyMemo)) { - const valueMemo = { a: keyMemo.a.slice(), b: keyMemo.b.slice() }; + const valueMemo = { a: keyMemo.a.slice(), b: keyMemo.b.slice(), cycle: keyMemo.cycle }; if (_innerDeep(aEntries[ai][1], bEntries[j][1], strict, valueMemo)) { memo.a = valueMemo.a; memo.b = valueMemo.b; @@ -944,7 +969,7 @@ function _deepObjEquiv(a, b, strict, memo) { let found = false; for (let j = 0; j < arrB.length; j++) { if (usedB[j]) continue; - if (_innerDeep(arrA[unmatchedA[i]], arrB[j], strict, { a: memo.a.slice(), b: memo.b.slice() })) { + if (_innerDeep(arrA[unmatchedA[i]], arrB[j], strict, { a: memo.a.slice(), b: memo.b.slice(), cycle: memo.cycle })) { usedB[j] = true; found = true; break; @@ -974,7 +999,8 @@ function _deepObjEquiv(a, b, strict, memo) { for (let i = 0; i < a.length; i++) { const aHas = _hasOwnProp(a, i); const bHas = _hasOwnProp(b, i); - if (strict && aHas !== bHas) return false; + // Node 26: a hole never equals a present element, also in loose mode. + if (aHas !== bHas) return false; if (!_innerDeep(a[i], b[i], strict, memo)) return false; } const keysA = Object.keys(a).filter(function(k) { return !_isArrIdx(k, a.length); }); @@ -1047,13 +1073,33 @@ function _innerDeep(a, b, strict, memo) { } export function innerDeepEqual(a, b, strict, memo) { + const previousCount = _deepCallCount; _deepCallCount = 0; - return _innerDeep(a, b, strict, memo); + const previous = _deepSkipPrototype; + _deepSkipPrototype = false; + try { + return _innerDeep(a, b, strict, memo); + } finally { + _deepCallCount = previousCount; + _deepSkipPrototype = previous; + } } -export function isDeepStrictEqual(val1, val2) { +// Node 26 util.isDeepStrictEqual(val1, val2, skipPrototype): strict comparison that +// ignores [[Prototype]] and constructor identity. +let _deepSkipPrototype = false; + +export function isDeepStrictEqual(val1, val2, skipPrototype) { + const previousCount = _deepCallCount; _deepCallCount = 0; - return _innerDeep(val1, val2, true, undefined); + const previous = _deepSkipPrototype; + _deepSkipPrototype = !!skipPrototype; + try { + return _innerDeep(val1, val2, true, undefined); + } finally { + _deepCallCount = previousCount; + _deepSkipPrototype = previous; + } } const _externalValueMarkerSymbol = Symbol.for('wasm-rquickjs.util.types.external'); @@ -1423,78 +1469,43 @@ export function getCallSite(frameCount, options) { return getCallSites(frameCount, options); } -const _styleTextFormats = Object.keys(inspect.colors); +// Node 26 lib/util.js styleText helpers. +const _kStyleTextHexColor = /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/; +const _kStyleTextHexCloseSeq = '\u001b[39m'; -function _throwStyleTextInvalidArgValue(name, value, reason) { - let inspected; - try { - inspected = JSON.stringify(value); - } catch (_) { - inspected = String(value); - } - - let message = "The argument '" + name + "' " + reason; - if (inspected !== undefined) { - message += '. Received ' + inspected; - } +// Replaces nested close codes so the outer style resumes; a close code at the very +// end of the text is left alone. +function _replaceStyleTextCloseCode(str, closeSeq, openSeq, keepClose) { + const closeLen = closeSeq.length; + let index = str.indexOf(closeSeq); + if (index === -1) return str; - const err = new TypeError(message); - err.code = 'ERR_INVALID_ARG_VALUE'; - throw err; -} + let result = ''; + let lastIndex = 0; + const replacement = keepClose ? closeSeq + openSeq : openSeq; -function _isStyleTextFormatValue(format) { - return format === 'none' || _styleTextFormats.indexOf(format) !== -1; -} - -function _normalizeStyleTextFormats(format) { - if (typeof format === 'string') { - if (!_isStyleTextFormatValue(format)) { - _throwStyleTextInvalidArgValue('format', format, 'must be a valid string format'); + do { + const afterClose = index + closeLen; + if (afterClose < str.length) { + result += str.slice(lastIndex, index) + replacement; + lastIndex = afterClose; + } else { + break; } - return [format]; - } + index = str.indexOf(closeSeq, lastIndex); + } while (index !== -1); - if (Array.isArray(format)) { - for (let i = 0; i < format.length; i++) { - if (typeof format[i] !== 'string' || !_isStyleTextFormatValue(format[i])) { - _throwStyleTextInvalidArgValue('format', format, 'must be a valid string format or array of string formats'); - } - } - return format; - } - - _throwStyleTextInvalidArgValue('format', format, 'must be a valid string format or array of string formats'); + return result + str.slice(lastIndex); } -function _replaceStyleTextCloseCode(text, closeSequence, openSequence, keepClose) { - if (text.indexOf(closeSequence) === -1) { - return text; - } - - const replacement = keepClose ? closeSequence + openSequence : openSequence; - return text.split(closeSequence).join(replacement); -} - -function _applyStyleTextFormat(format, text) { - if (format === 'none') { - return text; - } - - const style = inspect.colors[format]; - if (!Array.isArray(style) || style.length < 2) { - _throwStyleTextInvalidArgValue('format', format, 'must be a valid string format'); - } - - const open = style[0]; - const close = style[1]; - const openSequence = '\u001b[' + open + 'm'; - const closeSequence = '\u001b[' + close + 'm'; - - const keepClose = open === 1 || open === 2; - const processedText = _replaceStyleTextCloseCode(text, closeSequence, openSequence, keepClose); - - return openSequence + processedText + closeSequence; +function _styleTextHexOpenSeq(hex) { + const digits = hex.length === 4 + ? hex[1] + hex[1] + hex[2] + hex[2] + hex[3] + hex[3] + : hex.slice(1); + const r = parseInt(digits.slice(0, 2), 16); + const g = parseInt(digits.slice(2, 4), 16); + const b = parseInt(digits.slice(4, 6), 16); + return '\u001b[38;2;' + r + ';' + g + ';' + b + 'm'; } function _parseStyleTextForceColor(value) { @@ -1556,44 +1567,60 @@ export function styleText(format, text, options) { if (typeof text !== 'string') { throw new ERR_INVALID_ARG_TYPE('text', 'string', text); } - - const formats = _normalizeStyleTextFormats(format); - let stream = typeof process !== 'undefined' ? process.stdout : undefined; - let validateStream = true; - if (options !== undefined) { - if (typeof options !== 'object' || options === null || Array.isArray(options)) { - throw new ERR_INVALID_ARG_TYPE('options', 'Object', options); - } - - if (options.stream !== undefined) { - stream = options.stream; - } - - if (options.validateStream !== undefined) { - if (typeof options.validateStream !== 'boolean') { - throw new ERR_INVALID_ARG_TYPE('options.validateStream', 'boolean', options.validateStream); - } - validateStream = options.validateStream; - } + validateObject(options, 'options'); + } + const validateStream = options?.validateStream ?? true; + if (typeof validateStream !== 'boolean') { + throw new ERR_INVALID_ARG_TYPE('options.validateStream', 'boolean', validateStream); } + let skipColorize = false; if (validateStream) { + const stream = options?.stream ?? (typeof process !== 'undefined' ? process.stdout : undefined); if (!_isStyleTextStream(stream)) { - throw new ERR_INVALID_ARG_TYPE('options.stream', ['ReadableStream', 'WritableStream', 'Stream'], stream); + throw new ERR_INVALID_ARG_TYPE('stream', ['ReadableStream', 'WritableStream', 'Stream'], stream); + } + skipColorize = !_shouldStyleTextColorize(stream); + } + + const formatArray = Array.isArray(format) ? format : [format]; + const colors = inspect.colors; + + let openCodes = ''; + let closeCodes = ''; + let processedText = text; + + for (const key of formatArray) { + if (key === 'none') continue; + + if (typeof key === 'string' && key[0] === '#') { + if (!_kStyleTextHexColor.test(key)) { + throw new ERR_INVALID_ARG_VALUE('format', key, 'must be a valid hex color (#RGB or #RRGGBB)'); + } + if (skipColorize) continue; + const hexOpenSeq = _styleTextHexOpenSeq(key); + openCodes += hexOpenSeq; + closeCodes = _kStyleTextHexCloseSeq + closeCodes; + processedText = _replaceStyleTextCloseCode(processedText, _kStyleTextHexCloseSeq, hexOpenSeq, false); + continue; } - if (!_shouldStyleTextColorize(stream)) { - return text; + const codes = typeof key === 'string' || typeof key === 'number' ? colors[key] : undefined; + if (!codes) { + validateOneOf(key, 'format', Object.getOwnPropertyNames(colors)); } + const openSeq = '\u001b[' + codes[0] + 'm'; + const closeSeq = '\u001b[' + codes[1] + 'm'; + const keepClose = codes[0] === 1 || codes[0] === 2; + openCodes += openSeq; + closeCodes = closeSeq + closeCodes; + processedText = _replaceStyleTextCloseCode(processedText, closeSeq, openSeq, keepClose); } - let styledText = text; - for (let i = formats.length - 1; i >= 0; i--) { - styledText = _applyStyleTextFormat(formats[i], styledText); - } + if (skipColorize) return text; - return styledText; + return openCodes + processedText + closeCodes; } // --- util.parseEnv() --- @@ -1622,7 +1649,8 @@ export function parseEnv(content) { throw new ERR_INVALID_ARG_TYPE('content', 'string', content); } - const store = {}; + // Node 26 returns a null-prototype object, so keys such as __proto__ are plain entries. + const store = { __proto__: null }; let remaining = _parseEnvTrimSpaces(content.replace(/\r/g, '')); while (remaining.length > 0) { diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/vm.js b/crates/wasm-rquickjs/skeleton/src/builtin/vm.js index 779bf9c7f..ad87ff8ff 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/vm.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/vm.js @@ -8,6 +8,7 @@ import * as pathModule from 'node:path'; import { pathToFileURL } from 'node:url'; import { extractSourceMapURL } from '__wasm_rquickjs_builtin/internal/source_map_url'; import { createPrivateWeakMap, createPrivateWeakSet } from '__wasm_rquickjs_builtin/internal/weak_collections'; +import { markEngineObjectProxy } from '__wasm_rquickjs_builtin/internal/binding/util'; let contextIdCounter = 1; const contextIds = createPrivateWeakMap(); @@ -1108,7 +1109,7 @@ function createModuleNamespace(module) { configurable: true, }); - return new Proxy(namespaceTarget, { + return markEngineObjectProxy(new Proxy(namespaceTarget, { ownKeys: function() { return names.concat([Symbol.toStringTag]); }, @@ -1127,7 +1128,7 @@ function createModuleNamespace(module) { getOwnPropertyDescriptor: function(_target, prop) { return Object.getOwnPropertyDescriptor(namespaceTarget, prop); }, - }); + })); } function sourceTextModuleBindingValue(binding, name) { @@ -1810,7 +1811,7 @@ function collectSandboxBindings(sandbox) { } function finalizeCompileFunction(fn, code, params, options) { - fn = new Proxy(fn, { + fn = markEngineObjectProxy(new Proxy(fn, { apply(target, thisArg, args) { try { return Reflect.apply(target, thisArg, args); @@ -1819,7 +1820,7 @@ function finalizeCompileFunction(fn, code, params, options) { throw err; } }, - }); + })); const renderedParams = params.map(String).join(', '); Object.defineProperty(fn, 'toString', { configurable: true, @@ -2485,15 +2486,15 @@ function vmModuleStatusError(message) { return err; } -function throwInvalidModuleThis(value) { - const err = new TypeError('The "this" argument must be an instance of Module.' + invalidArgTypeHelper(value)); - err.code = 'ERR_INVALID_ARG_TYPE'; +function throwInvalidModuleThis(type) { + const err = new TypeError('Value of "this" must be of type ' + type); + err.code = 'ERR_INVALID_THIS'; throw err; } function requireVmModuleThis(value) { if (!value || value[vmModuleInstanceBrandSymbol] !== true) { - throwInvalidModuleThis(value); + throwInvalidModuleThis('Module'); } return value; } @@ -2523,9 +2524,7 @@ function inspectVmModule(depth, options, inspect) { function requireSyntheticModuleThis(value) { if (!value || value[vmModuleInstanceBrandSymbol] !== true || !(value instanceof SyntheticModule)) { - const err = new TypeError('The "this" argument must be an instance of SyntheticModule.' + invalidArgTypeHelper(value)); - err.code = 'ERR_INVALID_ARG_TYPE'; - throw err; + throwInvalidModuleThis('SyntheticModule'); } return value; } @@ -2561,7 +2560,8 @@ function defineVmDynamicImportCallbackBinding(helperName, callback, wrap) { ? wrap[vmDynamicImportReferrerSymbol] : wrap; try { - result = callback(String(specifier), referrer, dynamicImportAttributes(options)); + // Only the evaluation phase of import() is supported, not import.source(). + result = callback(String(specifier), referrer, dynamicImportAttributes(options), 'evaluation'); } catch (err) { return Promise.reject(err); } @@ -2864,6 +2864,12 @@ export class SourceTextModule { this._dependencies = analysis.dependencies; this._usesImportedNames = sourceTextModuleHasImportedNames(this._dependencies); this._dependencySpecifiers = Object.freeze(this._dependencies.map((dependency) => dependency.specifier)); + this._moduleRequests = Object.freeze(this._dependencies.map((dependency) => Object.freeze({ + __proto__: null, + specifier: dependency.specifier, + attributes: dependency.attributes, + phase: 'evaluation', + }))); this._bindings = Object.create(null); this._names = []; this._exportBindings = []; @@ -2924,6 +2930,11 @@ export class SourceTextModule { return this._dependencySpecifiers; } + get moduleRequests() { + requireVmModuleThis(this); + return this._moduleRequests; + } + async link(linker) { if (typeof linker !== 'function') { throwInvalidArgType('linker', 'function', linker); @@ -3143,7 +3154,8 @@ export class SyntheticModule { this[vmModuleInstanceBrandSymbol] = true; this._context = this._options.context; this._identifier = this._options.identifier || 'vm:module(0)'; - this._status = 'unlinked'; + // A synthetic module has no dependencies, so Node 26 instantiates it on construction. + this._status = 'linked'; this._error = undefined; this._dependencySpecifiers = Object.freeze([]); this._names = exportNames.slice(); @@ -3179,21 +3191,8 @@ export class SyntheticModule { return this._error; } - async link(linker) { - if (typeof linker !== 'function') { - throwInvalidArgType('linker', 'function', linker); - } - if (this._status === 'linked' || this._status === 'evaluated' || this._status === 'errored') { - const err = new Error('Module has already been linked'); - err.code = 'ERR_VM_MODULE_ALREADY_LINKED'; - throw err; - } - if (this._status !== 'unlinked') { - throw vmModuleStatusError('Module status must be unlinked'); - } - this._status = 'linking'; - await Promise.resolve(); - this._status = 'linked'; + link() { + requireSyntheticModuleThis(this); } setExport(name, value) { @@ -3201,9 +3200,6 @@ export class SyntheticModule { if (typeof name !== 'string') { throw new TypeError('Export name must be a string'); } - if (this._status === 'unlinked' || this._status === 'linking') { - throw vmModuleStatusError('Module status must not be unlinked or linking'); - } const binding = this._bindings[name]; if (binding === undefined) { throw new ReferenceError('Export ' + name + ' is not defined in module'); diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/vm.rs b/crates/wasm-rquickjs/skeleton/src/builtin/vm.rs index 3be6294cb..b7e59c304 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/vm.rs +++ b/crates/wasm-rquickjs/skeleton/src/builtin/vm.rs @@ -140,6 +140,7 @@ fn eval_in_new_context_impl<'js>( "DisposableStack", "Float16Array", "InternalError", + "QuotaExceededError", "SuppressedError", "atob", "btoa", @@ -459,8 +460,10 @@ fn throw_require_async_module<'js>( filename: &str, ) -> rquickjs::Result> { let error_ctor: rquickjs::Function = globals.get("Error")?; + // The CommonJS loader adds the require stack (and drops the hint under + // --experimental-print-required-tla), as Node's ERR_REQUIRE_ASYNC_MODULE does. let msg = format!( - "require() cannot be used on an ESM graph with top-level await. Use import() instead. Module: {}", + "require() cannot be used on an ESM graph with top-level await. Use import() instead. To see where the top-level await comes from, use --experimental-print-required-tla.\nRequired module: {}", filename ); let error_obj: rquickjs::Object = error_ctor.call((&msg,))?; diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/web-crypto.js b/crates/wasm-rquickjs/skeleton/src/builtin/web-crypto.js index 8ddf596a8..f09cee82d 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/web-crypto.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/web-crypto.js @@ -1,7 +1,8 @@ import { registerCloneAdapter } from '__wasm_rquickjs_builtin/internal/clone_policy'; import * as webCryptoNative from '__wasm_rquickjs_builtin/web_crypto_native' +import { TO_CRYPTO_KEY_ALGORITHM_NAMES } from '__wasm_rquickjs_builtin/internal/crypto/util'; import Transform from '__wasm_rquickjs_builtin/internal/streams/transform' -import { DOMException } from '__wasm_rquickjs_builtin/abort_controller' +import { DOMException, QuotaExceededError } from '__wasm_rquickjs_builtin/abort_controller' import { ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS, ERR_CRYPTO_INVALID_DIGEST, @@ -166,13 +167,31 @@ function isAnyArrayBuffer(data) { return data instanceof ArrayBuffer || data instanceof SharedArrayBuffer; } +const intrinsicGetter = (proto, name) => Function.prototype.call.bind(Object.getOwnPropertyDescriptor(proto, name).get); +const TypedArrayPrototype = Object.getPrototypeOf(Uint8Array.prototype); +const typedArrayBuffer = intrinsicGetter(TypedArrayPrototype, 'buffer'); +const typedArrayByteOffset = intrinsicGetter(TypedArrayPrototype, 'byteOffset'); +const typedArrayByteLength = intrinsicGetter(TypedArrayPrototype, 'byteLength'); +const dataViewBuffer = intrinsicGetter(DataView.prototype, 'buffer'); +const dataViewByteOffset = intrinsicGetter(DataView.prototype, 'byteOffset'); +const dataViewByteLength = intrinsicGetter(DataView.prototype, 'byteLength'); + +// Read the view's real backing range, as Node does, so user-defined +// `buffer`/`byteOffset`/`byteLength` properties cannot change it. +function viewBytes(view) { + if (view instanceof DataView) { + return new Uint8Array(dataViewBuffer(view), dataViewByteOffset(view), dataViewByteLength(view)); + } + return new Uint8Array(typedArrayBuffer(view), typedArrayByteOffset(view), typedArrayByteLength(view)); +} + function toHkdfByteSource(data, name) { if (typeof data === 'string') { return toBytes(data); } if (ArrayBuffer.isView(data)) { - return new Uint8Array(data.buffer, data.byteOffset, data.byteLength); + return viewBytes(data); } if (isAnyArrayBuffer(data)) { @@ -461,7 +480,7 @@ function trackCipherOutputEncoding(currentEncoding, outputEncoding) { throw new ERR_UNKNOWN_ENCODING(outputEncoding); } if (currentEncoding !== null && currentEncoding !== normalizedEncoding) { - throw new Error('Cannot change encoding'); + throw new ERR_INVALID_ARG_VALUE('outputEncoding', outputEncoding, `cannot be changed from '${currentEncoding}'`); } return normalizedEncoding; } @@ -656,12 +675,23 @@ function isIntegerTypedArray(value) { value instanceof BigUint64Array; } +const kGetRandomValuesPrefix = "Failed to execute 'getRandomValues' on 'Crypto'"; + +function codedTypeError(message, code) { + const err = new TypeError(message); + err.code = code; + return err; +} + export function getRandomValues(typedArray) { + if (!ArrayBuffer.isView(typedArray)) { + throw codedTypeError(`${kGetRandomValuesPrefix}: 1st argument is not an ArrayBufferView.`, 'ERR_INVALID_ARG_TYPE'); + } if (!isIntegerTypedArray(typedArray)) { - throw new DOMException('The provided value is not of type \'(Int8Array or Int16Array or Int32Array or Uint8Array or Uint16Array or Uint32Array or Uint8ClampedArray or Float32Array or Float64Array or DataView or BigInt64Array or BigUint64Array)\'', 'TypeMismatchError'); + throw new DOMException('The data argument must be an integer-type TypedArray', 'TypeMismatchError'); } if (typedArray.byteLength > 65536) { - throw new DOMException('The ArrayBufferView\'s byte length (' + typedArray.byteLength + ') exceeds the number of bytes of entropy available via this API (65536)', 'QuotaExceededError'); + throw new QuotaExceededError('The requested length exceeds 65,536 bytes'); } // Use a plain Uint8Array view to randomize the underlying buffer, // which works for all integer typed array types including Buffer subclasses @@ -1788,9 +1818,28 @@ function parseAeadOptions(algorithm, options) { }; } +// Node 26 options.xtsStandard selects the SM4-XTS tweak standard. The +// runtime has no SM4-XTS cipher, so a valid value is unsupported for every +// cipher it has. +function validateXtsStandard(options) { + if (options === null || options === undefined) return; + const xtsStandard = options.xtsStandard; + if (xtsStandard === undefined || xtsStandard === null) return; + if (typeof xtsStandard !== 'string') { + throw new ERR_INVALID_ARG_TYPE('options.xtsStandard', 'string', xtsStandard); + } + if (xtsStandard !== 'GB' && xtsStandard !== 'IEEE') { + throw new ERR_INVALID_ARG_VALUE('options.xtsStandard', xtsStandard, "must be one of: 'GB', 'IEEE'"); + } + const err = new Error('xtsStandard is only supported for XTS ciphers'); + err.code = 'ERR_CRYPTO_UNSUPPORTED_OPERATION'; + throw err; +} + function Cipheriv(algorithm, key, iv, options) { if (!(this instanceof Cipheriv)) return new Cipheriv(algorithm, key, iv, options); this._algorithm = normalizeCipherAlgorithm(algorithm); + validateXtsStandard(options); this._aeadConfig = parseAeadOptions(this._algorithm, options); this._authTagLength = this._aeadConfig.authTagLength; this._authTagLengthExplicit = this._aeadConfig.hasAuthTagLength; @@ -1968,7 +2017,9 @@ function validateDecipherAuthTagLength(decipher, actualLength) { if (actualLength !== decipher._authTagLength) { throwInvalidAuthTagLength(actualLength); } - } else if (!isValidGcmAuthTagLength(actualLength)) { + } else if (actualLength !== 16) { + // Node 26 removed implicit short GCM tags (DEP0182): without + // authTagLength, only a full 16-byte tag is accepted. throwInvalidAuthTagLength(actualLength); } return; @@ -1984,6 +2035,7 @@ function validateDecipherAuthTagLength(decipher, actualLength) { function Decipheriv(algorithm, key, iv, options) { if (!(this instanceof Decipheriv)) return new Decipheriv(algorithm, key, iv, options); this._algorithm = normalizeCipherAlgorithm(algorithm); + validateXtsStandard(options); this._aeadConfig = parseAeadOptions(this._algorithm, options); this._authTagLength = this._aeadConfig.authTagLength; this._authTagLengthExplicit = this._aeadConfig.hasAuthTagLength; @@ -2072,11 +2124,11 @@ Decipheriv.prototype.final = function(outputEncoding) { } throw createWrongFinalBlockLengthError(); } - const err = new Error( - isMissingTag - ? 'Unsupported state or unable to authenticate data' - : 'Decipher final failed (possibly wrong key, IV, or auth tag)' - ); + if (this._aeadConfig.mode !== null) { + // Node reports a missing or mismatched AEAD tag with OpenSSL's generic message and no code. + throw new Error('Unsupported state or unable to authenticate data'); + } + const err = new Error('Decipher final failed (possibly wrong key, IV, or auth tag)'); err.code = 'ERR_CRYPTO_INVALID_STATE'; throw err; } @@ -2347,9 +2399,12 @@ DiffieHellman.prototype.computeSecret = function(otherPublicKey, inputEncoding, const pubBytes = toBytes(otherPublicKey, inputEncoding); const result = webCryptoNative.dh_compute_secret_err(this._handle, pubBytes); if (result[0] === 'error') { - const err = new Error(result[1]); - err.message = result[1]; - throw err; + if (result[1] === 'Supplied key is too small' || result[1] === 'Supplied key is too large') { + const err = new RangeError(result[1]); + err.code = 'ERR_CRYPTO_INVALID_KEYLEN'; + throw err; + } + throw new Error(result[1]); } const hexStr = result[1]; const bytes = new Uint8Array(hexStr.length / 2); @@ -2472,6 +2527,12 @@ export function getDiffieHellman(name) { // ===== ECDH ===== +function createInvalidCurveError(curve) { + const err = new Error('Invalid curve: ' + curve); + err.code = 'ERR_CRYPTO_INVALID_CURVE'; + return err; +} + function ECDH(curve) { if (!(this instanceof ECDH)) return new ECDH(curve); if (typeof curve !== 'string') { @@ -2481,9 +2542,7 @@ function ECDH(curve) { } const handle = webCryptoNative.ecdh_create(curve); if (handle === null || handle === undefined) { - const err = new Error('Invalid curve: ' + curve); - err.code = 'ERR_CRYPTO_INVALID_CURVE'; - throw err; + throw createInvalidCurveError(curve); } this._handle = handle; } @@ -2798,24 +2857,6 @@ export function setFips(_val) { export const fips = false; -const TO_CRYPTO_KEY_ALGORITHM_NAMES = { - 'AES-CTR': 'AES-CTR', - 'AES-CBC': 'AES-CBC', - 'AES-GCM': 'AES-GCM', - 'AES-KW': 'AES-KW', - 'PBKDF2': 'PBKDF2', - 'HKDF': 'HKDF', - 'HMAC': 'HMAC', - 'ED25519': 'Ed25519', - 'ED448': 'Ed448', - 'X25519': 'X25519', - 'X448': 'X448', - 'RSASSA-PKCS1-V1_5': 'RSASSA-PKCS1-v1_5', - 'RSA-PSS': 'RSA-PSS', - 'RSA-OAEP': 'RSA-OAEP', - 'ECDH': 'ECDH', - 'ECDSA': 'ECDSA', -}; const KEY_OBJECT_TYPES = new Set(['secret', 'public', 'private']); const PRIVATE_KEY_CACHE = new Map(); @@ -2853,6 +2894,179 @@ function createInvalidKeyObjectTypeError(type_) { return err; } +// Output encoding of KeyObject#export and generateKeyPair, as Node's parseKeyEncoding validates it +// (lib/internal/crypto/keys.js). `objName` prefixes the option names in errors. The raw key formats +// are not parsed here; callers handle them before calling this. +function parseKeyOutputEncoding(enc, asymmetricKeyType, isPublic, objName) { + const { format, type } = enc; + if (format !== 'pem' && format !== 'der' && format !== 'jwk') { + throw new ERR_INVALID_ARG_VALUE(`${objName}.format`, format); + } + if (type !== undefined || format !== 'jwk') { + if (type === 'pkcs1') { + if (asymmetricKeyType !== 'rsa') { + throw new ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS(type, 'can only be used for RSA keys'); + } + } else if (type === 'sec1' && !isPublic) { + if (asymmetricKeyType !== 'ec') { + throw new ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS(type, 'can only be used for EC keys'); + } + } else if (!(type === 'spki' && isPublic) && !(type === 'pkcs8' && !isPublic)) { + throw new ERR_INVALID_ARG_VALUE(`${objName}.type`, type); + } + } + if (isPublic) { + return { format, type }; + } + const { cipher, passphrase } = enc; + if (cipher != null) { + if (typeof cipher !== 'string') { + throw new ERR_INVALID_ARG_VALUE(`${objName}.cipher`, cipher); + } + if (format === 'der' && (type === 'pkcs1' || type === 'sec1')) { + throw new ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS(type, 'does not support encryption'); + } + if (!isStringOrBufferLike(passphrase)) { + throw new ERR_INVALID_ARG_VALUE(`${objName}.passphrase`, passphrase); + } + } else if (passphrase !== undefined) { + throw new ERR_INVALID_ARG_VALUE(`${objName}.cipher`, cipher, 'is required when a passphrase is specified'); + } + return { format, type, cipher, passphrase }; +} + +function isRawKeyFormat(format) { + return format === 'raw-public' || format === 'raw-private' || format === 'raw-seed'; +} + +// Raw key formats (Node 24+): bare key bytes for OKP and EC keys. They are +// converted to and from the DER and JWK encodings the native layer supports. +const RAW_EC_CURVES = { + 'P-256': [0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07], + 'secp256k1': [0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x0a], + 'P-384': [0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x22], + 'P-521': [0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x23], +}; +const RAW_EC_CURVE_ALIASES = { + 'prime256v1': 'P-256', 'secp256r1': 'P-256', 'P-256': 'P-256', + 'secp256k1': 'secp256k1', + 'secp384r1': 'P-384', 'P-384': 'P-384', + 'secp521r1': 'P-521', 'P-521': 'P-521', +}; +const RAW_EC_ECDH_NAMES = { + 'P-256': 'prime256v1', 'secp256k1': 'secp256k1', 'P-384': 'secp384r1', 'P-521': 'secp521r1', +}; +const EC_PUBLIC_KEY_OID = [0x06, 0x07, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x02, 0x01]; + +function derTlv(tag, content) { + const n = content.length; + const len = n < 0x80 ? [n] : n < 0x100 ? [0x81, n] : [0x82, n >> 8, n & 0xff]; + return [tag, ...len, ...content]; +} + +function rawKeyBuffer(bytes) { + return Buffer.from(bytes); +} + +function exportRawKey(key, format, type_) { + const keyType = key.asymmetricKeyType; + if (key._type === 'secret' || format === 'raw-seed' || + (format === 'raw-private' && key._type !== 'private')) { + throw new ERR_INVALID_ARG_VALUE('options.format', format); + } + const okp = OKP_TYPE_INFO[keyType]; + if (okp) { + // The key bytes end both the PKCS#8 and the SPKI encoding. + if (format === 'raw-private') { + const der = new Uint8Array(key.export({ format: 'der', type: 'pkcs8' })); + return rawKeyBuffer(der.slice(der.length - okp.privateLength)); + } + const pub = key._type === 'public' ? key : createPublicKey(key); + const der = new Uint8Array(pub.export({ format: 'der', type: 'spki' })); + return rawKeyBuffer(der.slice(der.length - okp.publicLength)); + } + if (keyType === 'ec') { + const jwk = key.export({ format: 'jwk' }); + if (format === 'raw-private') { + return rawKeyBuffer(base64UrlToBytes(jwk.d)); + } + const x = base64UrlToBytes(jwk.x); + const y = base64UrlToBytes(jwk.y); + if (type_ === 'compressed') { + return rawKeyBuffer([0x02 | (y[y.length - 1] & 1), ...x]); + } + if (type_ !== undefined && type_ !== null && type_ !== 'uncompressed') { + throw new ERR_INVALID_ARG_VALUE('options.type', type_); + } + return rawKeyBuffer([0x04, ...x, ...y]); + } + throw new ERR_INVALID_ARG_VALUE('options.format', format); +} + +function importRawKey(key, isPrivate) { + const { format, asymmetricKeyType: keyType } = key; + if (format === 'raw-seed' || (format === 'raw-private') !== isPrivate) { + throw new ERR_INVALID_ARG_VALUE('key.format', format); + } + const bytes = [...toBytes(key.key)]; + const okp = OKP_TYPE_INFO[keyType]; + if (okp) { + const length = isPrivate ? okp.privateLength : okp.publicLength; + if (bytes.length !== length) { + throw new ERR_INVALID_ARG_VALUE('key.key', key.key); + } + const der = Buffer.from([...(isPrivate ? okp.privatePrefix : okp.publicPrefix), ...bytes]); + return isPrivate + ? createPrivateKeyFromData(der, 'der', undefined, 'pkcs8') + : createPublicKeyFromData(der, 'der'); + } + if (keyType === 'ec') { + const crv = RAW_EC_CURVE_ALIASES[key.namedCurve]; + if (crv === undefined) { + throw new ERR_INVALID_ARG_VALUE('key.namedCurve', key.namedCurve); + } + const oid = RAW_EC_CURVES[crv]; + let point = bytes; + if (isPrivate) { + if (crv === 'P-521') { + if (bytes.length !== 66) { + throw new ERR_INVALID_ARG_VALUE('key.key', key.key); + } + if (!webCryptoNative.p521_supported()) { + throw createInvalidCurveError(RAW_EC_ECDH_NAMES[crv]); + } + point = webCryptoNative.p521_raw_public_key(new Uint8Array(bytes)); + if (point === null || point === undefined) { + throw new ERR_INVALID_ARG_VALUE('key.key', key.key); + } + } else { + const ecdh = createECDH(RAW_EC_ECDH_NAMES[crv]); + ecdh.setPrivateKey(Buffer.from(bytes)); + point = [...ecdh.getPublicKey(undefined, 'uncompressed')]; + } + } + if (point[0] === 0x04) { + const size = (point.length - 1) / 2; + const jwk = { + kty: 'EC', crv, + x: bytesToBase64Url(new Uint8Array(point.slice(1, 1 + size))), + y: bytesToBase64Url(new Uint8Array(point.slice(1 + size))), + }; + if (isPrivate) { + jwk.d = bytesToBase64Url(new Uint8Array(bytes)); + return createPrivateKeyFromData(jwk, 'jwk'); + } + return createPublicKeyFromData(jwk, 'jwk'); + } + const der = derTlv(0x30, [ + ...derTlv(0x30, [...EC_PUBLIC_KEY_OID, ...oid]), + ...derTlv(0x03, [0x00, ...bytes]), + ]); + return createPublicKeyFromData(Buffer.from(der), 'der'); + } + throw new ERR_INVALID_ARG_VALUE('key.asymmetricKeyType', keyType); +} + // ===== KeyObject ===== class KeyObject { @@ -2939,6 +3153,16 @@ class KeyObject { } export(options) { + if (options !== null && typeof options === 'object' && isRawKeyFormat(options.format)) { + return exportRawKey(this, options.format, options.type); + } + // Private encodings are never valid for a public key, including the + // derived and JWK-backed public keys exported by the custom paths. + if (this._type === 'public' && options !== null && typeof options === 'object' && + (options.format === 'pem' || options.format === 'der') && + (options.type === 'pkcs8' || options.type === 'sec1')) { + throw new ERR_INVALID_ARG_VALUE('options.type', options.type); + } if (this._customData) { const customExport = tryExportCustomKeyObject(this, options); if (customExport !== undefined) { @@ -2972,17 +3196,17 @@ class KeyObject { throw new ERR_INVALID_ARG_TYPE('options', 'object', options); } - const format = options.format || (options.type ? 'pem' : 'der'); - const type_ = options.type || null; - - if (format === 'jwk' && (options.passphrase !== undefined || options.cipher !== undefined)) { - throw new ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS('jwk', 'does not support encryption'); + const isPublic = this._type === 'public'; + let format = options.format; + if (!isPublic && options.passphrase !== undefined && format !== 'pem' && format !== 'der') { + throw new ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS(format, 'does not support encryption'); } - - if (options.passphrase !== undefined && options.cipher === undefined) { - const err = new TypeError("The property 'options.cipher' is invalid. Received undefined"); - err.code = 'ERR_INVALID_ARG_VALUE'; - throw err; + let type_ = options.type || null; + let cipher; + let passphrase; + if (!isRawKeyFormat(format) && format !== 'jwk') { + ({ format, type: type_, cipher, passphrase } = + parseKeyOutputEncoding(options, this.asymmetricKeyType, isPublic, 'options')); } // JWK export @@ -3003,10 +3227,11 @@ class KeyObject { throw new Error('Failed to export key as JWK'); } - // Encrypted PEM export - if (options.cipher && options.passphrase !== undefined) { - const passBytes = toBytes(options.passphrase); - const result = webCryptoNative.key_export_encrypted(this._handle, format, type_ || 'pkcs8', options.cipher, passBytes); + // Encrypted private key export + if (cipher != null) { + const cipherName = normalizeCipherAlgorithm(cipher); + const passBytes = toBytes(passphrase); + const result = webCryptoNative.key_export_encrypted(this._handle, format, type_, cipherName, passBytes); if (result === null || result === undefined) { throw new Error('Failed to export encrypted key'); } @@ -3094,12 +3319,20 @@ class KeyObject { ensureAllowedCryptoKeyUsages( usages, new Set(['deriveBits', 'deriveKey']), - 'Unsupported key usage for an HKDF key', + 'Unsupported key usage for a HKDF key', ); cryptoAlgorithm = { name: 'HKDF' }; } else if (normalizedAlgorithm.upperName === 'HMAC') { const requestedLength = getRequestedHmacLength(algorithm, keyLengthBits); - if (requestedLength === 0 || keyLengthBits === 0) { + if (requestedLength === 0 && typeof algorithm === 'object' && algorithm.length !== undefined) { + throw createDataError('HmacImportParams.length cannot be 0'); + } + ensureAllowedCryptoKeyUsages( + usages, + new Set(['sign', 'verify']), + 'Unsupported key usage for HMAC key', + ); + if (keyLengthBits === 0) { throw createDataError('Zero-length key is not supported'); } if (requestedLength !== keyLengthBits) { @@ -3112,11 +3345,6 @@ class KeyObject { if (usages.length === 0) { throw createSyntaxError('Usages cannot be empty when importing a secret key.'); } - ensureAllowedCryptoKeyUsages( - usages, - new Set(['sign', 'verify']), - 'Unsupported key usage for an HMAC key', - ); cryptoAlgorithm = { name: 'HMAC', hash: { name: normalizeToCryptoKeyHash(algorithm) }, @@ -3236,15 +3464,11 @@ Object.defineProperty(KeyObject.prototype, Symbol.toStringTag, { export { KeyObject }; function createDataError(message) { - const err = new Error(message); - err.name = 'DataError'; - return err; + return new DOMException(message, 'DataError'); } function createSyntaxError(message) { - const err = new Error(message); - err.name = 'SyntaxError'; - return err; + return new DOMException(message, 'SyntaxError'); } function normalizeToCryptoKeyAlgorithm(algorithm) { @@ -5017,11 +5241,44 @@ function exportDsaCustomKeyObject(keyObject, options) { throw err; } const dsa = keyObject._customData.dsa; + if (keyObject._type === 'private' && (options.type === 'pkcs8' || options.cipher != null)) { + const der = dsaPrivateDerToPkcs8(dsa.der); + if (options.cipher != null) { + const encrypted = webCryptoNative.encrypt_pkcs8_der( + der, normalizeCipherAlgorithm(options.cipher), toBytes(options.passphrase)); + if (encrypted === null || encrypted === undefined) { + throw new Error('Failed to export encrypted key'); + } + if (format === 'pem') return encodeDerAsPem('ENCRYPTED PRIVATE KEY', new Uint8Array(encrypted)); + return toBinaryOutput(new Uint8Array(encrypted)); + } + if (format === 'pem') return encodeDerAsPem('PRIVATE KEY', der); + return toBinaryOutput(der); + } if (format === 'pem') return dsa.pem; if (format === 'der') return toBinaryOutput(dsa.der); return undefined; } +// Converts an OpenSSL traditional DSA private key (SEQUENCE of version, p, q, g, y, x) +// to PKCS#8; PKCS#8 input is returned unchanged. +function dsaPrivateDerToPkcs8(der) { + const root = readAsn1Element(der, 0); + const top = readAsn1Children(der, root.valueStart, root.valueEnd); + if (top.length !== 6 || !top.every((element) => element.tag === 0x02)) { + return der; + } + const tlv = (element) => der.slice(element.start, element.nextOffset); + return encodeAsn1Sequence([ + encodeAsn1Integer(new Uint8Array([0])), + encodeAsn1Sequence([ + encodeAsn1Oid(DSA_OID), + encodeAsn1Sequence([tlv(top[1]), tlv(top[2]), tlv(top[3])]), + ]), + encodeAsn1OctetString(tlv(top[5])), + ]); +} + const PSS_HASH_OIDS = { '1.3.14.3.2.26': 'sha1', '2.16.840.1.101.3.4.2.1': 'sha256', @@ -5684,10 +5941,12 @@ export function createPrivateKey(key) { throw new ERR_INVALID_ARG_TYPE('key.key', ['string', 'ArrayBuffer', 'Buffer', 'TypedArray', 'DataView'], innerKey); } const format = key.format || 'pem'; + if (isRawKeyFormat(format)) { + return importRawKey(key, true); + } if (format === 'der' && key.type !== undefined && key.type !== 'pkcs1' && key.type !== 'pkcs8' && key.type !== 'sec1') { - const err = new TypeError("The property 'options.type' is invalid. Received '" + key.type + "'"); - err.code = 'ERR_INVALID_ARG_VALUE'; - throw err; + // Node 26 names input encoding options after the `key` argument. + throw new ERR_INVALID_ARG_VALUE('key.type', key.type); } const normalizedKeyData = normalizeAsymmetricKeyDataForEncoding(innerKey, format, key.encoding); const normalizedPassphrase = normalizeAsymmetricPassphraseForEncoding(key.passphrase, key.encoding); @@ -5793,6 +6052,12 @@ export function createPublicKey(key) { throw new ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE(key.key.type, 'private'); } const format = key.format || 'pem'; + if (format === 'raw-private') { + return createPublicKey(importRawKey(key, true)); + } + if (isRawKeyFormat(format)) { + return importRawKey(key, false); + } const normalizedKeyData = normalizeAsymmetricKeyDataForEncoding(key.key, format, key.encoding); const normalizedPassphrase = normalizeAsymmetricPassphraseForEncoding(key.passphrase, key.encoding); return createPublicKeyFromData(normalizedKeyData, format, normalizedPassphrase); @@ -5861,6 +6126,9 @@ function base64UrlToBytes(value) { function normalizeDiffieHellmanPublicKey(key) { if (key instanceof KeyObject) { + if (key.type !== 'public' && key.type !== 'private') { + throw new ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE(key.type, 'private or public'); + } if (key.type === 'private') { return createPublicKey(key); } @@ -5871,10 +6139,8 @@ function normalizeDiffieHellmanPublicKey(key) { function normalizeDiffieHellmanPrivateKey(key) { if (key instanceof KeyObject) { - if (key.type === 'public') { - const err = new TypeError("The property 'options.privateKey' is invalid. Received a public key"); - err.code = 'ERR_INVALID_ARG_VALUE'; - throw err; + if (key.type !== 'private') { + throw new ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE(key.type, 'private'); } return key; } @@ -5997,17 +6263,34 @@ function computeMontgomeryDiffieHellman(type_, privateKey, publicKey) { return Buffer.from(secret); } -export function diffieHellman(options) { +export function diffieHellman(options, callback) { if (options === null || typeof options !== 'object' || Array.isArray(options)) { throw createDiffieHellmanOptionsTypeError(options); } + if (callback !== undefined && typeof callback !== 'function') { + throw new ERR_INVALID_ARG_TYPE('callback', 'function', callback); + } if (options.publicKey === undefined) { throw createMissingDiffieHellmanPropertyError('publicKey', options.publicKey); } if (options.privateKey === undefined) { throw createMissingDiffieHellmanPropertyError('privateKey', options.privateKey); } + if (callback === undefined) { + return computeDiffieHellmanSecret(options); + } + // Node 26 runs the derivation as a job and reports its result or error to the callback. + let secret; + try { + secret = computeDiffieHellmanSecret(options); + } catch (err) { + process.nextTick(() => callback(err)); + return; + } + process.nextTick(() => callback(null, secret)); +} +function computeDiffieHellmanSecret(options) { const publicKey = normalizeDiffieHellmanPublicKey(options.publicKey); const privateKey = normalizeDiffieHellmanPrivateKey(options.privateKey); const publicType = publicKey.asymmetricKeyType; @@ -6177,6 +6460,8 @@ function createInvalidKeygenPropertyError(propertyName, value) { return err; } +const KEY_PAIR_TYPES = new Set(['rsa', 'rsa-pss', 'dsa', 'ec', 'ed25519', 'ed448', 'x25519', 'x448', 'dh']); + function createUnsupportedKeyTypeError(type_) { const err = new TypeError(`The argument 'type' must be a supported key type. Received ${formatInvalidArgValue(type_)}`); err.code = 'ERR_INVALID_ARG_VALUE'; @@ -6315,41 +6600,6 @@ function isStringOrBufferLike(value) { return typeof value === 'string' || ArrayBuffer.isView(value) || isAnyArrayBuffer(value); } -function validateGeneratedKeyEncodingFormat(optionName, encodingOptions) { - const format = encodingOptions.format; - if (format !== 'pem' && format !== 'der' && format !== 'jwk') { - throw createInvalidKeygenPropertyError(`${optionName}.format`, format); - } - return format; -} - -function validateGeneratedPublicKeyEncodingType(type_, encodingOptions, format) { - const keyType = encodingOptions.type; - if ((format !== 'jwk' && keyType === undefined) || - (keyType !== undefined && keyType !== 'pkcs1' && keyType !== 'spki')) { - throw createInvalidKeygenPropertyError('publicKeyEncoding.type', keyType); - } - - if (keyType === 'pkcs1' && type_ !== 'rsa') { - throw new ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS('pkcs1', 'can only be used for RSA keys'); - } -} - -function validateGeneratedPrivateKeyEncodingType(type_, encodingOptions, format) { - const keyType = encodingOptions.type; - if ((format !== 'jwk' && keyType === undefined) || - (keyType !== undefined && keyType !== 'pkcs1' && keyType !== 'pkcs8' && keyType !== 'sec1')) { - throw createInvalidKeygenPropertyError('privateKeyEncoding.type', keyType); - } - - if (keyType === 'pkcs1' && type_ !== 'rsa') { - throw new ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS('pkcs1', 'can only be used for RSA keys'); - } - if (keyType === 'sec1' && type_ !== 'ec') { - throw new ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS('sec1', 'can only be used for EC keys'); - } -} - function validateGeneratedPublicKeyEncoding(type_, publicKeyEncoding) { if (publicKeyEncoding == null) { return; @@ -6357,9 +6607,7 @@ function validateGeneratedPublicKeyEncoding(type_, publicKeyEncoding) { if (typeof publicKeyEncoding !== 'object' || Array.isArray(publicKeyEncoding)) { throw createInvalidKeygenPropertyError('publicKeyEncoding', publicKeyEncoding); } - - const format = validateGeneratedKeyEncodingFormat('publicKeyEncoding', publicKeyEncoding); - validateGeneratedPublicKeyEncodingType(type_, publicKeyEncoding, format); + parseKeyOutputEncoding(publicKeyEncoding, type_, true, 'options.publicKeyEncoding'); } function validateGeneratedPrivateKeyEncoding(type_, privateKeyEncoding) { @@ -6369,28 +6617,7 @@ function validateGeneratedPrivateKeyEncoding(type_, privateKeyEncoding) { if (typeof privateKeyEncoding !== 'object' || Array.isArray(privateKeyEncoding)) { throw createInvalidKeygenPropertyError('privateKeyEncoding', privateKeyEncoding); } - - const format = validateGeneratedKeyEncodingFormat('privateKeyEncoding', privateKeyEncoding); - validateGeneratedPrivateKeyEncodingType(type_, privateKeyEncoding, format); - - const cipher = privateKeyEncoding.cipher; - const passphrase = privateKeyEncoding.passphrase; - if (format === 'jwk' && (cipher !== undefined || passphrase !== undefined)) { - throw new ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS('jwk', 'does not support encryption'); - } - if (cipher != null && typeof cipher !== 'string') { - throw createInvalidKeygenPropertyError('privateKeyEncoding.cipher', cipher); - } - if (cipher == null && passphrase !== undefined) { - throw createInvalidKeygenPropertyError('privateKeyEncoding.cipher', cipher); - } - if (cipher != null && !isStringOrBufferLike(passphrase)) { - throw createInvalidKeygenPropertyError('privateKeyEncoding.passphrase', passphrase); - } - if (cipher != null && format === 'der' && - (privateKeyEncoding.type === 'pkcs1' || privateKeyEncoding.type === 'sec1')) { - throw new ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS(privateKeyEncoding.type, 'does not support encryption'); - } + const { cipher } = parseKeyOutputEncoding(privateKeyEncoding, type_, false, 'options.privateKeyEncoding'); if (cipher != null) { privateKeyEncoding.cipher = normalizeCipherAlgorithm(cipher); } @@ -6530,6 +6757,10 @@ export function generateKeyPair(type_, options, callback) { } options = normalizeGenerateKeyPairOptions(type_, options); + // Node validates the key type synchronously; only generation failures reach the callback. + if (!KEY_PAIR_TYPES.has(type_)) { + throw createUnsupportedKeyTypeError(type_); + } if (type_ === 'rsa' || type_ === 'rsa-pss') { if (type_ === 'rsa-pss') { validateRsaPssKeyPairOptions(options); @@ -6825,12 +7056,21 @@ Sign.prototype._write = function(chunk, encoding, callback) { return Transform.prototype._write.call(this, chunk, encoding, callback); }; +function validateJwkKeyInput(key, name) { + if (key !== null && typeof key === 'object' && key.format === 'jwk' && + (key.key === null || typeof key.key !== 'object')) { + throw new ERR_INVALID_ARG_TYPE(name, 'object', key.key); + } +} + Sign.prototype.sign = function(privateKey, outputEncoding) { if (privateKey === null || privateKey === undefined) { const err = new Error('No key provided to sign'); err.code = 'ERR_CRYPTO_SIGN_KEY_REQUIRED'; throw err; } + // Sign.prototype.sign names its key argument privateKey in validation errors. + validateJwkKeyInput(privateKey, 'privateKey.key'); let keyObj; let padding; let saltLength; @@ -7029,6 +7269,23 @@ Verify.prototype._write = function(chunk, encoding, callback) { return Transform.prototype._write.call(this, chunk, encoding, callback); }; +// Node verifies with a private key as given. A DH private key has no derivable public +// KeyObject here, so return it to reach the unsupported key type error. +function createVerifyKey(key) { + try { + return createPublicKey(key); + } catch (err) { + let privateKey; + try { + privateKey = createPrivateKey(key); + } catch { + throw err; + } + if (privateKey.asymmetricKeyType === 'dh') return privateKey; + throw err; + } +} + Verify.prototype.verify = function(publicKey, signature, signatureEncoding) { if (publicKey === null || publicKey === undefined) { const err = new Error('No key provided to verify'); @@ -7054,10 +7311,10 @@ Verify.prototype.verify = function(publicKey, signature, signatureEncoding) { const privKey = createPrivateKey(publicKey); keyObj = createPublicKey(privKey); } else { - keyObj = createPublicKey(publicKey); + keyObj = createVerifyKey(publicKey); } } else { - keyObj = createPublicKey(publicKey); + keyObj = createVerifyKey(publicKey); } let sigBytes = toBytes(signature, signatureEncoding); @@ -7167,6 +7424,27 @@ export function createVerify(algorithm) { return new Verify(algorithm); } +// Ed25519ctx/Ed448 context strings need OpenSSL 3.2 in Node.js; this +// runtime has no context support, so only an empty context is accepted. +function validateSignContext(options) { + if (options === null || typeof options !== 'object' || options.context === undefined) { + return; + } + if (!ArrayBuffer.isView(options.context)) { + throw new ERR_INVALID_ARG_TYPE('options.context', ['Buffer', 'TypedArray', 'DataView'], options.context); + } + if (options.context.byteLength > 255) { + const err = new RangeError('context string must be at most 255 bytes'); + err.code = 'ERR_OUT_OF_RANGE'; + throw err; + } + if (options.context.byteLength > 0) { + const err = new Error('Context parameter is unsupported'); + err.code = 'ERR_CRYPTO_OPERATION_FAILED'; + throw err; + } +} + export function sign(algorithm, data, key, callback) { const algo = algorithm !== null && algorithm !== undefined ? String(algorithm).toLowerCase() : null; if (algo !== null && !HASH_ALIASES[algo]) { @@ -7175,14 +7453,16 @@ export function sign(algorithm, data, key, callback) { throw err; } const normalizedData = toBytes(data); + validateSignContext(key); + validateJwkKeyInput(key, 'key.key'); const s = new Sign(algo); s.update(normalizedData); - const result = s.sign(key); - if (callback) { - process.nextTick(() => callback(null, result)); - return; + // A missing key fails synchronously, as in Node.js. + if (!callback || key === null || key === undefined) { + return s.sign(key); } - return result; + const preparedKey = prepareOneShotKey(key, createPrivateKey, createPrivateKey, ['private'], 'private'); + runOneShotJob(() => s.sign(preparedKey), callback); } export function verify(algorithm, data, key, signature, callback) { @@ -7192,17 +7472,64 @@ export function verify(algorithm, data, key, signature, callback) { v.update(normalizedData); // Match Node.js one-shot verify() validation order: signature type is - // validated before key parsing. - if (!ArrayBuffer.isView(signature)) { - throw new ERR_INVALID_ARG_TYPE('signature', ['Buffer', 'TypedArray', 'DataView'], signature); + // validated before key parsing. Node 26 also accepts strings (UTF-8) and + // ArrayBuffers, like getArrayBufferOrView(). + if (typeof signature === 'string') { + signature = Buffer.from(signature, 'utf8'); + } else if (isAnyArrayBuffer(signature)) { + signature = new Uint8Array(signature); + } else if (!ArrayBuffer.isView(signature)) { + throw new ERR_INVALID_ARG_TYPE('signature', ['string', 'ArrayBuffer', 'Buffer', 'TypedArray', 'DataView'], signature); + } + validateSignContext(key); + + if (!callback || key === null || key === undefined) { + return v.verify(key, signature); + } + const preparedKey = prepareOneShotKey( + key, + createPublicKey, + (k) => (k.passphrase !== undefined ? createPublicKey(createPrivateKey(k)) : createPublicKey(k)), + ['public', 'private'], + 'private or public'); + runOneShotJob(() => v.verify(preparedKey, signature), callback); +} + +// Node.js validates one-shot sign()/verify() options, parses the key and +// checks its type synchronously; only errors of the signing job itself reach +// the callback. The job gets the options read here, including inherited ones. +function prepareOneShotKey(key, fromKey, fromKeyOptions, allowedTypes, expectedType) { + let keyObject; + let padding; + let saltLength; + let dsaEncoding; + if (key instanceof KeyObject) { + dsaEncoding = getDsaSignatureEncoding(key); + keyObject = key; + } else if (typeof key === 'object' && key.key !== undefined) { + padding = getSignVerifyIntOption('padding', key); + saltLength = getSignVerifyIntOption('saltLength', key); + dsaEncoding = getDsaSignatureEncoding(key); + keyObject = key.key instanceof KeyObject ? key.key : fromKeyOptions(key); + } else { + dsaEncoding = getDsaSignatureEncoding(key); + keyObject = fromKey(key); } + if (!allowedTypes.includes(keyObject.type)) { + throw new ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE(keyObject.type, expectedType); + } + return { key: keyObject, padding, saltLength, dsaEncoding }; +} - const result = v.verify(key, signature); - if (callback) { - process.nextTick(() => callback(null, result)); - return; +function runOneShotJob(job, callback) { + let error = null; + let result; + try { + result = job(); + } catch (err) { + error = err; } - return result; + process.nextTick(() => (error ? callback(error) : callback(null, result))); } function hashOneShotBytes(algorithm, data) { @@ -7815,23 +8142,30 @@ function concatBytesParts(...parts) { return result; } -function throwInvalidAccessError() { - throw new DOMException('The requested operation is not valid for the provided key', 'InvalidAccessError'); -} - function throwOperationError() { throw new DOMException('The operation failed for an operation-specific reason', 'OperationError'); } +const HMAC_JWK_ALGS = { 'SHA-1': 'HS1', 'SHA-256': 'HS256', 'SHA-384': 'HS384', 'SHA-512': 'HS512' }; + +// JWK "alg" for an HMAC hash; undefined for hashes without a registered value, such as SHA-3. +function getHmacJwkAlg(algorithm) { + return HMAC_JWK_ALGS[normalizeToCryptoKeyHash(algorithm)]; +} + +function throwUnusableKeyError(usage) { + throw new DOMException(`Unable to use this key to ${usage}`, 'InvalidAccessError'); +} + function validateKeyUsage(key, usage) { if (!key || !key._usages || !key._usages.includes(usage)) { - throwInvalidAccessError(); + throwUnusableKeyError(usage); } } function validateKeyAlgorithm(key, algorithmName) { if (!key || !key._algorithm || key._algorithm.name.toUpperCase() !== algorithmName.toUpperCase()) { - throwInvalidAccessError(); + throw new DOMException('Key algorithm mismatch', 'InvalidAccessError'); } } @@ -8080,7 +8414,7 @@ class SubtleCrypto { } for (const u of keyUsages) { if (u !== 'sign' && u !== 'verify') { - throw new DOMException('Unsupported key usage for an HMAC key', 'SyntaxError'); + throw new DOMException('Unsupported key usage for HMAC key', 'SyntaxError'); } } if (keyUsages.length === 0) { @@ -8346,6 +8680,12 @@ class SubtleCrypto { throw createDataError('Invalid keyData'); } if (keyData.kty === 'oct') { + if (name === 'HMAC' && keyData.alg !== undefined) { + const expected = getHmacJwkAlg(algorithm); + if (expected !== undefined && keyData.alg !== expected) { + throw createDataError('JWK "alg" does not match the requested algorithm'); + } + } const raw = base64UrlToBytes(keyData.k); const secretKey = createSecretKey(raw); return secretKey.toCryptoKey(algorithm, extractable, keyUsages); @@ -8397,6 +8737,10 @@ class SubtleCrypto { } jwk.key_ops = [...key._usages]; jwk.ext = key._extractable; + if (key._algorithm.name === 'HMAC') { + const alg = getHmacJwkAlg(key._algorithm); + if (alg !== undefined) jwk.alg = alg; + } return jwk; } if (format === 'spki') { @@ -8422,14 +8766,14 @@ class SubtleCrypto { } const name = algoName.toUpperCase(); + validateKeyAlgorithm(key, algoName); if (name === 'AES-KW') { if (!key._usages.includes('wrapKey') && !key._usages.includes('encrypt')) { - throwInvalidAccessError(); + throwUnusableKeyError('encrypt'); } } else { validateKeyUsage(key, 'encrypt'); } - validateKeyAlgorithm(key, algoName); const dataBytes = toBytes(data); if (name === 'AES-KW') { @@ -8502,14 +8846,14 @@ class SubtleCrypto { } const name = algoName.toUpperCase(); + validateKeyAlgorithm(key, algoName); if (name === 'AES-KW') { if (!key._usages.includes('unwrapKey') && !key._usages.includes('decrypt')) { - throwInvalidAccessError(); + throwUnusableKeyError('decrypt'); } } else { validateKeyUsage(key, 'decrypt'); } - validateKeyAlgorithm(key, algoName); const dataBytes = toBytes(data); try { @@ -8678,6 +9022,9 @@ class Crypto { getRandomValues(array) { assertCrypto(this); + if (arguments.length < 1) { + throw codedTypeError(`${kGetRandomValuesPrefix}: 1 argument required, but only 0 present.`, 'ERR_MISSING_ARGS'); + } return getRandomValues(array); } diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/web_crypto.rs b/crates/wasm-rquickjs/skeleton/src/builtin/web_crypto.rs index cfbae2414..41790c414 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/web_crypto.rs +++ b/crates/wasm-rquickjs/skeleton/src/builtin/web_crypto.rs @@ -2754,137 +2754,45 @@ impl KeyData { } fn export_sec1_private_der(&self) -> Option> { - match self { - KeyData::EcP256Private(sk) => { - let secret_key = p256::SecretKey::from(sk); - secret_key.to_sec1_der().ok().map(|d| d.to_vec()) - } + // RustCrypto omits the optional curve parameters, which OpenSSL writes and requires + // when it reads SEC1, so add the named curve. + let (der, curve_oid) = match self { + KeyData::EcP256Private(sk) => ( + p256::SecretKey::from(sk).to_sec1_der().ok()?.to_vec(), + "1.2.840.10045.3.1.7", + ), #[cfg(feature = "crypto-full")] - KeyData::EcP384Private(sk) => { - let secret_key = p384::SecretKey::from(sk); - secret_key.to_sec1_der().ok().map(|d| d.to_vec()) - } + KeyData::EcP384Private(sk) => ( + p384::SecretKey::from(sk).to_sec1_der().ok()?.to_vec(), + "1.3.132.0.34", + ), #[cfg(feature = "crypto-full")] - KeyData::EcP521Private(sk) => { - let secret_key = p521::SecretKey::from(sk); - secret_key.to_sec1_der().ok().map(|d| d.to_vec()) - } + KeyData::EcP521Private(sk) => ( + p521::SecretKey::from(sk).to_sec1_der().ok()?.to_vec(), + "1.3.132.0.35", + ), #[cfg(feature = "crypto-full")] - KeyData::EcK256Private(sk) => { - let secret_key = k256::SecretKey::from(sk); - secret_key.to_sec1_der().ok().map(|d| d.to_vec()) - } - _ => None, - } + KeyData::EcK256Private(sk) => ( + k256::SecretKey::from(sk).to_sec1_der().ok()?.to_vec(), + "1.3.132.0.10", + ), + _ => return None, + }; + use sec1::der::{Decode, Encode}; + let mut key = sec1::EcPrivateKey::from_der(&der).ok()?; + key.parameters = Some(sec1::EcParameters::NamedCurve( + sec1::der::asn1::ObjectIdentifier::new(curve_oid).ok()?, + )); + key.to_der().ok() } fn export_sec1_private_pem(&self) -> Option { - match self { - KeyData::EcP256Private(sk) => { - let secret_key = p256::SecretKey::from(sk); - secret_key - .to_sec1_pem(sec1::LineEnding::LF) - .ok() - .map(|s| s.to_string()) - } - #[cfg(feature = "crypto-full")] - KeyData::EcP384Private(sk) => { - let secret_key = p384::SecretKey::from(sk); - secret_key - .to_sec1_pem(sec1::LineEnding::LF) - .ok() - .map(|s| s.to_string()) - } - #[cfg(feature = "crypto-full")] - KeyData::EcP521Private(sk) => { - let secret_key = p521::SecretKey::from(sk); - secret_key - .to_sec1_pem(sec1::LineEnding::LF) - .ok() - .map(|s| s.to_string()) - } - #[cfg(feature = "crypto-full")] - KeyData::EcK256Private(sk) => { - let secret_key = k256::SecretKey::from(sk); - secret_key - .to_sec1_pem(sec1::LineEnding::LF) - .ok() - .map(|s| s.to_string()) - } - _ => None, - } + let der = self.export_sec1_private_der()?; + sec1::der::pem::encode_string("EC PRIVATE KEY", sec1::LineEnding::LF, &der).ok() } - fn export_pkcs8_encrypted_pem(&self, passphrase: &[u8]) -> Option { - use pkcs8::EncodePrivateKey; - match self { - KeyData::EcP256Private(sk) => sk - .to_pkcs8_encrypted_pem(passphrase, pkcs8::LineEnding::LF) - .ok() - .map(|s| s.to_string()), - #[cfg(feature = "crypto-full")] - KeyData::EcP384Private(sk) => sk - .to_pkcs8_encrypted_pem(passphrase, pkcs8::LineEnding::LF) - .ok() - .map(|s| s.to_string()), - #[cfg(feature = "crypto-full")] - KeyData::EcP521Private(sk) => sk - .to_pkcs8_encrypted_pem(passphrase, pkcs8::LineEnding::LF) - .ok() - .map(|s| s.to_string()), - #[cfg(feature = "crypto-full")] - KeyData::EcK256Private(sk) => sk - .to_pkcs8_encrypted_pem(passphrase, pkcs8::LineEnding::LF) - .ok() - .map(|s| s.to_string()), - #[cfg(feature = "crypto-full")] - KeyData::RsaPrivate(sk) => sk - .to_pkcs8_encrypted_pem(passphrase, pkcs8::LineEnding::LF) - .ok() - .map(|s| s.to_string()), - #[cfg(feature = "crypto-full")] - KeyData::DsaPrivate(sk) => sk - .to_pkcs8_encrypted_pem(passphrase, pkcs8::LineEnding::LF) - .ok() - .map(|s| s.to_string()), - _ => None, - } - } - - fn export_pkcs8_encrypted_der(&self, passphrase: &[u8]) -> Option> { - use pkcs8::EncodePrivateKey; - match self { - KeyData::EcP256Private(sk) => sk - .to_pkcs8_encrypted_der(passphrase) - .ok() - .map(|d| d.as_bytes().to_vec()), - #[cfg(feature = "crypto-full")] - KeyData::EcP384Private(sk) => sk - .to_pkcs8_encrypted_der(passphrase) - .ok() - .map(|d| d.as_bytes().to_vec()), - #[cfg(feature = "crypto-full")] - KeyData::EcP521Private(sk) => sk - .to_pkcs8_encrypted_der(passphrase) - .ok() - .map(|d| d.as_bytes().to_vec()), - #[cfg(feature = "crypto-full")] - KeyData::EcK256Private(sk) => sk - .to_pkcs8_encrypted_der(passphrase) - .ok() - .map(|d| d.as_bytes().to_vec()), - #[cfg(feature = "crypto-full")] - KeyData::RsaPrivate(sk) => sk - .to_pkcs8_encrypted_der(passphrase) - .ok() - .map(|d| d.as_bytes().to_vec()), - #[cfg(feature = "crypto-full")] - KeyData::DsaPrivate(sk) => sk - .to_pkcs8_encrypted_der(passphrase) - .ok() - .map(|d| d.as_bytes().to_vec()), - _ => None, - } + fn export_pkcs8_encrypted_der(&self, cipher_name: &str, passphrase: &[u8]) -> Option> { + encrypt_pkcs8_der_impl(&self.export_private_der()?, cipher_name, passphrase) } fn export_jwk(&self) -> Option { @@ -3503,6 +3411,27 @@ fn decrypt_traditional_pem(pem: &str, passphrase: &[u8]) -> Option> { Some(output) } +/// Encrypts a PKCS#8 private key like OpenSSL's `PEM_write_bio_PKCS8PrivateKey`: +/// PBES2 with PBKDF2-HMAC-SHA256 (2048 iterations) and the requested AES-CBC cipher. +fn encrypt_pkcs8_der_impl(der: &[u8], cipher_name: &str, passphrase: &[u8]) -> Option> { + use pkcs8::der::Decode; + use pkcs8::pkcs5::pbes2; + let info = pkcs8::PrivateKeyInfoRef::from_der(der).ok()?; + let mut salt = [0u8; 16]; + let mut iv = [0u8; 16]; + getrandom_04::fill(&mut salt).ok()?; + getrandom_04::fill(&mut iv).ok()?; + let kdf: pbes2::Kdf = pbes2::Pbkdf2Params::hmac_sha256(2048, &salt).ok()?.into(); + let encryption = match cipher_name { + "aes-128-cbc" | "aes128" => pbes2::EncryptionScheme::Aes128Cbc { iv }, + "aes-192-cbc" | "aes192" => pbes2::EncryptionScheme::Aes192Cbc { iv }, + _ => pbes2::EncryptionScheme::Aes256Cbc { iv }, + }; + let params = pbes2::Parameters { kdf, encryption }; + let doc = info.encrypt_with_params(params, passphrase).ok()?; + Some(doc.as_bytes().to_vec()) +} + fn key_export_encrypted_impl( id: u32, format: &str, @@ -3513,9 +3442,14 @@ fn key_export_encrypted_impl( let store = KEY_STORE.lock().unwrap(); let key = store.get(&id)?; match (format, type_) { - ("pem", "pkcs8") => key - .export_pkcs8_encrypted_pem(passphrase) - .map(|s| s.into_bytes()), + ("pem", "pkcs8") => { + let der = key.export_pkcs8_encrypted_der(cipher_name, passphrase)?; + pkcs8::der::Document::try_from(der) + .ok()? + .to_pem("ENCRYPTED PRIVATE KEY", pkcs8::LineEnding::LF) + .ok() + .map(String::into_bytes) + } ("pem", "pkcs1") => { let der = key.export_pkcs1_private_der()?; let encrypted_pem = @@ -3528,7 +3462,7 @@ fn key_export_encrypted_impl( encrypt_traditional_pem(&der, cipher_name, passphrase, "EC PRIVATE KEY")?; Some(encrypted_pem.into_bytes()) } - ("der", "pkcs8") => key.export_pkcs8_encrypted_der(passphrase), + ("der", "pkcs8") => key.export_pkcs8_encrypted_der(cipher_name, passphrase), _ => None, } } @@ -5510,7 +5444,8 @@ fn dh_compute_secret_impl(id: u32, other_pub_bytes: &[u8]) -> Result, St if other_pub.is_zero() || other_pub.is_one() { return Err("Supplied key is too small".to_string()); } - if other_pub >= state.p { + // DH_check_pub_key: a valid peer key lies in [2, p - 2]. + if other_pub >= &state.p - BigUint::one() { return Err("Supplied key is too large".to_string()); } let priv_key = state.priv_key.as_ref().ok_or("No private key set")?; @@ -6406,6 +6341,7 @@ pub mod native_module { .unwrap_or(&[]); super::create_private_key_from_der(slice) .or_else(|| super::create_rsa_private_key_from_der(slice)) + .or_else(|| super::create_private_key_from_sec1_der(slice)) } #[rquickjs::function] @@ -6426,6 +6362,23 @@ pub mod native_module { super::create_private_key_from_encrypted_pem(&pem, slice) } + #[rquickjs::function] + pub fn encrypt_pkcs8_der( + der: TypedArray<'_, u8>, + cipher_name: String, + passphrase: TypedArray<'_, u8>, + ) -> Option> { + let der = der + .as_raw() + .map(|raw| unsafe { std::slice::from_raw_parts(raw.cast::().as_ptr(), raw.len()) }) + .unwrap_or(&[]); + let passphrase = passphrase + .as_raw() + .map(|raw| unsafe { std::slice::from_raw_parts(raw.cast::().as_ptr(), raw.len()) }) + .unwrap_or(&[]); + super::encrypt_pkcs8_der_impl(der, &cipher_name, passphrase) + } + #[rquickjs::function] pub fn decrypt_pkcs8_pem_to_der( pem: String, @@ -6845,8 +6798,35 @@ pub mod native_module { } } - /// Returns the 66-byte private scalar followed by the 133-byte uncompressed - /// public point, or nothing when this tier has no P-521 backend. + #[rquickjs::function] + pub fn p521_supported() -> bool { + cfg!(feature = "crypto-full") + } + + /// Derives an uncompressed P-521 point from a fixed-width raw scalar modulo n. + /// The caller retains the original scalar encoding for raw key exports. + #[rquickjs::function] + pub fn p521_raw_public_key(private_key: TypedArray<'_, u8>) -> Option> { + #[cfg(feature = "crypto-full")] + { + use elliptic_curve::{Curve, field, sec1::ToSec1Point}; + + let bytes = p521::FieldBytes::from(super::typed_array_array::<66>(&private_key)?); + let scalar = field::bytes_to_uint::(&bytes); + // Raw imports accept noncanonical scalars too. Use the existing fixed-width + // remainder, not Scalar::reduce (which only subtracts the order once). + let reduced = scalar.rem(p521::NistP521::ORDER.as_nz_ref()); + let bytes = field::uint_to_bytes::(&reduced); + let secret = p521::SecretKey::from_bytes(&bytes).ok()?; + Some(secret.public_key().to_sec1_point(false).as_bytes().to_vec()) + } + #[cfg(not(feature = "crypto-full"))] + { + let _ = private_key; + None + } + } + // ===== ECDH native functions ===== #[rquickjs::function] diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/web_crypto_lite.rs b/crates/wasm-rquickjs/skeleton/src/builtin/web_crypto_lite.rs index a251e067c..4c638bc8b 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/web_crypto_lite.rs +++ b/crates/wasm-rquickjs/skeleton/src/builtin/web_crypto_lite.rs @@ -113,7 +113,7 @@ function getRandomValues(array) { throw new DOMException('Float typed arrays are not supported', 'TypeMismatchError'); } if (array.byteLength > 65536) { - throw new DOMException('The ArrayBufferView byte length exceeds the limit (65536)', 'QuotaExceededError'); + throw new QuotaExceededError('The ArrayBufferView byte length exceeds the limit (65536)'); } if (array instanceof Int8Array) randomize_int8_array(array); else if (array instanceof Uint8ClampedArray) randomize_uint8_clamped_array(array); diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/webstreams.js b/crates/wasm-rquickjs/skeleton/src/builtin/webstreams.js index 120af7300..f5c9ef7ef 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/webstreams.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/webstreams.js @@ -115,14 +115,16 @@ ReadableStream.from = function from(iterable) { throw errArgNotIterable(); } - let iterator; + // Like Node 26 readableStreamFromIterable, the iterator is obtained eagerly and must be an + // object. + const iterator = typeof asyncIteratorFactory === 'function' + ? asyncIteratorFactory.call(iterable) + : iteratorFactory.call(iterable); + if (iterator === null || (typeof iterator !== 'object' && typeof iterator !== 'function')) { + throw errInvalidState('Invalid state: The iterator method must return an object'); + } return new ReadableStream({ async pull(controller) { - if (iterator === undefined) { - iterator = typeof asyncIteratorFactory === 'function' - ? asyncIteratorFactory.call(iterable) - : iteratorFactory.call(iterable); - } const result = await iterator.next(); if (result.done) { controller.close(); diff --git a/crates/wasm-rquickjs/skeleton/src/builtin/zlib.js b/crates/wasm-rquickjs/skeleton/src/builtin/zlib.js index 1ba53dbf5..1a8ea2900 100644 --- a/crates/wasm-rquickjs/skeleton/src/builtin/zlib.js +++ b/crates/wasm-rquickjs/skeleton/src/builtin/zlib.js @@ -680,7 +680,12 @@ class ZlibBase extends Transform { } this._pendingFlushes.push(kind); - this.write(Buffer.alloc(0), '', () => { + this.write(Buffer.alloc(0), '', (err) => { + if (err) { + // A write after destroy reports ERR_STREAM_DESTROYED, as in Node. + if (callback) callback(err); + return; + } // Force read to emit anything buffered in readable state this.read(0); if (callback) callback(); @@ -715,7 +720,12 @@ class ZlibBase extends Transform { `The value of "strategy" is out of range. It must be >= 0 and <= 4. Received ${strategy}`); } if (this._level !== level || this._strategy !== strategy) { - this.flush(Z_SYNC_FLUSH, () => { + this.flush(Z_SYNC_FLUSH, (err) => { + // Node 26 paramsAfterFlushCallback: a failed flush or destroyed stream skips the update. + if (err || this.destroyed) { + if (callback) callback(err); + return; + } if (this._nativeHandle !== null) { zlib_stream_params(this._nativeHandle, level, strategy); } diff --git a/crates/wasm-rquickjs/skeleton/src/internal/module_loading.rs b/crates/wasm-rquickjs/skeleton/src/internal/module_loading.rs index 47b4446f9..07af177ff 100644 --- a/crates/wasm-rquickjs/skeleton/src/internal/module_loading.rs +++ b/crates/wasm-rquickjs/skeleton/src/internal/module_loading.rs @@ -191,6 +191,17 @@ function __wasm_rquickjs_import_attr_prepare_from_options(value, parsedOptions, format = 'module'; } + // Node 26 validateAttributes rejects every key other than "type" before checking the type. + if (unsupportedKey !== undefined) { + var unsupportedValueText = typeof unsupportedValue === 'string' + ? '"' + unsupportedValue + '"' + : String(unsupportedValue); + return semanticError(Object.assign( + new TypeError('Import attribute "' + unsupportedKey + '" with value ' + unsupportedValueText + ' is not supported'), + { code: 'ERR_IMPORT_ATTRIBUTE_UNSUPPORTED' } + )); + } + if (typeValue !== undefined && typeValue !== 'json' && !(typeValue === 'css' && format === 'css')) { return semanticError(Object.assign( new TypeError('Import attribute type "' + typeValue + '" is not supported'), @@ -218,16 +229,6 @@ function __wasm_rquickjs_import_attr_prepare_from_options(value, parsedOptions, return prepared; } - if (unsupportedKey !== undefined) { - var unsupportedValueText = typeof unsupportedValue === 'string' - ? '"' + unsupportedValue + '"' - : String(unsupportedValue); - return semanticError(Object.assign( - new TypeError('Import attribute "' + unsupportedKey + '" with value ' + unsupportedValueText + ' is not supported'), - { code: 'ERR_IMPORT_ATTRIBUTE_UNSUPPORTED' } - )); - } - if (typeValue !== undefined) { if (typeValue === 'json') { if (format === 'module') { @@ -992,8 +993,7 @@ impl Loader for DataUrlLoader { // request independently of the engine's module cache. Legacy // `assert { ... }` remains a syntax error. let processed = process_static_import_attrs(&source, path); - if let Some(error_source) = - esm_preflight_error_module_source(&processed.source, false, false) + if let Some(error_source) = esm_preflight_error_module_source(&processed.source, false) { return Module::declare(ctx.clone(), path, error_source.as_bytes().to_vec()); } @@ -2136,6 +2136,14 @@ fn validate_import_attrs_error( format: Option<&str>, specifier: &str, ) -> Option<(String, String)> { + // Node 26 validateAttributes rejects every key other than "type" before checking the type. + if let Some(key) = unsupported_key { + return Some(( + "ERR_IMPORT_ATTRIBUTE_UNSUPPORTED".to_string(), + format!("Import attribute \"{key}\" is not supported"), + )); + } + if let Some(tv) = type_value { match tv { "json" => { @@ -2172,13 +2180,6 @@ fn validate_import_attrs_error( )); } - if let Some(key) = unsupported_key { - return Some(( - "ERR_IMPORT_ATTRIBUTE_UNSUPPORTED".to_string(), - format!("Import attribute \"{key}\" is not supported"), - )); - } - None } @@ -2208,11 +2209,7 @@ fn throw_import_attr_type_incompatible<'js, T>(ctx: &Ctx<'js>) -> rquickjs::Resu Err(ctx.throw(error_obj.into_value())) } -fn esm_preflight_error_module_source( - source: &str, - package_type_module_js: bool, - raw_cjs_global_messages: bool, -) -> Option { +fn esm_preflight_error_module_source(source: &str, package_type_module_js: bool) -> Option { if package_type_module_js { let name = find_bare_cjs_global_in_esm(source)?; let message = format!( @@ -2225,24 +2222,14 @@ fn esm_preflight_error_module_source( } let name = find_bare_cjs_global_in_esm(source)?; - let message = if raw_cjs_global_messages { - match name { - "require" => "require is not defined", - "exports" => "exports is not defined", - "module" => "module is not defined", - "__filename" => "__filename is not defined", - "__dirname" => "__dirname is not defined", - _ => return None, - } - } else { - match name { - "require" => "require is not defined in ES module scope, you can use import instead", - "exports" => "exports is not defined in ES module scope", - "module" => "module is not defined in ES module scope", - "__filename" => "__filename is not defined in ES module scope", - "__dirname" => "__dirname is not defined in ES module scope", - _ => return None, - } + // Node 26 adds the ES module scope explanation on both the import and require(esm) paths. + let message = match name { + "require" => "require is not defined in ES module scope, you can use import instead", + "exports" => "exports is not defined in ES module scope", + "module" => "module is not defined in ES module scope", + "__filename" => "__filename is not defined in ES module scope", + "__dirname" => "__dirname is not defined in ES module scope", + _ => return None, }; let escaped = DataUrlLoader::js_string_escape(message); Some(format!( @@ -2250,17 +2237,11 @@ fn esm_preflight_error_module_source( )) } -fn esm_require_global_preflight_error_module_source( - source: &str, - raw_cjs_global_messages: bool, -) -> Option { +fn esm_require_global_preflight_error_module_source(source: &str) -> Option { find_bare_cjs_global_in_esm_among(source, &["require"])?; - let message = if raw_cjs_global_messages { - "require is not defined" - } else { - "require is not defined in ES module scope, you can use import instead" - }; - let escaped = DataUrlLoader::js_string_escape(message); + let escaped = DataUrlLoader::js_string_escape( + "require is not defined in ES module scope, you can use import instead", + ); Some(format!( "await Promise.reject(new ReferenceError('{escaped}'));\n" )) @@ -6145,7 +6126,8 @@ impl NodeModulesResolver { } fn validate_package_import_specifier(specifier: &str) -> Result<(), NodePackageResolveError> { - if specifier == "#" || specifier.starts_with("#/") || specifier.ends_with('/') { + // Node 25+ accepts `#/` subpath imports. + if specifier == "#" || specifier.ends_with('/') { return Err(NodePackageResolveError::InvalidPackagePatternMatch { specifier: specifier.to_string(), message: "is not a valid internal imports specifier name".to_string(), @@ -10581,7 +10563,8 @@ fn is_node_modules_package_scope(dir: &std::path::Path) -> bool { fn cjs_named_export_source(names: &[String], host_global: &str) -> String { let mut out = String::new(); for (index, name) in names.iter().enumerate() { - if name == "default" { + // Node 23+ always exports `module.exports` itself under this name. + if name == "default" || name == "module.exports" { continue; } let local = format!("__cjs_export_{}", index); @@ -10600,6 +10583,7 @@ fn build_cjs_facade_source(default_member_expression: &str, names: &[String]) -> r#"const {host_global}=import.meta.__wasm_rquickjs_global; var __cjs_default = {host_global}.{default_member_expression}; export default __cjs_default; +export {{ __cjs_default as "module.exports" }}; {} "#, named_exports, @@ -11023,6 +11007,20 @@ fn initialize_module_import_meta<'js>( .enumerable() .configurable(), )?; + // Node 24+: true only for the entry point, which process.argv[1] names. + let is_main = ctx + .globals() + .get::<_, Object>("process") + .and_then(|process| process.get::<_, Object>("argv")) + .and_then(|argv| argv.get::<_, String>(1)) + .is_ok_and(|entry| entry == *filename); + meta.prop( + "main", + Property::from(is_main) + .writable() + .enumerable() + .configurable(), + )?; } if init.include_resolve { let base_url = init.url.clone(); @@ -11437,15 +11435,6 @@ fn read_module_source_or_throw<'js>( } } -fn require_esm_in_progress(ctx: &Ctx<'_>, filename: &str, file_url: &str) -> bool { - let globals = ctx.globals(); - let Ok(registry) = globals.get::<_, Object>("__wasm_rquickjs_require_esm_in_progress") else { - return false; - }; - registry.get::<_, bool>(filename).unwrap_or(false) - || registry.get::<_, bool>(file_url).unwrap_or(false) -} - fn require_esm_forced_module(ctx: &Ctx<'_>, filename: &str, file_url: &str) -> bool { let globals = ctx.globals(); let Ok(registry) = globals.get::<_, Object>("__wasm_rquickjs_require_esm_forced_module") else { @@ -13279,14 +13268,13 @@ enum EsmFilePreflightMode { fn esm_file_preflight_error_module_source( source: &str, mode: EsmFilePreflightMode, - raw_cjs_global_messages: bool, ) -> Option { match mode { EsmFilePreflightMode::RequireOnly => { - esm_require_global_preflight_error_module_source(source, raw_cjs_global_messages) + esm_require_global_preflight_error_module_source(source) } EsmFilePreflightMode::PackageTypeModuleJs => { - esm_preflight_error_module_source(source, true, raw_cjs_global_messages) + esm_preflight_error_module_source(source, true) } } } @@ -13316,7 +13304,6 @@ fn declare_esm_file_module_from_source<'js>( let processed = process_static_import_attrs(&raw_source, module_id); let source = &processed.source; let init = file_import_meta_init(url, fs_abs_path.clone()); - let raw_cjs_global_messages = require_esm_in_progress(ctx, &fs_abs_path, &init.url); let globals = ctx.globals(); if let Ok(cache) = globals.get::<_, Object>("__esm_error_cache") @@ -13326,9 +13313,7 @@ fn declare_esm_file_module_from_source<'js>( return Err(ctx.throw(cached_error)); } - if let Some(error_source) = - esm_file_preflight_error_module_source(source, preflight_mode, raw_cjs_global_messages) - { + if let Some(error_source) = esm_file_preflight_error_module_source(source, preflight_mode) { return Module::declare(ctx.clone(), module_id, error_source.as_bytes().to_vec()); } if let Some(error_source) = cjs_named_import_error_module_source(ctx, &fs_abs_path, source) { @@ -14220,7 +14205,6 @@ import "./dep.js" withあ; export { exports as "module.exports" }; "#, true, - false, ) .is_none() ); @@ -14306,35 +14290,28 @@ import "./dep.js" withあ; #[test] fn package_type_diagnostics_use_first_cjs_global() { - let require_diag = esm_preflight_error_module_source("require('x');", true, false).unwrap(); + let require_diag = esm_preflight_error_module_source("require('x');", true).unwrap(); assert!(require_diag.contains("require is not defined")); assert!(require_diag.contains(".cjs")); let filename_diag = - esm_preflight_error_module_source("console.log(__filename);", true, false).unwrap(); + esm_preflight_error_module_source("console.log(__filename);", true).unwrap(); assert!(filename_diag.contains("__filename is not defined")); assert!(filename_diag.contains(".cjs")); assert!( - esm_preflight_error_module_source( - "const require = 1; export default require;", - true, - false - ) - .is_none() + esm_preflight_error_module_source("const require = 1; export default require;", true) + .is_none() ); assert!( - esm_preflight_error_module_source("export default typeof require;", false, false) - .is_none() + esm_preflight_error_module_source("export default typeof require;", false).is_none() ); assert!( - esm_preflight_error_module_source("export default typeof (exports);", false, false) - .is_none() + esm_preflight_error_module_source("export default typeof (exports);", false).is_none() ); assert!( esm_preflight_error_module_source( "if (true) { const exports = 1; Object.keys(exports); }", - false, false ) .is_none() @@ -14342,21 +14319,18 @@ import "./dep.js" withあ; let block_scoped_exports_diag = esm_preflight_error_module_source( "if (false) { const exports = 1; } Object.keys(exports);", false, - false, ) .unwrap(); assert!(block_scoped_exports_diag.contains("exports is not defined in ES module scope")); let for_scoped_exports_diag = esm_preflight_error_module_source( "for (let exports of []) {} Object.keys(exports);", false, - false, ) .unwrap(); assert!(for_scoped_exports_diag.contains("exports is not defined in ES module scope")); let unbraced_for_scoped_exports_diag = esm_preflight_error_module_source( "for (let exports of [1]) Object.keys(exports); Object.keys(exports);", false, - false, ) .unwrap(); assert!( @@ -14365,7 +14339,6 @@ import "./dep.js" withあ; let for_await_scoped_exports_diag = esm_preflight_error_module_source( "for await (let exports of []) {} Object.keys(exports);", false, - false, ) .unwrap(); assert!( @@ -14374,31 +14347,24 @@ import "./dep.js" withあ; assert!(esm_preflight_error_module_source( "try { throw { a: 1 }; } catch (exports) { Object.keys(exports); } export default 1;", false, - false, ) .is_none()); assert!( esm_preflight_error_module_source( "if (false) { var exports = 1; } Object.keys(exports);", false, - false, ) .is_none() ); let object_key_exports_diag = - esm_preflight_error_module_source("export default ({ var: exports });", false, false) - .unwrap(); + esm_preflight_error_module_source("export default ({ var: exports });", false).unwrap(); assert!(object_key_exports_diag.contains("exports is not defined in ES module scope")); let lexical_object_key_exports_diag = - esm_preflight_error_module_source("export default ({ const: exports });", false, false) + esm_preflight_error_module_source("export default ({ const: exports });", false) .unwrap(); assert!( lexical_object_key_exports_diag.contains("exports is not defined in ES module scope") ); - let raw_exports_diag = - esm_preflight_error_module_source("Object.keys(exports);", false, true).unwrap(); - assert!(raw_exports_diag.contains("exports is not defined")); - assert!(!raw_exports_diag.contains("ES module scope")); } #[test] diff --git a/examples/runtime/assert/src/assert.js b/examples/runtime/assert/src/assert.js index 248875a4f..f02bd91b0 100644 --- a/examples/runtime/assert/src/assert.js +++ b/examples/runtime/assert/src/assert.js @@ -1,7 +1,9 @@ import assert from 'node:assert'; import { AssertionError } from 'node:assert'; import fs from 'node:fs'; +import { isDeepStrictEqual } from 'node:util'; import { createRequire } from 'node:module'; +import test from 'node:test'; const require = createRequire(import.meta.url); @@ -139,6 +141,40 @@ export const testDeepStrictEqual = () => { assert.deepStrictEqual(new Date(0), new Date(0)); assert.deepStrictEqual(/abc/g, /abc/g); + // Independent assertions in a getter must not inherit util's skipPrototype option. + class A { constructor() { this.value = 1; } } + class B { constructor() { this.value = 1; } } + const a = new A(); + const b = new B(); + const left = { + get value() { + assert.throws(() => assert.deepStrictEqual(a, b), { code: 'ERR_ASSERTION' }); + assert.notDeepStrictEqual(a, b); + assert.strictEqual(isDeepStrictEqual(a, b), false); + return a; + } + }; + assert.strictEqual(isDeepStrictEqual(left, { value: b }, true), true); + assert.strictEqual(isDeepStrictEqual(a, b), false); + const sentinel = new Error('getter failure'); + assert.throws(() => isDeepStrictEqual({ + get value() { throw sentinel; } + }, { value: b }, true), (error) => error === sentinel); + assert.throws(() => assert.deepStrictEqual(a, b), { code: 'ERR_ASSERTION' }); + + // Nested comparisons also have independent recursion budgets. + const nested = Array.from({ length: 3000 }, (_, index) => index); + const tail = Array.from({ length: 2500 }, (_, index) => index); + for (const compare of [assert.deepStrictEqual, isDeepStrictEqual]) { + assert.strictEqual(isDeepStrictEqual({ + get a() { + compare(nested, nested.slice()); + return 1; + }, + z: tail + }, { a: 1, z: tail.slice() }), true); + } + // Strict: type matters let caught = false; try { assert.deepStrictEqual({ a: 1 }, { a: '1' }); } catch (e) { caught = true; } @@ -494,3 +530,107 @@ export const testEvalGeneratedMessage = () => { return message !== 'false == true' && message.startsWith('The expression evaluated to a falsy value:'); }; + +// Subtests await async setup and teardown, then restore mocks before settling, for synchronous, +// promise and done-callback bodies. Teardown runs once even after setup/body failure; that +// primary error wins over a secondary teardown error. Node reports child failures through the +// parent and resolves t.test(); this runtime rejects, so error identity is checked only on +// rejection. Both outcomes are accepted, but cleanup order and mock restoration always apply. +export const testSubtestAfterEachOnce = async () => { + try { + for (const kind of ['sync', 'promise', 'callback']) { + const target = { method() { return 'original'; } }; + const calls = []; + await test('async hooks ' + kind, async (t) => { + t.beforeEach(async (st) => { + await null; + st.mock.method(target, 'method', () => 'mocked'); + calls.push('before'); + }); + t.afterEach(async () => { + await null; + calls.push('after:' + target.method()); + }); + const body = (st) => { calls.push('body:' + target.method()); }; + const fn = kind === 'callback' ? (st, done) => { body(st); done(); } + : kind === 'promise' ? async (st) => { await null; body(st); } : body; + await t.test(kind, fn); + calls.push('settled:' + target.method()); + }); + assert.deepStrictEqual(calls, ['before', 'body:mocked', 'after:mocked', 'settled:original']); + } + + for (const phase of ['setup', 'body', 'teardown']) { + const primary = new Error(phase + ' failed'); + const secondary = new Error('secondary teardown failure'); + const target = { method() { return 'original'; } }; + const calls = []; + await test('async hook rejection ' + phase, async (t) => { + t.beforeEach(async (st) => { + st.mock.method(target, 'method', () => 'mocked'); + await null; + calls.push('before'); + if (phase === 'setup') throw primary; + }); + t.afterEach(async () => { + await null; + calls.push('after:' + target.method()); + throw phase === 'teardown' ? primary : secondary; + }); + try { + await t.test(phase, async () => { + calls.push('body'); + if (phase === 'body') throw primary; + }); + } catch (e) { + assert.strictEqual(e, primary); + } + calls.push('settled:' + target.method()); + }); + assert.deepStrictEqual(calls, phase === 'setup' + ? ['before', 'after:mocked', 'settled:original'] + : ['before', 'body', 'after:mocked', 'settled:original']); + } + + const hookError = new Error('afterEach failed'); + const target = { method() { return 'original'; } }; + const calls = []; + const outcomes = {}; + const mockAndRecord = (st, kind) => { + st.mock.method(target, 'method', () => 'mocked'); + calls.push(kind + ':' + target.method()); + }; + await test('afterEach once', async (t) => { + t.afterEach(() => { + calls.push('afterEach'); + throw hookError; + }); + const subtests = [ + ['sync', (st) => { mockAndRecord(st, 'sync'); }], + ['promise', async (st) => { await null; mockAndRecord(st, 'promise'); }], + ['callback', (st, done) => { mockAndRecord(st, 'callback'); done(); }], + ]; + for (const [kind, fn] of subtests) { + try { + await t.test(kind, fn); + outcomes[kind] = 'resolved'; + } catch (e) { + outcomes[kind] = e === hookError ? 'hook-error' : e; + } + calls.push(kind + ':' + target.method()); + } + }); + assert.deepStrictEqual(calls, [ + 'sync:mocked', 'afterEach', 'sync:original', + 'promise:mocked', 'afterEach', 'promise:original', + 'callback:mocked', 'afterEach', 'callback:original', + ]); + for (const kind of ['sync', 'promise', 'callback']) { + assert.ok(outcomes[kind] === 'resolved' || outcomes[kind] === 'hook-error', kind); + } + return true; + } catch (e) { + console.error(e); + return false; + } +}; diff --git a/examples/runtime/assert/wit/assert.wit b/examples/runtime/assert/wit/assert.wit index 7a7a3b15b..9b25a52b8 100644 --- a/examples/runtime/assert/wit/assert.wit +++ b/examples/runtime/assert/wit/assert.wit @@ -15,4 +15,5 @@ world assert { export test-strict-mode: func() -> bool; export test-assertion-error: func() -> bool; export test-eval-generated-message: func() -> bool; + export test-subtest-after-each-once: func() -> bool; } diff --git a/examples/runtime/cjs-require/src/cjs-require.js b/examples/runtime/cjs-require/src/cjs-require.js index 1d133605d..b4b243a36 100644 --- a/examples/runtime/cjs-require/src/cjs-require.js +++ b/examples/runtime/cjs-require/src/cjs-require.js @@ -476,6 +476,7 @@ export const testRequirePackageImports = () => { false, './dep.cjs', ], + '#/slash-dep': './dep.cjs', }, })); fs.writeFileSync('/imports-app/dep.cjs', 'module.exports = { mode: "require" };'); @@ -492,6 +493,7 @@ export const testRequirePackageImports = () => { 'exports.nullTarget = function() { return require("#null-target"); };', 'exports.falseTarget = function() { return require("#false-target"); };', 'exports.arrayFalseFallback = require("#array-false-fallback");', + 'exports.slashDep = require("#/slash-dep");', ].join('\n')); const appRequire = require('module').createRequire('/imports-app/main.cjs'); @@ -510,7 +512,8 @@ export const testRequirePackageImports = () => { }, ); assert.throws(() => mod.invalidBare(), { code: 'ERR_INVALID_MODULE_SPECIFIER' }); - assert.throws(() => mod.initialSlash(), { code: 'ERR_INVALID_MODULE_SPECIFIER' }); + // Node 25+ accepts `#/` subpath imports, so an unmapped one is merely undefined. + assert.throws(() => mod.initialSlash(), { code: 'ERR_PACKAGE_IMPORT_NOT_DEFINED' }); assert.throws(() => mod.importOnly(), { code: 'ERR_PACKAGE_IMPORT_NOT_DEFINED' }); assert.throws( () => mod.nullTarget(), @@ -525,6 +528,8 @@ export const testRequirePackageImports = () => { ); assert.throws(() => mod.falseTarget(), { code: 'ERR_INVALID_PACKAGE_TARGET' }); assert.deepStrictEqual(mod.arrayFalseFallback, { mode: 'require' }); + assert.deepStrictEqual(mod.slashDep, { mode: 'require' }); + assert.strictEqual(appRequire.resolve('#/slash-dep'), '/imports-app/dep.cjs'); assert.strictEqual(appRequire.resolve('#dep'), '/imports-app/dep.cjs'); assert.throws( () => Module._resolveFilename('#missing', null), diff --git a/examples/runtime/crypto/src/crypto.js b/examples/runtime/crypto/src/crypto.js index 840b2be9c..279477258 100644 --- a/examples/runtime/crypto/src/crypto.js +++ b/examples/runtime/crypto/src/crypto.js @@ -1,4 +1,4 @@ -import { createHash, createHmac, hash, getHashes, getCiphers, getCurves, constants, randomBytes, randomInt, timingSafeEqual, pbkdf2Sync, scryptSync, hkdfSync, createCipheriv, createDecipheriv, generateKeyPairSync, createSign, createVerify, createPublicKey, createPrivateKey, diffieHellman, sign, verify, publicEncrypt, privateDecrypt, privateEncrypt, publicDecrypt } from 'node:crypto'; +import { createHash, createHmac, hash, getHashes, getCiphers, getCurves, constants, randomBytes, randomInt, timingSafeEqual, pbkdf2Sync, scryptSync, hkdfSync, createCipheriv, createDecipheriv, generateKeyPair, generateKeyPairSync, createSign, createVerify, createPublicKey, createPrivateKey, diffieHellman, sign, verify, publicEncrypt, privateDecrypt, privateEncrypt, publicDecrypt, getDiffieHellman, createDiffieHellman, createSecretKey } from 'node:crypto'; export function newUuids() { const uuid1 = crypto.randomUUID() @@ -276,6 +276,163 @@ export async function subtleSignVerifyRsaPss(message) { return await crypto.subtle.verify(pss, keyPair.publicKey, signature, data); } +export async function cryptoErrorContracts() { + const lines = []; + const check = (name, fn) => { + try { + const value = fn(); + lines.push(`${name}: ok ${typeof value === 'string' ? value.split('\n')[0] : typeof value}`); + } catch (e) { + lines.push(`${name}: ${e.name} ${e.code} ${e.message}`); + } + }; + const aeadFinal = (algorithm, tamper) => { + const key = Buffer.alloc(32, 1); + const iv = Buffer.alloc(12, 2); + const cipher = createCipheriv(algorithm, key, iv); + const ciphertext = Buffer.concat([cipher.update('payload'), cipher.final()]); + const tag = cipher.getAuthTag(); + const decipher = createDecipheriv(algorithm, key, iv); + if (tamper !== 'no-tag') { + tag[0] ^= 1; + decipher.setAuthTag(tag); + } + decipher.update(ciphertext); + return decipher.final(); + }; + check('gcm tampered tag', () => aeadFinal('aes-256-gcm', 'tag')); + check('gcm missing tag', () => aeadFinal('aes-256-gcm', 'no-tag')); + check('chacha20-poly1305 tampered tag', () => aeadFinal('chacha20-poly1305', 'tag')); + + const rsa = generateKeyPairSync('rsa', { modulusLength: 512 }); + const ed = generateKeyPairSync('ed25519'); + check('public pkcs8', () => rsa.publicKey.export({ format: 'pem', type: 'pkcs8' })); + check('public without format', () => rsa.publicKey.export({ type: 'spki' })); + check('public spki ignores cipher', () => rsa.publicKey.export({ format: 'pem', type: 'spki', cipher: 'aes-128-cbc', passphrase: 'x' })); + check('private without type', () => rsa.privateKey.export({ format: 'pem' })); + check('private passphrase without cipher', () => rsa.privateKey.export({ format: 'pem', type: 'pkcs8', passphrase: 'x' })); + check('private der pkcs1 encrypted', () => rsa.privateKey.export({ format: 'der', type: 'pkcs1', cipher: 'aes-128-cbc', passphrase: 'x' })); + check('private unknown cipher', () => rsa.privateKey.export({ format: 'pem', type: 'pkcs8', cipher: 'nope', passphrase: 'x' })); + check('private pem pkcs8 encrypted', () => rsa.privateKey.export({ format: 'pem', type: 'pkcs8', cipher: 'aes-128-cbc', passphrase: 'x' })); + check('ed25519 public pkcs1', () => ed.publicKey.export({ format: 'pem', type: 'pkcs1' })); + check('ed25519 private sec1', () => ed.privateKey.export({ format: 'pem', type: 'sec1' })); + check('keygen passphrase without cipher', () => generateKeyPairSync('ed25519', { privateKeyEncoding: { format: 'jwk', passphrase: 'x' } })); + check('keygen public pkcs8', () => generateKeyPairSync('ed25519', { publicKeyEncoding: { format: 'pem', type: 'pkcs8' } })); + check('createPrivateKey der spki', () => createPrivateKey({ key: Buffer.alloc(0), format: 'der', type: 'spki' })); + const shortTag = createDecipheriv('aes-256-gcm', Buffer.alloc(32), Buffer.alloc(12)); + check('gcm implicit 12-byte tag', () => shortTag.setAuthTag(Buffer.alloc(12))); + check('gcm authTagLength 12-byte tag', () => createDecipheriv('aes-256-gcm', Buffer.alloc(32), Buffer.alloc(12), { authTagLength: 12 }).setAuthTag(Buffer.alloc(12)) && 'set'); + const info = new Uint8Array(2048); + Object.defineProperty(info, 'byteLength', { get() { return 1; } }); + check('hkdfSync info with fake byteLength', () => hkdfSync('sha256', 'a', '', info, 10)); + check('cipher output encoding change', () => { + const cipher = createCipheriv('aes-256-cbc', Buffer.alloc(32), Buffer.alloc(16)); + cipher.update('test', 'utf-8', 'utf-8'); + return cipher.final('hex'); + }); + check('generateKeyPair Ed25519', () => generateKeyPair('Ed25519', () => {})); + check('generateKeyPair toString', () => generateKeyPair('toString', () => {})); + + // One-shot sign()/verify() validate synchronously but deliver errors of the + // signing job to the callback, after returning. + const viaCallback = (name, fn, show = (value) => value) => new Promise((resolve) => { + let returned = false; + const done = (outcome) => { + lines.push(`${name}: ${returned ? '' : 'before return '}${outcome}`); + resolve(); + }; + try { + fn((err, value) => done(err ? `callback ${err.name} ${err.code}` : `callback ok ${show(value)}`)); + returned = true; + } catch (e) { + lines.push(`${name}: throws ${e.name} ${e.code}`); + resolve(); + } + }); + const x25519 = generateKeyPairSync('x25519'); + await viaCallback('sign digest too big for key', (cb) => sign('sha512', Buffer.from('message'), rsa.privateKey, cb)); + await viaCallback('verify with x25519 key', (cb) => verify(undefined, Buffer.from('message'), x25519.publicKey, Buffer.alloc(16), cb)); + await viaCallback('sign invalid padding', (cb) => sign('sha256', Buffer.from('message'), { key: rsa.privateKey, padding: 'x' }, cb)); + await viaCallback('verify mismatching signature', (cb) => verify('sha256', Buffer.from('message'), rsa.publicKey, Buffer.alloc(64), cb)); + + // A key of the wrong type is rejected synchronously and never reaches the callback. + const secretKey = createSecretKey(Buffer.alloc(32, 1)); + const message = Buffer.from('message'); + await viaCallback('sign with public KeyObject', (cb) => sign('sha256', message, rsa.publicKey, cb)); + await viaCallback('sign with nested secret KeyObject', (cb) => sign('sha256', message, { key: secretKey }, cb)); + await viaCallback('verify with secret KeyObject', (cb) => verify('sha256', message, secretKey, Buffer.alloc(64), cb)); + await viaCallback('verify with nested private KeyObject', (cb) => verify('sha256', message, { key: rsa.privateKey }, sign('sha256', message, rsa.privateKey), cb)); + + // Inherited and non-enumerable padding/saltLength options reach the job. + const pss = { padding: constants.RSA_PKCS1_PSS_PADDING, saltLength: 20 }; + const privatePem = rsa.privateKey.export({ format: 'pem', type: 'pkcs8' }); + const signatureKind = (signature) => `pkcs1=${verify('sha256', message, rsa.publicKey, signature)} pss=${verify('sha256', message, { key: rsa.publicKey, ...pss }, signature)}`; + await viaCallback('sign inherited PSS options', (cb) => sign('sha256', message, Object.assign(Object.create(pss), { key: privatePem }), cb), signatureKind); + await viaCallback('sign non-enumerable PSS options', (cb) => sign('sha256', message, Object.defineProperties({ key: privatePem }, { padding: { value: pss.padding }, saltLength: { value: pss.saltLength } }), cb), signatureKind); + await viaCallback('sign default padding', (cb) => sign('sha256', message, { key: privatePem }, cb), signatureKind); + const pssSignature = sign('sha256', message, { key: rsa.privateKey, ...pss }); + await viaCallback('verify inherited PSS options', (cb) => verify('sha256', message, Object.assign(Object.create(pss), { key: rsa.publicKey.export({ format: 'pem', type: 'spki' }) }), pssSignature, cb)); + await viaCallback('verify PSS signature with default padding', (cb) => verify('sha256', message, { key: rsa.publicKey }, pssSignature, cb)); + + const modp14 = getDiffieHellman('modp14'); + const alice = createDiffieHellman(modp14.getPrime(), modp14.getGenerator()); + alice.generateKeys(); + const pMinus1 = Buffer.from(modp14.getPrime()); + pMinus1[pMinus1.length - 1] -= 1; + check('DH computeSecret(1)', () => alice.computeSecret(Buffer.from([1]))); + check('DH computeSecret(p - 1)', () => alice.computeSecret(pMinus1)); + return lines; +} + +export async function webcryptoErrorContracts() { + const lines = []; + const describe = (e) => `${e.name} ${e.code} ${e.message}`; + const check = (name, fn) => { + try { + fn(); + lines.push(`${name}: ok`); + } catch (e) { + lines.push(`${name}: ${describe(e)}`); + } + }; + const checkAsync = async (name, fn) => { + try { + const value = await fn(); + lines.push(`${name}: ok ${value}`); + } catch (e) { + lines.push(`${name}: ${describe(e)}`); + } + }; + const { subtle } = crypto; + check('getRandomValues()', () => crypto.getRandomValues()); + check('getRandomValues(ArrayBuffer)', () => crypto.getRandomValues(new ArrayBuffer(1))); + check('getRandomValues(Float32Array)', () => crypto.getRandomValues(new Float32Array(1))); + check('getRandomValues(65537 bytes)', () => crypto.getRandomValues(new Uint8Array(65537))); + + const iv = new Uint8Array(16); + const cbcDecrypt = await subtle.importKey('raw', new Uint8Array(16), { name: 'AES-CBC' }, false, ['decrypt']); + const cbcEncrypt = await subtle.importKey('raw', new Uint8Array(16), { name: 'AES-CBC' }, false, ['encrypt']); + await checkAsync('encrypt without usage', () => subtle.encrypt({ name: 'AES-CBC', iv }, cbcDecrypt, new Uint8Array(1))); + await checkAsync('decrypt without usage', () => subtle.decrypt({ name: 'AES-CBC', iv }, cbcEncrypt, new Uint8Array(16))); + await checkAsync('decrypt wrong algorithm without usage', () => subtle.decrypt({ name: 'AES-CTR', counter: iv, length: 64 }, cbcEncrypt, new Uint8Array(16))); + const hmacSign = await subtle.importKey('raw', new Uint8Array(32), { name: 'HMAC', hash: 'SHA-256' }, true, ['sign']); + await checkAsync('verify without usage', () => subtle.verify('HMAC', hmacSign, new Uint8Array(32), new Uint8Array(1))); + const kw = await subtle.importKey('raw', new Uint8Array(16), { name: 'AES-KW' }, false, ['unwrapKey']); + await checkAsync('wrapKey without usage', () => subtle.wrapKey('raw', hmacSign, kw, 'AES-KW')); + + const hmac = (length, usages) => subtle.importKey('raw', new Uint8Array(32), { name: 'HMAC', hash: 'SHA-256', length }, false, usages); + await checkAsync('HMAC usage deriveBits', () => hmac(undefined, ['deriveBits'])); + await checkAsync('HMAC length 0', () => hmac(0, ['sign'])); + await checkAsync('HMAC length 384', () => hmac(384, ['sign'])); + const jwk = await subtle.exportKey('jwk', hmacSign); + lines.push(`HMAC SHA-256 jwk alg: ${jwk.alg}`); + await checkAsync('HMAC jwk alg HS384', () => subtle.importKey('jwk', { ...jwk, alg: 'HS384' }, { name: 'HMAC', hash: 'SHA-256' }, true, ['sign'])); + await checkAsync('HMAC jwk without alg', async () => (await subtle.importKey('jwk', { ...jwk, alg: undefined }, { name: 'HMAC', hash: 'SHA-256' }, true, ['sign'])).algorithm.length); + const sha3 = await subtle.importKey('raw', new Uint8Array(32), { name: 'HMAC', hash: 'SHA3-256' }, true, ['sign']); + lines.push(`HMAC SHA3-256 jwk alg: ${(await subtle.exportKey('jwk', sha3)).alg}`); + return lines; +} + export function x25519Agreement() { const privateKey = (hex) => createPrivateKey({ key: Buffer.from('302e020100300506032b656e04220420' + hex, 'hex'), format: 'der', type: 'pkcs8', @@ -342,6 +499,46 @@ export function p521KeyPair() { const onCurve = ([x, y]) => mod(y * y - (x * x * x - 3n * x + b)) === 0n; const big = (value) => BigInt('0x' + Buffer.from(value, 'base64url').toString('hex')); + // Raw P-521 scalars have exactly 66 bytes. Independent SEC 2 points G/-G + // also check noncanonical imports, including values needing many reductions. + const scalar = (v) => Buffer.from(v.toString(16).padStart(132, '0'), 'hex'); + const rawImports = {}; + for (const namedCurve of ['P-521', 'secp521r1']) { + const observed = rawImports[namedCurve] = {}; + for (const [name, d, y] of [ + ['one', 1n, g[1]], ['orderMinusOne', n - 1n, p - g[1]], + ['orderPlusOne', n + 1n, g[1]], ['largePlusOne', 127n * n + 1n, g[1]], + ['largeMinusOne', 127n * n - 1n, p - g[1]], + ]) { + const bytes = scalar(d); + try { + const key = createPrivateKey({ key: bytes, format: 'raw-private', asymmetricKeyType: 'ec', namedCurve }); + const rawJwk = key.export({ format: 'jwk' }); + observed[name] = { + x: big(rawJwk.x) === g[0], y: big(rawJwk.y) === y, + d: big(rawJwk.d) === d, raw: key.export({ format: 'raw-private' }).equals(bytes), + }; + } catch (e) { + observed[name] = `${e.name} ${e.code}`; + } + } + for (const bytes of [ + Buffer.from([1]), Buffer.alloc(65, 1), Buffer.alloc(67, 1), + Buffer.alloc(0), Buffer.alloc(6600, 0x55), + ]) { + try { + createPrivateKey({ key: bytes, format: 'raw-private', asymmetricKeyType: 'ec', namedCurve }); + observed['length' + bytes.length] = 'accepted'; + } catch (e) { + observed['length' + bytes.length] = `${e.name} ${e.code}`; + } + } + } + // Lower tiers can report the raw-import contract without generating an unsupported key. + if (rawImports['P-521'].one === 'Error ERR_CRYPTO_INVALID_CURVE') { + return JSON.stringify({ rawImports }); + } + const { privateKey, publicKey } = generateKeyPairSync('ec', { namedCurve: 'P-521' }); const jwk = privateKey.export({ format: 'jwk' }); const publicJwk = publicKey.export({ format: 'jwk' }); @@ -353,6 +550,16 @@ export function p521KeyPair() { if (k & 1n) expected = add(expected, addend); addend = add(addend, addend); } + const exportRoundTrips = [ + ['der', 'sec1'], ['pem', 'sec1'], + ['pem', 'pkcs8', 'aes-128-cbc'], + ['pem', 'pkcs8', 'aes-256-cbc'], + ].map(([format, type, cipher]) => { + const passphrase = cipher ? 'p521 export' : undefined; + const encoded = privateKey.export({ format, type, cipher, passphrase }); + const restored = createPrivateKey({ key: encoded, format, type, passphrase }).export({ format: 'jwk' }); + return restored.d === jwk.d && restored.x === jwk.x && restored.y === jwk.y; + }); return JSON.stringify({ crv: publicJwk.crv, generatorOnCurve: onCurve(g), @@ -360,6 +567,8 @@ export function p521KeyPair() { scalarInRange: d > 0n && d < n, publicIsScalarTimesGenerator: expected !== null && expected[0] === point[0] && expected[1] === point[1], privateCarriesPublic: jwk.x === publicJwk.x && jwk.y === publicJwk.y, + exportRoundTrips, + rawImports, }); } @@ -794,6 +1003,9 @@ const DSA_ENCODING_FIXTURE = { export async function dsaEncodingForms() { const h = (s) => Buffer.from(s, 'hex'); const msg = Buffer.from('message'); + const viaCallback = (fn) => new Promise((resolve, reject) => { + fn((error, value) => error ? reject(error) : resolve(value)); + }); const run = (fn) => { try { return fn(); @@ -815,6 +1027,8 @@ export async function dsaEncodingForms() { der: verify(hash, msg, key, h(der)), derExplicit: verify(hash, msg, { key, dsaEncoding: 'der' }, h(der)), p1363: verify(hash, msg, raw, h(p1363)), + p1363Callback: await viaCallback((cb) => verify(hash, msg, raw, h(p1363), cb)), + p1363AlteredCallback: await viaCallback((cb) => verify(hash, msg, raw, altered, cb)), p1363AsDer: verify(hash, msg, key, h(p1363)), derAsP1363: verify(hash, msg, raw, h(der)), p1363OtherMessage: verify(hash, Buffer.from('messagf'), raw, h(p1363)), @@ -828,12 +1042,25 @@ export async function dsaEncodingForms() { for (const [name, curve, hash] of [['p256', 'P-256', 'sha256'], ['p521', 'P-521', 'sha512']]) { const own = generateKeyPairSync('ec', { namedCurve: curve }); const sig = sign(hash, msg, { key: own.privateKey, dsaEncoding: 'ieee-p1363' }); + const callbackSig = await viaCallback((cb) => sign(hash, msg, { key: own.privateKey, dsaEncoding: 'ieee-p1363' }, cb)); + own.privateKey.dsaEncoding = 'ieee-p1363'; out['own' + name] = { length: sig.length, p1363: verify(hash, msg, { key: own.publicKey, dsaEncoding: 'ieee-p1363' }, sig), asDer: verify(hash, msg, own.publicKey, sig), streaming: createVerify(hash).update(msg).verify({ key: own.publicKey, dsaEncoding: 'ieee-p1363' }, createSign(hash).update(msg).sign({ key: own.privateKey, dsaEncoding: 'ieee-p1363' })), + callbackLength: callbackSig.length, + callbackSignature: verify(hash, msg, { key: own.publicKey, dsaEncoding: 'ieee-p1363' }, callbackSig), + directKeyCallbackLength: (await viaCallback((cb) => sign(hash, msg, own.privateKey, cb))).length, + invalidSignCallback: run(() => { + sign(hash, msg, { key: own.privateKey, dsaEncoding: 'p1363' }, () => {}); + return 'did not throw'; + }), + invalidVerifyCallback: run(() => { + verify(hash, msg, { key: own.publicKey, dsaEncoding: 'p1363' }, sig, () => {}); + return 'did not throw'; + }), }; } const subtle = crypto.subtle; diff --git a/examples/runtime/crypto/wit/crypto.wit b/examples/runtime/crypto/wit/crypto.wit index 5fe60f118..a2827564f 100644 --- a/examples/runtime/crypto/wit/crypto.wit +++ b/examples/runtime/crypto/wit/crypto.wit @@ -35,6 +35,8 @@ world crypto { export subtle-sign-verify-hmac: func(message: string) -> bool; export subtle-sign-verify-ed25519: func(message: string) -> bool; export subtle-sign-verify-rsa-pss: func(message: string) -> bool; + export crypto-error-contracts: func() -> list; + export webcrypto-error-contracts: func() -> list; export x25519-agreement: func() -> string; export p521-key-pair: func() -> string; export cfrg448-vectors: func() -> string; diff --git a/examples/runtime/dns/src/dns.js b/examples/runtime/dns/src/dns.js index 52c1a3e6a..f48d77759 100644 --- a/examples/runtime/dns/src/dns.js +++ b/examples/runtime/dns/src/dns.js @@ -61,13 +61,13 @@ export async function test() { }); }); - // Test 9: lookup with empty hostname matches Node.js compatibility behavior - // and returns a null address with IPv4 family. - results.nullHostname = await new Promise((resolve) => { - dns.lookup('', (err, address, family) => { - resolve(!err && address === null && family === 4); - }); - }); + // Test 9: like Node.js 26, lookup rejects an empty hostname. + try { + dns.lookup('', () => {}); + results.nullHostname = false; + } catch (e) { + results.nullHostname = e.code === 'ERR_INVALID_ARG_VALUE'; + } // Test 10: lookup with all: true and IP passthrough results.lookupAll = await new Promise((resolve) => { diff --git a/examples/runtime/module-resolution/src/module-resolution.js b/examples/runtime/module-resolution/src/module-resolution.js index f961b48ad..3dd3892b5 100644 --- a/examples/runtime/module-resolution/src/module-resolution.js +++ b/examples/runtime/module-resolution/src/module-resolution.js @@ -2154,7 +2154,9 @@ export const testEsmDataUrlImportAttributes = async () => { 'await expectReject("unsupported extra key for fresh JS URL should reject before type incompatibility", import("data:text/javascript,export default 1#fresh-extra", { with: { type: "json", other: "unsupported" } }), { code: "ERR_IMPORT_ATTRIBUTE_UNSUPPORTED" });', 'const cachedTypeErrorUrl = "data:text/javascript,export default 1#cached-type-error";', 'await expectReject("initial JS URL type mismatch should reject as incompatible", import(cachedTypeErrorUrl, { with: { type: "json" } }), { code: "ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE" });', - 'await expectReject("same JS URL with unsupported extra key should reuse cached type mismatch", import(cachedTypeErrorUrl, { with: { type: "json", other: "unsupported" } }), { code: "ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE" });', + // Node 26 validates attributes before caching a load, so a failed import is not reused. + 'await expectReject("same JS URL with unsupported extra key should revalidate attributes", import(cachedTypeErrorUrl, { with: { type: "json", other: "unsupported" } }), { code: "ERR_IMPORT_ATTRIBUTE_UNSUPPORTED" });', + 'await expectReject("same JS URL type mismatch should still reject as incompatible", import(cachedTypeErrorUrl, { with: { type: "json" } }), { code: "ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE" });', 'await expectReject("CSS import attribute for JSON should reject", import("data:application/json,1", { with: { type: "css" } }), { code: "ERR_IMPORT_ATTRIBUTE_UNSUPPORTED" });', 'const obj = { import(value) { return ["method", value]; } };', 'assert.deepStrictEqual(obj.import("not-a-module", { with: { type: "json" } }), ["method", "not-a-module"]);', @@ -7071,7 +7073,7 @@ export const testCjsDirectNamedExports = async () => { ' hasCommentOnly: Object.prototype.hasOwnProperty.call(ns, "commentOnly"),', ' hasBlockCommentOnly: Object.prototype.hasOwnProperty.call(ns, "blockCommentOnly"),', ' hasStringOnly: Object.prototype.hasOwnProperty.call(ns, "stringOnly"),', - ' falsePositiveKeys: Object.keys(fp).filter((key) => key !== "default" && key !== "real"),', + ' falsePositiveKeys: Object.keys(fp).filter((key) => key !== "default" && key !== "module.exports" && key !== "real"),', ' real: fp.real,', '};', ].join('\n')); @@ -7344,12 +7346,12 @@ export const testCjsReexportNamedExports = async () => { 'import * as nonReexport from "./not-reexport.cjs";', 'export default {', ' alpha, beta, transAlpha, transBeta,', - ' continuationKeys: Object.keys(continuation).filter((key) => key !== "default").sort(),', + ' continuationKeys: Object.keys(continuation).filter((key) => key !== "default" && key !== "module.exports").sort(),', ' continuationAlpha: continuation.alpha,', ' continuationBeta: continuation.beta,', ' continuationNested: continuation.nested,', ' continuationDefault: continuation.default,', - ' nonReexportKeys: Object.keys(nonReexport).filter((key) => key !== "default" && key !== "own"),', + ' nonReexportKeys: Object.keys(nonReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' nonReexportOwn: nonReexport.own,', '};', ].join('\n')); @@ -7862,81 +7864,81 @@ export const testCjsAnalyzerFalsePositiveGuards = async () => { 'import * as objectLiteralCallTerminal from "./object-literal-call-terminal.cjs";', 'import * as objectLiteralMethodTerminal from "./object-literal-method-terminal.cjs";', 'export default {', - ' fpKeys: Object.keys(fp).filter((key) => key !== "default" && key !== "real"),', + ' fpKeys: Object.keys(fp).filter((key) => key !== "default" && key !== "module.exports" && key !== "real"),', ' real: fp.real,', - ' unsafeKeys: Object.keys(unsafe).filter((key) => key !== "default" && key !== "safe"),', + ' unsafeKeys: Object.keys(unsafe).filter((key) => key !== "default" && key !== "module.exports" && key !== "safe"),', ' safe: unsafe.safe,', - ' nonReexportKeys: Object.keys(nonReexport).filter((key) => key !== "default" && key !== "own"),', + ' nonReexportKeys: Object.keys(nonReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' own: nonReexport.own,', - ' foreachPropertyNonCallKeys: Object.keys(foreachPropertyNonCall).filter((key) => key !== "default" && key !== "own"),', + ' foreachPropertyNonCallKeys: Object.keys(foreachPropertyNonCall).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' foreachPropertyNonCallOwn: foreachPropertyNonCall.own,', - ' nestedReexportKeys: Object.keys(nestedReexport).filter((key) => key !== "default" && key !== "own"),', + ' nestedReexportKeys: Object.keys(nestedReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' nestedOwn: nestedReexport.own,', - ' nestedRequireBindingKeys: Object.keys(nestedRequireBinding).filter((key) => key !== "default" && key !== "own"),', + ' nestedRequireBindingKeys: Object.keys(nestedRequireBinding).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' nestedRequireBindingOwn: nestedRequireBinding.own,', - ' unguardedReexportKeys: Object.keys(unguardedReexport).filter((key) => key !== "default"),', - ' hiddenDescriptorReexportKeys: Object.keys(hiddenDescriptorReexport).filter((key) => key !== "default" && key !== "own"),', + ' unguardedReexportKeys: Object.keys(unguardedReexport).filter((key) => key !== "default" && key !== "module.exports"),', + ' hiddenDescriptorReexportKeys: Object.keys(hiddenDescriptorReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' hiddenDescriptorOwn: hiddenDescriptorReexport.own,', - ' extraDescriptorReexportKeys: Object.keys(extraDescriptorReexport).filter((key) => key !== "default" && key !== "own"),', + ' extraDescriptorReexportKeys: Object.keys(extraDescriptorReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' extraDescriptorOwn: extraDescriptorReexport.own,', - ' duplicateEnumerableReexportKeys: Object.keys(duplicateEnumerableReexport).filter((key) => key !== "default" && key !== "own"),', + ' duplicateEnumerableReexportKeys: Object.keys(duplicateEnumerableReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' duplicateEnumerableOwn: duplicateEnumerableReexport.own,', - ' getterOnlyReexportKeys: Object.keys(getterOnlyReexport).filter((key) => key !== "default" && key !== "own"),', + ' getterOnlyReexportKeys: Object.keys(getterOnlyReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' getterOnlyOwn: getterOnlyReexport.own,', - ' getterBeforeEnumerableReexportKeys: Object.keys(getterBeforeEnumerableReexport).filter((key) => key !== "default" && key !== "own"),', + ' getterBeforeEnumerableReexportKeys: Object.keys(getterBeforeEnumerableReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' getterBeforeEnumerableOwn: getterBeforeEnumerableReexport.own,', ' namedFunctionGetterAlpha: namedFunctionGetterReexport.alpha,', - ' nestedGetterReexportKeys: Object.keys(nestedGetterReexport).filter((key) => key !== "default" && key !== "own"),', + ' nestedGetterReexportKeys: Object.keys(nestedGetterReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' nestedGetterOwn: nestedGetterReexport.own,', - ' otherBindingGetterReexportKeys: Object.keys(otherBindingGetterReexport).filter((key) => key !== "default" && key !== "own"),', + ' otherBindingGetterReexportKeys: Object.keys(otherBindingGetterReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' otherBindingGetterOwn: otherBindingGetterReexport.own,', - ' otherKeyGetterReexportKeys: Object.keys(otherKeyGetterReexport).filter((key) => key !== "default" && key !== "own"),', + ' otherKeyGetterReexportKeys: Object.keys(otherKeyGetterReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' otherKeyGetterOwn: otherKeyGetterReexport.own,', - ' reversedGuardReexportKeys: Object.keys(reversedGuardReexport).filter((key) => key !== "default" && key !== "own"),', + ' reversedGuardReexportKeys: Object.keys(reversedGuardReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' reversedGuardOwn: reversedGuardReexport.own,', - ' delayedGuardReexportKeys: Object.keys(delayedGuardReexport).filter((key) => key !== "default" && key !== "own"),', + ' delayedGuardReexportKeys: Object.keys(delayedGuardReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' delayedGuardOwn: delayedGuardReexport.own,', - ' nestedGuardReexportKeys: Object.keys(nestedGuardReexport).filter((key) => key !== "default" && key !== "own"),', + ' nestedGuardReexportKeys: Object.keys(nestedGuardReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' nestedGuardOwn: nestedGuardReexport.own,', - ' forHeaderBindingKeys: Object.keys(forHeaderBinding).filter((key) => key !== "default" && key !== "own"),', + ' forHeaderBindingKeys: Object.keys(forHeaderBinding).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' forHeaderBindingOwn: forHeaderBinding.own,', ' commentedAlpha: commentedReexport.alpha,', ' lineCommentedAlpha: lineCommentedReexport.alpha,', - ' arrowCallbackReexportKeys: Object.keys(arrowCallbackReexport).filter((key) => key !== "default" && key !== "own"),', + ' arrowCallbackReexportKeys: Object.keys(arrowCallbackReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' arrowCallbackOwn: arrowCallbackReexport.own,', - ' extraArgReexportKeys: Object.keys(extraArgReexport).filter((key) => key !== "default" && key !== "own"),', + ' extraArgReexportKeys: Object.keys(extraArgReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' extraArgOwn: extraArgReexport.own,', ' hasOwnGuardAlpha: hasOwnGuardReexport.alpha,', ' duplicateReturnGuardAlpha: duplicateReturnGuardReexport.alpha,', ' moduleExportsDuplicateReturnGuardAlpha: moduleExportsDuplicateReturnGuardReexport.alpha,', - ' skipMapReturnGuardKeys: Object.keys(skipMapReturnGuard).filter((key) => key !== "default" && key !== "own"),', - ' objectHasOwnReturnGuardKeys: Object.keys(objectHasOwnReturnGuard).filter((key) => key !== "default" && key !== "own"),', - ' skipMapDuplicateShapeReturnGuardKeys: Object.keys(skipMapDuplicateShapeReturnGuard).filter((key) => key !== "default" && key !== "own"),', - ' otherBindingDuplicateShapeReturnGuardKeys: Object.keys(otherBindingDuplicateShapeReturnGuard).filter((key) => key !== "default" && key !== "own"),', + ' skipMapReturnGuardKeys: Object.keys(skipMapReturnGuard).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', + ' objectHasOwnReturnGuardKeys: Object.keys(objectHasOwnReturnGuard).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', + ' skipMapDuplicateShapeReturnGuardKeys: Object.keys(skipMapDuplicateShapeReturnGuard).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', + ' otherBindingDuplicateShapeReturnGuardKeys: Object.keys(otherBindingDuplicateShapeReturnGuard).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' asiAlpha: asiReexport.alpha,', ' renamedKeyAlpha: renamedKeyReexport.alpha,', - ' requireContinuationKeys: Object.keys(requireContinuation).filter((key) => key !== "default" && key !== "own"),', - ' statementContinuationKeys: Object.keys(statementContinuation).filter((key) => key !== "default" && key !== "own"),', - ' conditionalBodyReexportKeys: Object.keys(conditionalBodyReexport).filter((key) => key !== "default" && key !== "own"),', - ' interveningStatementReexportKeys: Object.keys(interveningStatementReexport).filter((key) => key !== "default" && key !== "own"),', + ' requireContinuationKeys: Object.keys(requireContinuation).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', + ' statementContinuationKeys: Object.keys(statementContinuation).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', + ' conditionalBodyReexportKeys: Object.keys(conditionalBodyReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', + ' interveningStatementReexportKeys: Object.keys(interveningStatementReexport).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' prefixAsiAlpha: prefixAsiReexport.alpha,', - ' continuationKeys: Object.keys(continuation).filter((key) => key !== "default"),', + ' continuationKeys: Object.keys(continuation).filter((key) => key !== "default" && key !== "module.exports"),', ' continuationDefault: continuation.default,', - ' bindingContinuationKeys: Object.keys(bindingContinuation).filter((key) => key !== "default" && key !== "own"),', + ' bindingContinuationKeys: Object.keys(bindingContinuation).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' bindingContinuationOwn: bindingContinuation.own,', - ' objectLiteralValueKeys: Object.keys(objectLiteralValues).filter((key) => key !== "default").sort(),', + ' objectLiteralValueKeys: Object.keys(objectLiteralValues).filter((key) => key !== "default" && key !== "module.exports").sort(),', ' identifierValue: objectLiteralValues.identifierValue,', ' callExpression: objectLiteralValues.callExpression,', - ' objectLiteralRequireValueKeys: Object.keys(objectLiteralRequireValue).filter((key) => key !== "default").sort(),', + ' objectLiteralRequireValueKeys: Object.keys(objectLiteralRequireValue).filter((key) => key !== "default" && key !== "module.exports").sort(),', ' requireValue: objectLiteralRequireValue.requireValue,', - ' objectLiteralRequireSpreadContinuationKeys: Object.keys(objectLiteralRequireSpreadContinuation).filter((key) => key !== "default" && key !== "before").sort(),', + ' objectLiteralRequireSpreadContinuationKeys: Object.keys(objectLiteralRequireSpreadContinuation).filter((key) => key !== "default" && key !== "module.exports" && key !== "before").sort(),', ' objectLiteralRequireSpreadContinuationBefore: objectLiteralRequireSpreadContinuation.before,', ' objectLiteralRequireSpreadContinuationAlpha: objectLiteralRequireSpreadContinuation.alpha,', ' objectLiteralRequireSpreadContinuationNested: objectLiteralRequireSpreadContinuation.nested,', - ' objectLiteralUnsupportedKeys: Object.keys(objectLiteralUnsupported).filter((key) => key !== "default").sort(),', - ' objectLiteralCallTerminalKeys: Object.keys(objectLiteralCallTerminal).filter((key) => key !== "default").sort(),', + ' objectLiteralUnsupportedKeys: Object.keys(objectLiteralUnsupported).filter((key) => key !== "default" && key !== "module.exports").sort(),', + ' objectLiteralCallTerminalKeys: Object.keys(objectLiteralCallTerminal).filter((key) => key !== "default" && key !== "module.exports").sort(),', ' callValue: objectLiteralCallTerminal.callValue,', - ' objectLiteralMethodTerminalKeys: Object.keys(objectLiteralMethodTerminal).filter((key) => key !== "default").sort(),', + ' objectLiteralMethodTerminalKeys: Object.keys(objectLiteralMethodTerminal).filter((key) => key !== "default" && key !== "module.exports").sort(),', ' methodType: typeof objectLiteralMethodTerminal.method,', '};', ].join('\n')); @@ -9583,9 +9585,9 @@ export const testCjsPackageReexportNamedExports = async () => { 'import symlinkCycleDefault, { symlinkCycleValue } from "./symlink-cycle-entry.cjs";', 'export default {', ' alpha, beta, defaultAlpha: packageDefault.alpha, sub, file, probeExact, probeJs, probeIndex, bareNonStringMain, bareNullMain, main, feature, condition, imported, importsCondition, importsPattern, importsBareExternal, relativeMain, relativeIndex, dotName, dotdotName, nonStringMainIndex, gamma, delta,', - ' continuationKeys: Object.keys(continuation).filter((key) => key !== "default" && key !== "own"),', + ' continuationKeys: Object.keys(continuation).filter((key) => key !== "default" && key !== "module.exports" && key !== "own"),', ' continuationOwn: continuation.own,', - ' cycleKeys: Object.keys(cycle).filter((key) => key !== "default").sort(),', + ' cycleKeys: Object.keys(cycle).filter((key) => key !== "default" && key !== "module.exports").sort(),', ' symlinkCycleValue,', ' symlinkCycleDefaultValue: symlinkCycleDefault.symlinkCycleValue,', '};', @@ -9881,9 +9883,10 @@ export const testVmMainContextDefaultLoader = async () => { ].join('\n')); assert.strictEqual(util.inspect(inspectSourceTextModule, { depth: -1 }), '[SourceTextModule]'); const inspectSyntheticModule = new vm.SyntheticModule([], () => {}, { context: inspectContext }); + // Node 26 links a SyntheticModule when it is constructed. assert.strictEqual(util.inspect(inspectSyntheticModule), [ 'SyntheticModule {', - " status: 'unlinked',", + " status: 'linked',", " identifier: 'vm:module(0)',", " context: { foo: 'bar' }", '}', @@ -9892,8 +9895,8 @@ export const testVmMainContextDefaultLoader = async () => { for (const invalidThis of [null, { __proto__: null }, vm.SourceTextModule.prototype]) { assert.throws(() => inspectSourceTextModule[util.inspect.custom].call(invalidThis), { name: 'TypeError', - code: 'ERR_INVALID_ARG_TYPE', - message: /The "this" argument must be an instance of Module/, + code: 'ERR_INVALID_THIS', + message: 'Value of "this" must be of type Module', }); } assert.throws(() => new vm.SyntheticModule(undefined, () => {}, {}), { @@ -10047,10 +10050,14 @@ export const testVmMainContextDefaultLoader = async () => { assert.throws(() => syntheticModule.setExport(1, 2), TypeError); assert.throws(() => syntheticModule.setExport('missing', 2), ReferenceError); + // Node 26 links a SyntheticModule at construction, so exports can be set before evaluate(). const prelinkedSynthetic = new vm.SyntheticModule(['x'], function() {}); - assert.throws(() => prelinkedSynthetic.setExport('x', 1), { - code: 'ERR_VM_MODULE_STATUS', - }); + assert.strictEqual(prelinkedSynthetic.status, 'linked'); + prelinkedSynthetic.setExport('x', 1); + assert.strictEqual(prelinkedSynthetic.namespace.x, 1); + await prelinkedSynthetic.evaluate(); + assert.strictEqual(prelinkedSynthetic.status, 'evaluated'); + assert.strictEqual(prelinkedSynthetic.namespace.x, 1); const rejectedSynthetic = new vm.SyntheticModule([], function() { const promise = Promise.reject(new Error('ignored')); diff --git a/examples/runtime/node-http/src/node-http.js b/examples/runtime/node-http/src/node-http.js index ffcb93a80..1d0726b97 100644 --- a/examples/runtime/node-http/src/node-http.js +++ b/examples/runtime/node-http/src/node-http.js @@ -734,7 +734,8 @@ export function httpResponseLifecycle() { } return Buffer.concat(wire).toString().endsWith('\r\n\r\nbody') && - order.join(',') === 'listener,callback' && + // Like Node 26, end() callbacks run before 'finish' listeners. + order.join(',') === 'callback,listener' && writeOrder.join(',') === 'after-write,callback' && throwingMessage === 'socket write failed' && throwingCallbackCount === 0 && @@ -821,9 +822,9 @@ export async function httpResponseRepeatedEndCallbacks() { Buffer.concat(wire).toString().endsWith('\r\n\r\nbody') === false || finishCount !== 1 || firstCallbackCount !== 1 || - firstCallbackError !== undefined || + firstCallbackError !== null || queuedCallbackCount !== 1 || - queuedCallbackError !== undefined || + queuedCallbackError !== null || !queuedCallbackWasAsync || finishedCallbackCount !== 1 || finishedCallbackCode !== 'ERR_STREAM_ALREADY_FINISHED' || @@ -861,7 +862,7 @@ export async function httpResponseRepeatedEndCallbacks() { if ( !blockedResponse.writableFinished || blockedCallbackCount !== 1 || - blockedCallbackError !== undefined + blockedCallbackError !== null ) { return false; } @@ -944,6 +945,7 @@ export async function httpResponseRepeatedEndCallbacks() { let responseErrorCount = 0; let cancelledFinishCount = 0; let endCallbackCount = 0; + let endCallbackError; let writeCallbackCount = 0; let writeCallbackError; socket.on('error', (error) => { @@ -963,14 +965,20 @@ export async function httpResponseRepeatedEndCallbacks() { writeCallbackCount++; writeCallbackError = error; }); - response.end('body', () => endCallbackCount++); + response.end('body', (error) => { + endCallbackCount++; + endCallbackError = error; + }); socket.destroy(withError ? expectedError : undefined); for (const completion of completions) { if (typeof completion === 'function') completion(expectedError); } await new Promise((resolve) => setImmediate(resolve)); + // Like Node 26, a cancelled flush reports its error to the end() callback + // and the response never emits 'finish'. if (responseErrorCount !== 0 || - cancelledFinishCount !== 1 || endCallbackCount !== 1 || + cancelledFinishCount !== 0 || endCallbackCount !== 1 || + endCallbackError !== expectedError || writeCallbackCount !== 1 || writeCallbackError !== expectedError || socketCloseCount !== 1 || socketErrorCount !== Number(withError) || (withError && socketError !== expectedError)) { diff --git a/examples/runtime/sqlite/src/sqlite.js b/examples/runtime/sqlite/src/sqlite.js index f42c589d7..6afbff336 100644 --- a/examples/runtime/sqlite/src/sqlite.js +++ b/examples/runtime/sqlite/src/sqlite.js @@ -1,6 +1,7 @@ import { DatabaseSync, serializeDatabaseSync, restoreDatabaseSync, isAutocommitDatabaseSync } from 'node:sqlite'; import * as fs from 'node:fs'; import * as path from 'node:path'; +import assert from 'node:assert/strict'; let tmpCounter = 0; @@ -219,3 +220,174 @@ export function testTypeValidation() { return true; } + +export function testPrepareOptions() { + const db = new DatabaseSync(':memory:', { + readBigInts: true, + returnArrays: true, + allowBareNamedParameters: false, + allowUnknownNamedParameters: true, + }); + try { + const keys = ['returnArrays', 'readBigInts', 'allowBareNamedParameters', 'allowUnknownNamedParameters']; + for (const key of keys) { + for (const value of [null, 'true', 1, {}]) { + assert.throws(() => db.prepare('SELECT 7', { [key]: value }), { + name: 'TypeError', code: 'ERR_INVALID_ARG_TYPE', + message: `The "options.${key}" argument must be a boolean.`, + }); + } + } + for (const options of [null, 0, 'options', false]) { + assert.throws(() => db.prepare('SELECT 7', options), { + name: 'TypeError', code: 'ERR_INVALID_ARG_TYPE', + message: 'The "options" argument must be an object.', + }); + } + + const calls = []; + const options = {}; + for (const key of keys) { + Object.defineProperty(options, key, { + get() { calls.push(key); return undefined; }, + }); + } + assert.deepEqual(db.prepare("SELECT 7 AS n, 'pear' AS label", options).get(), [7n, 'pear']); + assert.deepEqual(calls, keys); + for (let i = 0; i < keys.length - 1; i++) { + const options = { + [keys[i]]: null, + get [keys[i + 1]]() { throw new Error('later option must not be read'); }, + }; + assert.throws(() => db.prepare('SELECT 7', options), { + code: 'ERR_INVALID_ARG_TYPE', + message: `The "options.${keys[i]}" argument must be a boolean.`, + }); + } + const sentinel = new Error('option getter'); + assert.throws(() => db.prepare('SELECT 7', { + get readBigInts() { throw sentinel; }, + }), error => error === sentinel); + const unread = { get returnArrays() { throw sentinel; } }; + assert.throws(() => db.prepare(null, unread), { + code: 'ERR_INVALID_ARG_TYPE', message: /The "sql" argument must be a string/, + }); + + for (const options of [undefined, {}, [], () => {}, { readBigInts: undefined, returnArrays: undefined }]) { + assert.deepEqual(db.prepare("SELECT 7 AS n, 'pear' AS label", options).get(), [7n, 'pear']); + } + const query = db.prepare("SELECT 7 AS n, 'pear' AS label", Object.create({ + readBigInts: false, returnArrays: false, + })); + assert.deepEqual(query.get(), { __proto__: null, n: 7, label: 'pear' }); + query.setReadBigInts(true); + query.setReturnArrays(true); + assert.deepEqual(query.get(), [7n, 'pear']); + + const sql = 'SELECT $left AS x, $right AS y'; + assert.deepEqual(db.prepare(sql).get({ left: 13n, right: 29n }), [null, null]); + const named = db.prepare(sql, Object.create({ allowBareNamedParameters: true })); + assert.deepEqual(named.get({ left: 13n, right: 29n, extra: 41n }), [13n, 29n]); + const strict = db.prepare(sql, { + allowBareNamedParameters: true, allowUnknownNamedParameters: false, + }); + assert.throws(() => strict.get({ left: 13n, right: 29n, extra: 41n }), { code: 'ERR_INVALID_STATE' }); + strict.setAllowUnknownNamedParameters(true); + assert.deepEqual(strict.get({ left: 13n, right: 29n, extra: 41n }), [13n, 29n]); + named.setAllowBareNamedParameters(false); + assert.deepEqual(named.get({ left: 13n, right: 29n }), [null, null]); + assert.deepEqual(named.get({ $left: 13n, $right: 29n }), [13n, 29n]); + for (const key of keys) { + const descriptor = Object.getOwnPropertyDescriptor(Object.prototype, key); + let row; + try { + Object.defineProperty(Object.prototype, key, { + configurable: true, get() { return false; }, + }); + row = db.prepare(sql, { + returnArrays: true, readBigInts: true, + allowBareNamedParameters: true, allowUnknownNamedParameters: true, + }).get({ left: 13n, right: 29n, extra: 41n }); + } finally { + if (descriptor) Object.defineProperty(Object.prototype, key, descriptor); + else delete Object.prototype[key]; + } + assert.deepEqual(row, [13n, 29n]); + } + for (const value of [undefined, null]) { + const closing = new DatabaseSync(':memory:'); + assert.throws(() => closing.prepare('SELECT 7', { + get returnArrays() { closing.close(); return value; }, + }), value === undefined ? { + code: 'ERR_INVALID_STATE', message: 'database is not open', + } : { + code: 'ERR_INVALID_ARG_TYPE', + message: 'The "options.returnArrays" argument must be a boolean.', + }); + } + db.close(); + assert.throws(() => db.prepare(null, unread), { + code: 'ERR_INVALID_STATE', message: 'database is not open', + }); + } finally { + if (db.isOpen) db.close(); + } + return true; +} + +export function testTransactionState() { + const db = new DatabaseSync(':memory:', { open: false }); + const closed = { code: 'ERR_INVALID_STATE', message: 'database is not open' }; + assert.throws(() => db.isTransaction, closed); + try { + db.open(); + assert.equal(db.isTransaction, false); + db.exec('CREATE TABLE values_test (n INTEGER)'); + db.exec('BEGIN; INSERT INTO values_test VALUES (13)'); + assert.equal(db.isTransaction, true); + db.exec('COMMIT'); + assert.equal(db.isTransaction, false); + db.exec('BEGIN; INSERT INTO values_test VALUES (29)'); + assert.equal(db.isTransaction, true); + db.exec('ROLLBACK'); + assert.equal(db.isTransaction, false); + assert.deepEqual(db.prepare('SELECT n FROM values_test').all(), [{ __proto__: null, n: 13 }]); + db.close(); + assert.throws(() => db.isTransaction, closed); + db.open(); + assert.equal(db.isTransaction, false); + } finally { + if (db.isOpen) db.close(); + } + return true; +} + +export function testNumberBinding() { + const db = new DatabaseSync(':memory:'); + try { + for (const readBigInts of [true, false]) { + const query = db.prepare('SELECT $n AS n, typeof($n) AS kind, $b AS b, typeof($b) AS bigint_kind', { readBigInts }); + for (const n of [13, -7, 2 ** 40 + 1, Number.MAX_SAFE_INTEGER, 1.25, Infinity, -Infinity]) { + const expected = { __proto__: null, n, kind: 'real', b: readBigInts ? 29n : 29, bigint_kind: 'integer' }; + assert.deepEqual(query.get({ n, b: 29n }), expected); + assert.deepEqual(query.all({ n, b: 29n }), [expected]); + assert.deepEqual([...query.iterate({ n, b: 29n })], [expected]); + } + assert.deepEqual(db.prepare('SELECT ? AS n, typeof(?) AS kind', { readBigInts }).get(NaN, NaN), { + __proto__: null, n: null, kind: 'null', + }); + } + db.exec('CREATE TABLE affinity_test (i INTEGER, r REAL, untyped)'); + const insert = db.prepare('INSERT INTO affinity_test VALUES (?, ?, ?)'); + insert.run(13, 29n, -7); + assert.deepEqual(db.prepare('SELECT i, r, untyped, typeof(untyped) AS kind FROM affinity_test', { + readBigInts: true, + }).get(), { __proto__: null, i: 13n, r: 29, untyped: -7, kind: 'real' }); + assert.deepEqual(db.prepare('SELECT ? AS n, typeof(?) AS kind', { + readBigInts: true, + }).get(-0, -0), { __proto__: null, n: -0, kind: 'real' }); + } finally { + db.close(); + } + return true; +} diff --git a/examples/runtime/sqlite/wit/sqlite.wit b/examples/runtime/sqlite/wit/sqlite.wit index 3a214dd95..2a9a0cefe 100644 --- a/examples/runtime/sqlite/wit/sqlite.wit +++ b/examples/runtime/sqlite/wit/sqlite.wit @@ -11,4 +11,7 @@ world sqlite { export test-wal-mode-snapshot: func() -> bool; export test-autocommit-tracking: func() -> bool; export test-type-validation: func() -> bool; + export test-prepare-options: func() -> bool; + export test-transaction-state: func() -> bool; + export test-number-binding: func() -> bool; } diff --git a/examples/runtime/streams/src/streams.js b/examples/runtime/streams/src/streams.js index c6bd31793..1d6f2d186 100644 --- a/examples/runtime/streams/src/streams.js +++ b/examples/runtime/streams/src/streams.js @@ -246,3 +246,23 @@ export async function testDuplexFromWeb() { } return result; } + +// ReadableStream.from gets the iterator eagerly, and rejects a non-object iterator as Node 26 does. +export function testReadableStreamFromIterator() { + let called = 0; + const stream = ReadableStream.from({ + [Symbol.iterator]() { + called++; + return [1][Symbol.iterator](); + }, + }); + assert.ok(stream instanceof ReadableStream); + assert.strictEqual(called, 1); + assert.throws(() => ReadableStream.from({ [Symbol.iterator]() { return 1; } }), { + name: 'TypeError', + code: 'ERR_INVALID_STATE', + message: 'Invalid state: The iterator method must return an object', + }); + return 'ok'; +} + diff --git a/examples/runtime/streams/wit/streams.wit b/examples/runtime/streams/wit/streams.wit index 9d65c9257..4c9d82292 100644 --- a/examples/runtime/streams/wit/streams.wit +++ b/examples/runtime/streams/wit/streams.wit @@ -12,4 +12,5 @@ world streams { export test-writable-from-web: func() -> string; export test-writable-to-web: func() -> string; export test-duplex-from-web: func() -> string; + export test-readable-stream-from-iterator: func() -> string; } diff --git a/examples/runtime/structured-clone/src/structured-clone.js b/examples/runtime/structured-clone/src/structured-clone.js index 4df4f95e0..d6e65fab5 100644 --- a/examples/runtime/structured-clone/src/structured-clone.js +++ b/examples/runtime/structured-clone/src/structured-clone.js @@ -330,9 +330,13 @@ export async function testPolicyCase(index) { const outer = new Constructor([blob]); assert.equal(await structuredClone(outer).text(), 'hello world'); } - const file = structuredClone(new BufferFile(['hi'],'secret.txt',{type:'TEXT/PLAIN'})); + // Node 26 keeps a File's name and lastModified across structuredClone (nodejs/node#47612). + const file = structuredClone(new BufferFile(['hi'],'secret.txt',{type:'TEXT/PLAIN', lastModified: 5})); assert.equal(await file.text(), 'hi'); - assert.equal(file.name, undefined); + assert.equal(file instanceof BufferFile, true); + assert.equal(file.name, 'secret.txt'); + assert.equal(file.lastModified, 5); + assert.equal(file.type, 'text/plain'); break; } case 7: { diff --git a/examples/runtime/url/src/url.js b/examples/runtime/url/src/url.js index 5ea70f2b0..9b3a5bf2f 100644 --- a/examples/runtime/url/src/url.js +++ b/examples/runtime/url/src/url.js @@ -339,21 +339,20 @@ export const test10 = () => { } } - const invalidPort = url.parse('http://faß.example:abc/'); - if (invalidPort.hostname !== 'xn--fa-hia.example') return false; - if (invalidPort.pathname !== '/:abc/') return false; - if (invalidPort.href !== 'http://xn--fa-hia.example/:abc/') return false; - - const multiColon = url.parse('http://faß.example:abc:def/path'); - if (multiColon.hostname !== 'xn--fa-hia.example') return false; - if (multiColon.pathname !== '/:abc:def/path') return false; - if (multiColon.href !== 'http://xn--fa-hia.example/:abc:def/path') return false; - - const multiColonWithPort = url.parse('http://example.com::80/path'); - if (multiColonWithPort.hostname !== 'example.com') return false; - if (multiColonWithPort.port !== '80') return false; - if (multiColonWithPort.pathname !== '/:/path') return false; - if (multiColonWithPort.href !== 'http://example.com:80/:/path') return false; + // Like Node 26, url.parse() rejects a host with an invalid port instead of moving it to the path. + for (const invalidPort of [ + 'http://faß.example:abc/', + 'http://faß.example:abc:def/path', + 'http://example.com::80/path', + ]) { + try { + url.parse(invalidPort); + return false; + } catch (error) { + if (error.code !== 'ERR_INVALID_ARG_VALUE') return false; + if (error.message !== `The argument 'url' ${invalidPort}. Received 'Invalid port in url'`) return false; + } + } const slashesHost = url.parse('//example.com/path', false, true); if (slashesHost.hostname !== 'example.com') return false; diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 6e2000a97..67303e9fa 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -2921,7 +2921,7 @@ fn is_unevaluated_node_compat_reason(reason: &str) -> bool { r == "newly discovered, not yet evaluated" || r.starts_with("inherited: newly discovered") } -fn node_compat_category_from_entry( +pub fn node_compat_category_from_entry( path: &str, entry: &serde_json::Value, inherited: Option, @@ -2991,6 +2991,20 @@ pub fn load_node_compat_config_with_suite_root( .and_then(|v| v.as_object()) .ok_or_else(|| anyhow::anyhow!("config.jsonc missing 'tests' object"))?; + // Every configured entry counts in the inventory, so its source must exist; otherwise the + // runner and report would silently disagree about the denominator. + let missing: Vec<&String> = tests_obj + .keys() + .filter(|path| !suite_root.join(path).is_file()) + .collect(); + if !missing.is_empty() { + return Err(anyhow!( + "{} node_compat config entries have no vendored source under {}: {missing:?}; map each one to its replacement or remove it with a recorded reason", + missing.len(), + suite_root.display() + )); + } + let mut tests = Vec::new(); for (path, opts) in tests_obj { let category = node_compat_category_from_entry(path, opts, None, suite_root)?; @@ -3207,6 +3221,7 @@ pub fn copy_dir_recursive(src: &std::path::Path, dst: &std::path::Path) -> anyho /// - `/home/node/test/common/` — common shims /// - `/tmp/` — for tmpdir shim /// - `/home/node/test/fixtures/` — fixture data files (recursively copied) +/// - `/home/node/test/sqlite/` — vendored sqlite test helpers, when present pub fn setup_node_compat_test_files(temp: &Utf8Path, test_rel_path: &str) -> anyhow::Result<()> { // Parse the suite name from the relative path (e.g., "parallel/test-foo.js" → "parallel") let suite = test_rel_path.split('/').next().unwrap_or("parallel"); @@ -3271,7 +3286,8 @@ pub fn setup_node_compat_test_files(temp: &Utf8Path, test_rel_path: &str) -> any } } - // Copy vendored ESM common helpers that are not replaced by local shims. + // Copy vendored ESM common helpers and the trace_events helper that are not replaced by + // local shims. let vendored_common_dir = std::path::Path::new("tests/node_compat/suite/common"); if vendored_common_dir.exists() { for entry in fs::read_dir(vendored_common_dir)? { @@ -3279,7 +3295,7 @@ pub fn setup_node_compat_test_files(temp: &Utf8Path, test_rel_path: &str) -> any let file_name = entry.file_name(); let file_name_str = file_name.to_string_lossy(); if entry.file_type()?.is_file() - && file_name_str.ends_with(".mjs") + && (file_name_str.ends_with(".mjs") || file_name_str == "trace_events.js") && !common_dir.join(file_name_str.as_ref()).exists() { fs::copy(entry.path(), common_dir.join(file_name_str.as_ref()))?; @@ -3310,6 +3326,12 @@ pub fn setup_node_compat_test_files(temp: &Utf8Path, test_rel_path: &str) -> any copy_dir_recursive(vendored_fixtures_src, fixtures_dst.as_std_path())?; } + // Shared sqlite test helpers, such as `require('../sqlite/next-db.js')` + let vendored_sqlite_src = std::path::Path::new("tests/node_compat/suite/sqlite"); + if vendored_sqlite_src.exists() { + copy_dir_recursive(vendored_sqlite_src, test_root.join("sqlite").as_std_path())?; + } + Ok(()) } diff --git a/tests/goldenfiles/generated_types_assert_exports.d.ts b/tests/goldenfiles/generated_types_assert_exports.d.ts index 3843cd3d8..f64581845 100644 --- a/tests/goldenfiles/generated_types_assert_exports.d.ts +++ b/tests/goldenfiles/generated_types_assert_exports.d.ts @@ -13,4 +13,5 @@ declare module 'assert' { export function testStrictMode(): boolean; export function testAssertionError(): boolean; export function testEvalGeneratedMessage(): boolean; + export function testSubtestAfterEachOnce(): boolean; } diff --git a/tests/goldenfiles/generated_types_crypto_exports.d.ts b/tests/goldenfiles/generated_types_crypto_exports.d.ts index aa0d27207..76d92a062 100644 --- a/tests/goldenfiles/generated_types_crypto_exports.d.ts +++ b/tests/goldenfiles/generated_types_crypto_exports.d.ts @@ -33,6 +33,8 @@ declare module 'crypto' { export function subtleSignVerifyHmac(message: string): boolean; export function subtleSignVerifyEd25519(message: string): boolean; export function subtleSignVerifyRsaPss(message: string): boolean; + export function cryptoErrorContracts(): string[]; + export function webcryptoErrorContracts(): string[]; export function x25519Agreement(): string; export function p521KeyPair(): string; export function cfrg448Vectors(): string; diff --git a/tests/goldenfiles/generated_types_sqlite_exports.d.ts b/tests/goldenfiles/generated_types_sqlite_exports.d.ts index 8b6465fff..ad4333526 100644 --- a/tests/goldenfiles/generated_types_sqlite_exports.d.ts +++ b/tests/goldenfiles/generated_types_sqlite_exports.d.ts @@ -9,4 +9,7 @@ declare module 'sqlite' { export function testWalModeSnapshot(): boolean; export function testAutocommitTracking(): boolean; export function testTypeValidation(): boolean; + export function testPrepareOptions(): boolean; + export function testTransactionState(): boolean; + export function testNumberBinding(): boolean; } diff --git a/tests/goldenfiles/generated_types_streams_exports.d.ts b/tests/goldenfiles/generated_types_streams_exports.d.ts index 1904bc56a..584bbf4fa 100644 --- a/tests/goldenfiles/generated_types_streams_exports.d.ts +++ b/tests/goldenfiles/generated_types_streams_exports.d.ts @@ -10,4 +10,5 @@ declare module 'streams' { export function testWritableFromWeb(): string; export function testWritableToWeb(): string; export function testDuplexFromWeb(): string; + export function testReadableStreamFromIterator(): string; } diff --git a/tests/migrate_config_split.rs b/tests/migrate_config_split.rs index 893bac520..b0772da4b 100644 --- a/tests/migrate_config_split.rs +++ b/tests/migrate_config_split.rs @@ -1,524 +1,2554 @@ +//! Re-synchronises `tests/node_compat/config.jsonc` with the vendored Node.js suite. +//! +//! Run it after re-vendoring with `cargo test --test migrate_config_split -- --exact migrate_config_split`. +//! The migration rewrites only entries whose subtests changed, keeps every metadata key of every +//! entry and surviving subtest, and adds vendored `.js`/`.mjs` tests that are not listed yet as +//! `unevaluated`. It never deletes an entry and never guesses a classification. It writes a +//! review report to `NODE_COMPAT_MIGRATION_REPORT` (default +//! `target/node-compat-migration-report.json`) and fails when an entry needs a manual mapping: +//! a configured file whose source is gone, a subtest that disappeared, or a split file that can +//! no longer be split and whose subtests had different metadata. +//! The authoritative config is written only when no review decisions remain unresolved. +//! +//! When a split file's subtests changed, the previous vendored suite is required as +//! `NODE_COMPAT_MIGRATION_PREVIOUS_SUITE`: a subtest keeps the metadata of the previous subtest +//! with byte-identical source, so an unchanged block that moved to another index (and therefore another +//! generated name such as `block_05_block_05`) keeps its own classification. +//! +//! A changed subtest with a generated name keeps the metadata of the previous subtest at its +//! position only as a proposal. The run fails until each one has an accepted decision in the file +//! named by `NODE_COMPAT_MIGRATION_DECISIONS`. A decision is bound to the previous and current +//! suite versions, to the parsed `tests` object of the input config, and to both versions of the +//! test file, and it records the previous metadata, which the migration recomputes and compares. +//! A decision that stops running a formerly runnable subtest, or that excludes a former known gap, +//! must state how that obligation is kept. +//! +//! The contract tests run against temporary fixtures: +//! `cargo test --test migrate_config_split -- ':tag:migration_contract'`. + test_r::enable!(); #[allow(dead_code)] #[path = "common/mod.rs"] mod common; -use crate::common::js_subtest_parser::{ - SubtestDiscovery, discover_subtests, discover_subtests_with_options, -}; -use crate::common::strip_jsonc_comments; -use serde_json::Value; -use std::collections::BTreeSet; +use crate::common::js_subtest_parser::{SubtestDiscovery, discover_subtests_with_options}; +use crate::common::{NodeCompatCategory, node_compat_category_from_entry, strip_jsonc_comments}; +use anyhow::{anyhow, bail}; +use serde_json::{Map, Value, json}; +use std::collections::{BTreeMap, BTreeSet}; use std::fs; +use std::path::Path; use test_r::test; -/// Find the byte span (start, end) of a JSON object value for a given key in JSONC text. -/// Returns the byte range of the value object `{...}` (inclusive of braces). -/// Handles JSONC line/block comments and nested objects. -fn find_value_span(content: &str, key: &str) -> Option<(usize, usize)> { - let search = format!("\"{}\"", key); - let key_pos = content.find(&search)?; - let bytes = content.as_bytes(); - let mut pos = key_pos + search.len(); - - // Skip whitespace - while pos < bytes.len() && bytes[pos].is_ascii_whitespace() { - pos += 1; - } - // Expect ':' - if pos >= bytes.len() || bytes[pos] != b':' { - return None; - } - pos += 1; - // Skip whitespace - while pos < bytes.len() && bytes[pos].is_ascii_whitespace() { - pos += 1; +const SUITES: [&str; 4] = ["parallel", "sequential", "es-module", "trace_events"]; +const NEW_FILE_REASON: &str = "newly discovered, not yet evaluated"; +const NEW_SUBTEST_REASON: &str = "newly discovered subtest, not yet evaluated"; +/// Keys written first, in this order; any other key follows alphabetically, then `split` and +/// `subtests`. +const KEY_ORDER: [&str; 6] = [ + "category", + "reason", + "flaky", + "timeout", + "nestedNodeTest", + "isolateBlockSubtests", +]; + +#[derive(Debug, Default, serde::Serialize, PartialEq)] +#[serde(rename_all = "camelCase")] +struct MigrationReport { + /// Unsplit entries that are now split; their subtests inherit the file's metadata. + split: Vec, + /// Split entries whose subtests changed. + resplit: Vec, + /// Split entries that are now one test; their subtests carried identical metadata. + unsplit: Vec, + /// Vendored tests that were not listed, added as `unevaluated`. + added: Vec, + /// Subtests matched across an index shift by identical source (`"by": "source"`) or by their + /// unchanged description (`"by": "description"`). + renamed: Vec, + /// Subtests with a generated name whose source changed; they keep the metadata of the + /// previous subtest at the same position unless a decision accepted another value. + matched_by_position: Vec, + /// The inputs a decision for these subtests is bound to (suite versions and the hash of the + /// input `tests` object); set when `matched_by_position` is not empty. + #[serde(skip_serializing_if = "Option::is_none")] + position_inputs: Option, + /// Subtests matched by position without an accepted decision, with the hashes and previous + /// metadata a decision must record, and the problem of a rejected decision. Needs a decision. + pending_position_decisions: Vec, + /// Decisions that match no subtest matched by position. Needs a fix of the decisions file. + unused_decisions: Vec, + /// Accepted decisions that changed the classification of a formerly runnable or known-gap + /// subtest, with the obligation that keeps it accounted for. + obligations: Vec, + /// Newly discovered subtests whose entry an accepted decision set because it moved its + /// assertions there, with the evidence and the exact previous case they came from. + labelled_targets: Vec, + /// Subtests without a previous entry. + new_subtests: Vec, + /// Subtests that are gone, with their previous metadata. Needs a mapping. + removed_subtests: Vec, + /// Configured files whose vendored source is gone, left unchanged. Needs a mapping. + missing_sources: Vec, + /// Split files that can no longer be split, left unchanged. Needs a decision. + needs_decision: Vec, +} + +impl MigrationReport { + fn needs_review(&self) -> usize { + self.removed_subtests.len() + + self.missing_sources.len() + + self.needs_decision.len() + + self.pending_position_decisions.len() + + self.unused_decisions.len() } - if pos >= bytes.len() || bytes[pos] != b'{' { - return None; +} + +struct Migration { + content: String, + report: MigrationReport, +} + +/// A member key and the end-exclusive byte span of its value. +type Member = (String, (usize, usize)); + +/// Byte spans of the members of the top-level `"tests"` object. +struct TestsLayout { + /// Member key to the span of its value, end-exclusive. + values: BTreeMap, + /// Position of the closing `}` of the `"tests"` object. + close: usize, +} + +/// Strict JSONC scanner: every member is located by structure, never by searching text, so a +/// key quoted in a comment or reason cannot be mistaken for the entry. +struct Scanner<'a> { + text: &'a str, + pos: usize, +} + +impl<'a> Scanner<'a> { + fn bytes(&self) -> &'a [u8] { + self.text.as_bytes() } - let value_start = pos; - let mut depth = 0; - let mut in_string = false; + fn peek(&self) -> Option { + self.bytes().get(self.pos).copied() + } - while pos < bytes.len() { - if in_string { - if bytes[pos] == b'\\' && pos + 1 < bytes.len() { - pos += 2; - continue; - } - if bytes[pos] == b'"' { - in_string = false; - } - } else { - match bytes[pos] { - b'"' => in_string = true, - b'{' => depth += 1, - b'}' => { - depth -= 1; - if depth == 0 { - return Some((value_start, pos + 1)); + fn skip_trivia(&mut self) -> anyhow::Result<()> { + loop { + match self.peek() { + Some(c) if c.is_ascii_whitespace() => self.pos += 1, + Some(b'/') if self.bytes().get(self.pos + 1) == Some(&b'/') => { + while self.peek().is_some_and(|c| c != b'\n') { + self.pos += 1; } } - b'/' if pos + 1 < bytes.len() && bytes[pos + 1] == b'/' => { - pos += 2; - while pos < bytes.len() && bytes[pos] != b'\n' { - pos += 1; - } - continue; + Some(b'/') if self.bytes().get(self.pos + 1) == Some(&b'*') => { + let end = self.text[self.pos + 2..] + .find("*/") + .ok_or_else(|| anyhow!("unterminated block comment at {}", self.pos))?; + self.pos += 2 + end + 2; } - b'/' if pos + 1 < bytes.len() && bytes[pos + 1] == b'*' => { - pos += 2; - while pos + 1 < bytes.len() && !(bytes[pos] == b'*' && bytes[pos + 1] == b'/') { - pos += 1; - } - if pos + 1 < bytes.len() { - pos += 2; - } - continue; - } - _ => {} + _ => return Ok(()), } } - pos += 1; } - None -} - -/// Find the byte position of the closing '}' of the "tests" object in JSONC content. -fn find_tests_object_close(content: &str) -> Option { - let tests_key = "\"tests\""; - let key_pos = content.find(tests_key)?; - let bytes = content.as_bytes(); - let mut pos = key_pos + tests_key.len(); - - // Skip to ':' - while pos < bytes.len() && bytes[pos].is_ascii_whitespace() { - pos += 1; - } - if pos >= bytes.len() || bytes[pos] != b':' { - return None; - } - pos += 1; - // Skip to '{' - while pos < bytes.len() && bytes[pos].is_ascii_whitespace() { - pos += 1; - } - if pos >= bytes.len() || bytes[pos] != b'{' { - return None; + fn expect(&mut self, c: u8) -> anyhow::Result<()> { + self.skip_trivia()?; + if self.peek() != Some(c) { + bail!("expected '{}' at byte {}", c as char, self.pos); + } + self.pos += 1; + Ok(()) } - let mut depth = 0; - let mut in_string = false; - - while pos < bytes.len() { - if in_string { - if bytes[pos] == b'\\' && pos + 1 < bytes.len() { - pos += 2; - continue; + fn string(&mut self) -> anyhow::Result { + self.skip_trivia()?; + let start = self.pos; + if self.peek() != Some(b'"') { + bail!("expected a string at byte {start}"); + } + self.pos += 1; + loop { + match self.peek() { + None => bail!("unterminated string at byte {start}"), + Some(b'\\') => self.pos += 2, + Some(b'"') => { + self.pos += 1; + return Ok(serde_json::from_str(&self.text[start..self.pos])?); + } + Some(_) => self.pos += 1, } - if bytes[pos] == b'"' { - in_string = false; + } + } + + /// Skips one value and returns its span. + fn value(&mut self) -> anyhow::Result<(usize, usize)> { + self.skip_trivia()?; + let start = self.pos; + match self.peek() { + Some(b'"') => { + self.string()?; } - } else { - match bytes[pos] { - b'"' => in_string = true, - b'{' => depth += 1, - b'}' => { - depth -= 1; - if depth == 0 { - return Some(pos); + Some(open @ (b'{' | b'[')) => { + let close = if open == b'{' { b'}' } else { b']' }; + self.pos += 1; + self.skip_trivia()?; + if self.peek() == Some(close) { + self.pos += 1; + } else { + loop { + if open == b'{' { + self.string()?; + self.expect(b':')?; + } + self.value()?; + self.skip_trivia()?; + match self.peek() { + Some(b',') => { + self.pos += 1; + self.skip_trivia()?; + if self.peek() == Some(close) { + self.pos += 1; + break; + } + } + Some(c) if c == close => { + self.pos += 1; + break; + } + _ => bail!("malformed {} at byte {}", open as char, self.pos), + } } } - b'/' if pos + 1 < bytes.len() && bytes[pos + 1] == b'/' => { - pos += 2; - while pos < bytes.len() && bytes[pos] != b'\n' { - pos += 1; - } - continue; + } + Some(_) => { + while self + .peek() + .is_some_and(|c| !matches!(c, b',' | b'}' | b']') && !c.is_ascii_whitespace()) + { + self.pos += 1; } - b'/' if pos + 1 < bytes.len() && bytes[pos + 1] == b'*' => { - pos += 2; - while pos + 1 < bytes.len() && !(bytes[pos] == b'*' && bytes[pos + 1] == b'/') { - pos += 1; - } - if pos + 1 < bytes.len() { - pos += 2; - } - continue; + if self.pos == start { + bail!("expected a value at byte {start}"); } - _ => {} } + None => bail!("unexpected end of input"), } - pos += 1; + Ok((start, self.pos)) } - None + /// Reads the members of the object starting here: key to value span, and the closing brace. + fn members(&mut self) -> anyhow::Result<(Vec, usize)> { + self.expect(b'{')?; + let mut members = Vec::new(); + loop { + self.skip_trivia()?; + if self.peek() == Some(b'}') { + let close = self.pos; + self.pos += 1; + return Ok((members, close)); + } + let key = self.string()?; + self.expect(b':')?; + let span = self.value()?; + members.push((key, span)); + self.skip_trivia()?; + match self.peek() { + Some(b',') => self.pos += 1, + Some(b'}') => {} + _ => bail!("expected ',' or '}}' at byte {}", self.pos), + } + } + } } -/// Escape a string for embedding in a JSON string literal. -fn escape_json(s: &str) -> String { - s.replace('\\', "\\\\") - .replace('"', "\\\"") - .replace('\n', "\\n") - .replace('\r', "\\r") - .replace('\t', "\\t") +fn tests_layout(content: &str) -> anyhow::Result { + let mut scanner = Scanner { + text: content, + pos: 0, + }; + let (top, _) = scanner.members()?; + let (_, (start, _)) = top + .into_iter() + .find(|(key, _)| key == "tests") + .ok_or_else(|| anyhow!("config has no top-level \"tests\" object"))?; + let mut scanner = Scanner { + text: content, + pos: start, + }; + let (members, close) = scanner.members()?; + let mut values = BTreeMap::new(); + for (key, span) in members { + if values.insert(key.clone(), span).is_some() { + bail!("duplicate node_compat config entry {key:?}"); + } + } + Ok(TestsLayout { values, close }) } -/// Format a split entry value (the part after `"key": `). -fn format_split_value( - skip: bool, - reason: &str, - subtests: &[(String, bool, String)], // (name, skip, reason) -) -> String { - let mut lines = Vec::new(); - lines.push("{".to_string()); +fn ordered_keys(map: &Map) -> Vec<&String> { + let mut keys: Vec<&String> = KEY_ORDER + .iter() + .filter_map(|k| map.get_key_value(*k).map(|(k, _)| k)) + .collect(); + let mut rest: Vec<&String> = map + .keys() + .filter(|k| !KEY_ORDER.contains(&k.as_str())) + .collect(); + rest.sort(); + keys.extend(rest); + keys +} - if skip { - lines.push(" \"skip\": true,".to_string()); - if !reason.is_empty() { - lines.push(format!(" \"reason\": \"{}\",", escape_json(reason))); - } +fn format_inline(map: &Map) -> String { + if map.is_empty() { + return "{}".to_string(); } + let members: Vec = ordered_keys(map) + .into_iter() + .map(|k| format!("{}: {}", json!(k), map[k])) + .collect(); + format!("{{ {} }}", members.join(", ")) +} +fn format_split(meta: &Map, subtests: &[(String, Value)]) -> String { + let mut lines = vec!["{".to_string()]; + for k in ordered_keys(meta) { + lines.push(format!(" {}: {},", json!(k), meta[k])); + } lines.push(" \"split\": true,".to_string()); lines.push(" \"subtests\": {".to_string()); - - for (i, (name, sub_skip, sub_reason)) in subtests.iter().enumerate() { + for (i, (name, value)) in subtests.iter().enumerate() { let comma = if i + 1 < subtests.len() { "," } else { "" }; - if *sub_skip { - lines.push(format!( - " \"{}\": {{ \"skip\": true, \"reason\": \"{}\" }}{}", - escape_json(name), - escape_json(sub_reason), - comma - )); - } else { - lines.push(format!(" \"{}\": {{}}{}", escape_json(name), comma)); - } + let value = value.as_object().cloned().unwrap_or_default(); + lines.push(format!( + " {}: {}{comma}", + json!(name), + format_inline(&value) + )); } - lines.push(" }".to_string()); lines.push(" }".to_string()); lines.join("\n") } -/// Build subtests list from discovery, inheriting skip/reason from file level. -fn build_subtests( - discovery: &SubtestDiscovery, - file_skip: bool, - file_reason: &str, -) -> Vec<(String, bool, String)> { - let names: Vec = match discovery { - SubtestDiscovery::None => return Vec::new(), - SubtestDiscovery::Block(blocks) => blocks.iter().map(|b| b.name.clone()).collect(), - SubtestDiscovery::NodeTest(tests) => tests.iter().map(|t| t.name.clone()).collect(), - }; +/// Subtest names with their exact source text, including whitespace inside literals. +fn discovered_subtests(discovery: &SubtestDiscovery, source: &str) -> Vec<(String, String)> { + let text = |(start, end): (u32, u32)| source[start as usize..end as usize].to_string(); + match discovery { + SubtestDiscovery::None => Vec::new(), + SubtestDiscovery::Block(blocks) => blocks + .iter() + .map(|b| (b.name.clone(), text(b.span))) + .collect(), + SubtestDiscovery::NodeTest(tests) => tests + .iter() + .map(|t| (t.name.clone(), text(t.span))) + .collect(), + } +} - names - .into_iter() - .map(|name| { - if file_skip { - let reason = if file_reason.is_empty() { - "inherited".to_string() - } else { - format!("inherited: {}", file_reason) - }; - (name, true, reason) - } else { - (name, false, String::new()) - } - }) - .collect() +/// The description part of a generated subtest name (`test_03_assert_throws` → `assert_throws`), +/// or `None` when the description is itself generated (`block_02_block_02`). +fn subtest_description(name: &str) -> Option<&str> { + let (_, rest) = name.split_once('_')?; + let (index, description) = rest.split_once('_')?; + if !index.bytes().all(|b| b.is_ascii_digit()) { + return None; + } + let generated = description.rsplit_once('_').is_some_and(|(word, digits)| { + !digits.is_empty() + && digits.bytes().all(|b| b.is_ascii_digit()) + && word.bytes().all(|b| b.is_ascii_lowercase()) + }); + (!generated).then_some(description) } -/// Build merged subtests from discovery, preserving existing skip/reason for subtests -/// that still exist in the new discovery. -fn build_merged_subtests( - discovery: &SubtestDiscovery, - existing_subtests: &serde_json::Map, - file_skip: bool, - file_reason: &str, -) -> Vec<(String, bool, String)> { - let names: Vec = match discovery { - SubtestDiscovery::None => return Vec::new(), - SubtestDiscovery::Block(blocks) => blocks.iter().map(|b| b.name.clone()).collect(), - SubtestDiscovery::NodeTest(tests) => tests.iter().map(|t| t.name.clone()).collect(), - }; +/// The only name in `pool` with this description, if there is exactly one. +fn unique_by_description<'a>(pool: &[&'a String], description: &str) -> Option<&'a String> { + let mut matches = pool + .iter() + .filter(|name| subtest_description(name) == Some(description)); + let first = matches.next().copied(); + if matches.next().is_some() { + None + } else { + first + } +} - names - .into_iter() - .map(|name| { - if let Some(existing) = existing_subtests.get(&name) { - // Preserve existing skip/reason - let skip = existing - .get("skip") - .and_then(|v| v.as_bool()) - .unwrap_or(false); - let reason = existing - .get("reason") - .and_then(|v| v.as_str()) - .unwrap_or("") - .to_string(); - (name, skip, reason) - } else if file_skip { - let reason = if file_reason.is_empty() { - "inherited".to_string() - } else { - format!("inherited: {}", file_reason) - }; - (name, true, reason) - } else { - (name, false, String::new()) +fn is_listable_test(name: &str) -> bool { + name.starts_with("test-") && (name.ends_with(".js") || name.ends_with(".mjs")) +} + +fn discover_suite_files(suite_root: &Path) -> anyhow::Result> { + let mut files = BTreeSet::new(); + for suite in SUITES { + let dir = suite_root.join(suite); + if !dir.is_dir() { + continue; + } + for entry in fs::read_dir(&dir)? { + let entry = entry?; + let name = entry.file_name().to_string_lossy().to_string(); + if entry.file_type()?.is_file() && is_listable_test(&name) { + files.insert(format!("{suite}/{name}")); } + } + } + Ok(files) +} + +fn bool_option(opts: &Map, key: &str) -> bool { + opts.get(key).and_then(Value::as_bool).unwrap_or(false) +} + +fn discover(path: &str, source: &str, opts: &Map) -> Vec<(String, String)> { + discovered_subtests( + &discover_subtests_with_options( + path, + source, + bool_option(opts, "nestedNodeTest"), + bool_option(opts, "isolateBlockSubtests"), + ), + source, + ) +} + +/// Previous subtest name for each current subtest whose source is identical and unique on both +/// sides. +fn match_by_source<'a>( + current: &'a [(String, String)], + previous: &'a [(String, String)], +) -> BTreeMap<&'a str, &'a str> { + let count = |subtests: &'a [(String, String)]| { + let mut counts: BTreeMap<&str, usize> = BTreeMap::new(); + for (_, text) in subtests { + *counts.entry(text.as_str()).or_default() += 1; + } + counts + }; + let (current_counts, previous_counts) = (count(current), count(previous)); + current + .iter() + .filter(|(_, text)| { + current_counts[text.as_str()] == 1 && previous_counts.get(text.as_str()) == Some(&1) + }) + .map(|(name, text)| { + let (old, _) = previous.iter().find(|(_, t)| t == text).unwrap(); + (name.as_str(), old.as_str()) }) .collect() } -/// Format a non-split entry value. -fn format_unsplit_value(skip: bool, reason: &str) -> String { - if skip { - if reason.is_empty() { - "{ \"skip\": true }".to_string() - } else { - format!( - "{{ \"skip\": true, \"reason\": \"{}\" }}", - escape_json(reason) - ) - } +/// A new subtest inherits a file-level classification that keeps it out of the runner; in a +/// runnable file it starts as `unevaluated`, because it is not part of the historical baseline. +fn new_subtest_value(meta: &Map) -> Value { + let inherits_excluded = meta + .get("category") + .and_then(Value::as_str) + .is_some_and(|c| !matches!(c, "runnable" | "expected-pass")); + if inherits_excluded { + json!({}) } else { - "{}".to_string() + json!({ "category": "unevaluated", "reason": NEW_SUBTEST_REASON }) } } -/// Extract discovered subtest names as a BTreeSet. -fn discovered_names(discovery: &SubtestDiscovery) -> BTreeSet { - match discovery { - SubtestDiscovery::None => BTreeSet::new(), - SubtestDiscovery::Block(blocks) => blocks.iter().map(|b| b.name.clone()).collect(), - SubtestDiscovery::NodeTest(tests) => tests.iter().map(|t| t.name.clone()).collect(), +/// Keys of a positional decision. +const DECISION_KEYS: [&str; 12] = [ + "file", + "subtest", + "previousBlake3", + "currentBlake3", + "previous", + "entry", + "assertions", + "note", + "obligation", + "movedTo", + "movedToEntries", + "evidence", +]; +/// What a decision says about the assertions of the previous subtest. +const ASSERTIONS: [&str; 4] = ["kept", "changed", "moved", "none"]; +/// How a decision keeps a formerly runnable or known-gap subtest accounted for. +const OBLIGATIONS: [&str; 3] = ["baseline-gap", "moved", "target-change"]; + +/// Accepted mapping decisions for subtests matched by position, by file and subtest. +type Decisions = BTreeMap<(String, String), Map>; +/// Accepted decisions that moved their assertions, with the `movedTo` targets. +type Moves = Vec<((String, String), Vec)>; + +fn blake3_hex(bytes: &[u8]) -> String { + blake3::hash(bytes).to_hex().to_string() +} + +/// The hash a decisions file binds the input config to: the parsed `tests` object, so that +/// comments and `nodeVersion` do not matter but every entry does. +fn tests_digest(tests: &Map) -> String { + blake3_hex(Value::Object(tests.clone()).to_string().as_bytes()) +} + +fn suite_version(root: &Path) -> anyhow::Result { + let version = fs::read_to_string(root.join("NODE_VERSION")) + .map_err(|e| anyhow!("{} has no NODE_VERSION: {e}", root.display()))?; + Ok(version.trim().to_string()) +} + +fn category_name(category: NodeCompatCategory) -> &'static str { + match category { + NodeCompatCategory::Runnable => "runnable", + NodeCompatCategory::KnownGap => "known-gap", + NodeCompatCategory::WasmImpossible => "wasi-impossible", + NodeCompatCategory::EngineDifference => "engine-difference", + NodeCompatCategory::NodeInternals => "node-internals", + NodeCompatCategory::Unevaluated => "unevaluated", } } -/// Discover all `.js` test files from vendored suite directories. -/// Matches the approach used by the config report generator. -fn discover_suite_files() -> BTreeSet { - let suites = ["parallel", "sequential", "es-module"]; - let mut files = BTreeSet::new(); +/// The category, reason and flaky flag the harness gives a subtest of `file` in `suite_root`. +fn effective( + path: &str, + file: &Map, + subtest: &Value, + suite_root: &Path, +) -> anyhow::Result<(NodeCompatCategory, Value)> { + let file_category = + node_compat_category_from_entry(path, &Value::Object(file.clone()), None, suite_root)?; + let category = node_compat_category_from_entry(path, subtest, Some(file_category), suite_root)?; + let reason = subtest + .get("reason") + .and_then(Value::as_str) + .or_else(|| file.get("reason").and_then(Value::as_str)); + let flaky = subtest + .get("flaky") + .and_then(Value::as_bool) + .unwrap_or(file.get("flaky").and_then(Value::as_bool).unwrap_or(false)); + Ok(( + category, + json!({ "category": category_name(category), "reason": reason, "flaky": flaky }), + )) +} - for suite in &suites { - let suite_dir = format!("tests/node_compat/suite/{suite}"); - let suite_path = std::path::Path::new(&suite_dir); - if !suite_path.exists() { - eprintln!("Suite directory {suite_dir} not found, skipping"); - continue; +/// Reads a decisions file and rejects it unless it is for these suite versions and this input +/// config, and every row is well formed and unique. +fn load_decisions( + text: &str, + previous_root: &Path, + suite_root: &Path, + tests_hash: &str, +) -> anyhow::Result { + let record: Value = serde_json::from_str(text)?; + let (from, to) = (suite_version(previous_root)?, suite_version(suite_root)?); + if record["from"] != json!(from) || record["to"] != json!(to) { + bail!( + "the decisions are for {} -> {}, but the suites are {from} -> {to}", + record["from"], + record["to"] + ); + } + let bound = &record["previousConfig"]["testsBlake3"]; + if *bound != json!(tests_hash) { + bail!( + "the decisions are bound to an input config whose tests hash to {bound}, but this config's tests hash to {tests_hash:?}; restore the config named by previousConfig.revision instead of applying them to another config" + ); + } + let rows = record["positionDecisions"] + .as_array() + .ok_or_else(|| anyhow!("the decisions lack a positionDecisions array"))?; + let mut decisions = Decisions::new(); + let mut labelled = BTreeSet::new(); + for row in rows { + let row = row + .as_object() + .ok_or_else(|| anyhow!("decision {row} is not an object"))?; + if let Some(key) = row.keys().find(|k| !DECISION_KEYS.contains(&k.as_str())) { + bail!("decision {row:?} has an unknown key {key:?}"); + } + let text = |key: &str| { + row.get(key) + .and_then(Value::as_str) + .filter(|s| !s.trim().is_empty()) + }; + let (Some(file), Some(subtest)) = (text("file"), text("subtest")) else { + bail!("decision {row:?} needs a file and a subtest"); + }; + let at = format!("{file}#{subtest}"); + for key in ["previousBlake3", "currentBlake3", "note"] { + if text(key).is_none() { + bail!("the decision for {at} needs a non-empty {key}"); + } + } + if !row.get("previous").is_some_and(Value::is_object) + || !row.get("entry").is_some_and(Value::is_object) + { + bail!("the decision for {at} needs previous and entry objects"); + } + let assertions = text("assertions").filter(|a| ASSERTIONS.contains(a)); + if assertions.is_none() { + bail!("the decision for {at} needs assertions, one of {ASSERTIONS:?}"); } - if let Ok(entries) = fs::read_dir(&suite_dir) { - for entry in entries.flatten() { - let name = entry.file_name().to_string_lossy().to_string(); - if name.ends_with(".js") { - files.insert(format!("{suite}/{name}")); + let obligation = + match row.get("obligation") { + None => None, + Some(o) => Some(o.as_str().filter(|o| OBLIGATIONS.contains(o)).ok_or_else( + || { + anyhow!( + "the decision for {at} has an obligation other than {OBLIGATIONS:?}" + ) + }, + )?), + }; + let moved = assertions == Some("moved") || obligation == Some("moved"); + match row.get("movedTo") { + None if moved => bail!("the decision for {at} moves its assertions but has no movedTo"), + Some(_) if !moved => bail!("the decision for {at} has movedTo without moving"), + Some(targets) + if !targets.as_array().is_some_and(|t| { + !t.is_empty() && t.iter().all(|t| t.as_str().is_some_and(|t| !t.is_empty())) + }) => + { + bail!("the movedTo of the decision for {at} must list file or file#subtest targets") + } + _ => {} + } + // A move may label the newly discovered subtests of the same file it moved to; the + // evidence must name the exact previous case, so the label says what it was checked on. + if let Some(labels) = row.get("movedToEntries") { + let targets: Vec<&str> = row + .get("movedTo") + .and_then(Value::as_array) + .into_iter() + .flatten() + .filter_map(Value::as_str) + .collect(); + let labels = labels.as_object().filter(|l| !l.is_empty()).ok_or_else(|| { + anyhow!("the movedToEntries of the decision for {at} must map movedTo targets to an entry and evidence") + })?; + let old = format!("{from} {at}"); + for (target, label) in labels { + if !targets.contains(&target.as_str()) { + bail!( + "the decision for {at} labels {target}, which is not one of its movedTo targets" + ); + } + if target.split_once('#').map(|(f, _)| f) != Some(file) { + bail!( + "the decision for {at} labels {target}, but it can label only a subtest of {file}" + ); + } + let label = label + .as_object() + .filter(|l| { + l.keys().all(|k| k == "entry" || k == "evidence") + && l.get("entry").is_some_and(Value::is_object) + }) + .ok_or_else(|| { + anyhow!("the label of {target} in the decision for {at} needs an entry object and evidence") + })?; + if !label + .get("evidence") + .and_then(Value::as_str) + .is_some_and(|e| e.contains(&old)) + { + bail!( + "the evidence for {target} in the decision for {at} must name the exact old case \"{old}\"" + ); + } + if !labelled.insert(target.clone()) { + bail!("{target} is labelled by more than one decision"); } } } + let target_change = obligation == Some("target-change"); + if target_change && text("evidence").is_none() { + bail!("the target-change decision for {at} needs non-empty evidence"); + } + if !target_change && row.contains_key("evidence") { + bail!("the decision for {at} has evidence without a target-change obligation"); + } + if decisions + .insert((file.to_string(), subtest.to_string()), row.clone()) + .is_some() + { + bail!("duplicate decision for {at}"); + } } + Ok(decisions) +} - files +/// Checks a decision against the subtest it maps. `Ok(Err(problem))` rejects the decision; on +/// acceptance it returns the entry to write and, when the decision changes the classification of +/// a formerly runnable or known-gap subtest, the obligation to report. +fn check_decision( + decision: &Map, + pending: &Value, + meta: &Map, + suite_root: &Path, +) -> anyhow::Result), String>> { + for key in ["previousBlake3", "currentBlake3"] { + if decision[key] != pending[key] { + return Ok(Err(format!( + "stale: {key} {} differs from the vendored file's {}", + decision[key], pending[key] + ))); + } + } + if decision["previous"] != pending["previous"] { + return Ok(Err(format!( + "previousMismatch: the recorded previous metadata {} differs from the input config's {}", + decision["previous"], pending["previous"] + ))); + } + let path = pending["file"].as_str().unwrap_or_default(); + let entry = decision["entry"].clone(); + let (now, now_effective) = match effective(path, meta, &entry, suite_root) { + Ok(resolved) => resolved, + Err(e) => return Ok(Err(format!("invalidEntry: {e}"))), + }; + let before = NodeCompatCategory::from_config_value( + pending["previous"]["effective"]["category"] + .as_str() + .unwrap_or_default(), + )?; + let obligation = decision.get("obligation").and_then(Value::as_str); + let needed = (before == NodeCompatCategory::Runnable && now != NodeCompatCategory::Runnable) + || (before == NodeCompatCategory::KnownGap && !now.is_primary_surface()); + if needed && obligation.is_none() { + return Ok(Err(format!( + "obligationViolation: the formerly {} subtest becomes {}; an obligation (baseline-gap, moved or target-change) must keep it accounted for", + category_name(before), + category_name(now) + ))); + } + if obligation == Some("baseline-gap") + && (before != NodeCompatCategory::Runnable + || now != NodeCompatCategory::KnownGap + || now_effective["reason"] + .as_str() + .is_none_or(|r| r.trim().is_empty())) + { + return Ok(Err( + "obligationViolation: a baseline-gap obligation needs a formerly runnable subtest that becomes a known gap with a reason" + .to_string(), + )); + } + let reported = (before.is_primary_surface() && now != before).then(|| { + json!({ + "file": path, + "subtest": pending["subtest"], + "previous": category_name(before), + "entry": category_name(now), + "obligation": obligation, + "movedTo": decision.get("movedTo"), + "evidence": decision.get("evidence"), + }) + }); + Ok(Ok((entry, reported))) } -#[test] -fn migrate_config_split() { - let config_path = "tests/node_compat/config.jsonc"; - let content = fs::read_to_string(config_path).expect("Failed to read config.jsonc"); - let json_str = strip_jsonc_comments(&content); - let config: Value = serde_json::from_str(&json_str).expect("Failed to parse config"); +/// The category the migrated config gives a `file` or `file#subtest` target. Like the runner, a +/// split file with subtests is run only as its subtests and any other file only as a whole, so +/// a target must name the test the runner selects. +fn target_category( + tests: &Map, + target: &str, + suite_root: &Path, +) -> Result { + let (file, subtest) = match target.split_once('#') { + Some((file, subtest)) => (file, Some(subtest)), + None => (target, None), + }; + let entry = tests + .get(file) + .and_then(Value::as_object) + .ok_or_else(|| format!("movedTo target {target} is not in the migrated config"))?; + let runs_subtests = bool_option(entry, "split") + && entry + .get("subtests") + .and_then(Value::as_object) + .is_some_and(|subtests| !subtests.is_empty()); + let resolved = match subtest { + None if runs_subtests => { + return Err(format!( + "movedTo target {target} is split, so the runner runs its subtests, not the file; name a file#subtest target" + )); + } + Some(_) if !runs_subtests => { + return Err(format!( + "movedTo target {target} is a subtest of a file the runner runs whole; name the file" + )); + } + None => { + node_compat_category_from_entry(file, &Value::Object(entry.clone()), None, suite_root) + } + Some(subtest) => { + let value = entry + .get("subtests") + .and_then(|s| s.get(subtest)) + .ok_or_else(|| format!("movedTo target {target} is not in the migrated config"))?; + effective(file, entry, value, suite_root).map(|(category, _)| category) + } + }; + resolved.map_err(|e| format!("movedTo target {target}: {e}")) +} - let tests_obj = config +fn migrate( + content: &str, + suite_root: &Path, + previous_suite: Option<&Path>, + decisions: Option<&str>, +) -> anyhow::Result { + let config: Value = serde_json::from_str(&strip_jsonc_comments(content))?; + let tests = config .get("tests") - .and_then(|v| v.as_object()) - .expect("config.jsonc missing 'tests' object"); - - let existing_keys: BTreeSet = tests_obj.keys().cloned().collect(); - - // Discover all .js files from suite directories - let all_suite_files = discover_suite_files(); - let new_files: Vec = all_suite_files - .difference(&existing_keys) - .cloned() - .collect(); - - let mut modified_content = content.clone(); - let mut split_count = 0; - let mut update_count = 0; - let mut unsplit_count = 0; - let mut total_subtests = 0; - let mut new_count = 0; - let mut new_split_count = 0; - let empty_map = serde_json::Map::new(); - - // Phase 1: Split new entries and update stale split entries - let mut split_updates: Vec<(String, String)> = Vec::new(); + .and_then(Value::as_object) + .ok_or_else(|| anyhow!("config.jsonc missing 'tests' object"))?; + let decisions = match (decisions, previous_suite) { + (None, _) => None, + (Some(_), None) => bail!("mapping decisions need NODE_COMPAT_MIGRATION_PREVIOUS_SUITE"), + (Some(text), Some(previous_root)) => Some(load_decisions( + text, + previous_root, + suite_root, + &tests_digest(tests), + )?), + }; + // A decision whose movedTo targets do not keep its assertions running is rejected, which can + // in turn invalidate a decision that moved its assertions to that subtest. + let mut rejected: BTreeMap<(String, String), String> = BTreeMap::new(); + loop { + let (migration, moves) = migrate_once( + content, + tests, + suite_root, + previous_suite, + decisions.as_ref(), + &rejected, + )?; + let migrated: Value = serde_json::from_str(&strip_jsonc_comments(&migration.content))?; + let migrated_tests = migrated["tests"].as_object().cloned().unwrap_or_default(); + let baseline_gaps: BTreeSet = migration + .report + .obligations + .iter() + .filter(|o| o["obligation"] == "baseline-gap") + .map(|o| { + format!( + "{}#{}", + o["file"].as_str().unwrap_or_default(), + o["subtest"].as_str().unwrap_or_default() + ) + }) + .chain( + // A labelled known gap that carries a formerly runnable case is its baseline gap. + migration + .report + .labelled_targets + .iter() + .filter(|l| { + l["previous"] == "runnable" + && l["entry"]["category"] == "known-gap" + && l["entry"]["reason"] + .as_str() + .is_some_and(|r| !r.trim().is_empty()) + }) + .map(|l| { + format!( + "{}#{}", + l["file"].as_str().unwrap_or_default(), + l["subtest"].as_str().unwrap_or_default() + ) + }), + ) + .collect(); + let labelled: BTreeSet = migration + .report + .labelled_targets + .iter() + .map(|l| { + format!( + "{}#{}", + l["file"].as_str().unwrap_or_default(), + l["subtest"].as_str().unwrap_or_default() + ) + }) + .collect(); + let mut newly = BTreeMap::new(); + for (key, targets) in moves { + let labels = decisions + .as_ref() + .and_then(|d| d.get(&key)) + .and_then(|d| d.get("movedToEntries")) + .and_then(Value::as_object); + let problem = targets.iter().find_map(|target| { + if labels.is_some_and(|l| l.contains_key(target)) && !labelled.contains(target) { + return Some(format!( + "obligationViolation: movedTo target {target} is labelled by this decision but is not a newly discovered subtest" + )); + } + match target_category(&migrated_tests, target, suite_root) { + Ok(NodeCompatCategory::Runnable) => None, + Ok(_) if baseline_gaps.contains(target) => None, + Ok(category) => Some(format!( + "obligationViolation: movedTo target {target} is {}, neither runnable nor a baseline gap", + category_name(category) + )), + Err(problem) => Some(format!("obligationViolation: {problem}")), + } + }); + if let Some(problem) = problem { + newly.insert(key, problem); + } + } + if newly.is_empty() { + return Ok(migration); + } + rejected.extend(newly); + } +} - for (test_path, opts) in tests_obj.iter() { - let is_split = opts.get("split").and_then(|v| v.as_bool()).unwrap_or(false); +/// One migration pass; decisions in `rejected` are reported as pending with their problem. +/// Returns the accepted decisions whose assertions moved, with their targets. +fn migrate_once( + content: &str, + tests: &Map, + suite_root: &Path, + previous_suite: Option<&Path>, + decisions: Option<&Decisions>, + rejected: &BTreeMap<(String, String), String>, +) -> anyhow::Result<(Migration, Moves)> { + let layout = tests_layout(content)?; + let mut report = MigrationReport::default(); + let mut replacements: Vec<(usize, usize, String)> = Vec::new(); + let mut used: BTreeSet<(String, String)> = BTreeSet::new(); + let mut moves = Vec::new(); - let suite_file = format!("tests/node_compat/suite/{}", test_path); - let source = match fs::read_to_string(&suite_file) { - Ok(s) => s, + for (path, opts) in tests { + let opts = opts + .as_object() + .ok_or_else(|| anyhow!("entry {path:?} is not an object"))?; + let source = match fs::read_to_string(suite_root.join(path)) { + Ok(source) => source, Err(_) => { - eprintln!("Skipping {}: file not found", test_path); + report + .missing_sources + .push(json!({ "file": path, "entry": opts })); continue; } }; + let discovered_subtests = discover(path, &source, opts); + let names: Vec = discovered_subtests.iter().map(|(n, _)| n.clone()).collect(); + let mut meta = opts.clone(); + meta.remove("split"); + let existing = meta + .remove("subtests") + .and_then(|v| v.as_object().cloned()) + .unwrap_or_default(); - let nested_node_test = opts - .get("nestedNodeTest") - .and_then(|v| v.as_bool()) - .unwrap_or(false); - let isolate_block_subtests = opts - .get("isolateBlockSubtests") - .and_then(|v| v.as_bool()) - .unwrap_or(false); - let discovery = discover_subtests_with_options( - test_path, - &source, - nested_node_test, - isolate_block_subtests, - ); - let file_skip = opts.get("skip").and_then(|v| v.as_bool()).unwrap_or(false); - let file_reason = opts.get("reason").and_then(|v| v.as_str()).unwrap_or(""); - - if is_split { - // Check if subtests need updating - let existing_subtests = opts - .get("subtests") - .and_then(|v| v.as_object()) - .unwrap_or(&empty_map); - let existing_names: BTreeSet = existing_subtests.keys().cloned().collect(); - let disc_names = discovered_names(&discovery); - - if existing_names == disc_names { - continue; // No change needed - } - - if disc_names.len() < 2 { - // Discovery no longer warrants split, convert back to unsplit - let new_value = format_unsplit_value(file_skip, file_reason); - split_updates.push((test_path.clone(), new_value)); - unsplit_count += 1; - } else { - // Update split with merged subtests, preserving existing skip/reason - let subtests = - build_merged_subtests(&discovery, existing_subtests, file_skip, file_reason); - let new_value = format_split_value(file_skip, file_reason, &subtests); - split_updates.push((test_path.clone(), new_value)); - update_count += 1; - total_subtests += subtests.len(); + let replacement = if !bool_option(opts, "split") { + // An explicit `"split": false` keeps the file as one test. + if names.len() < 2 || opts.contains_key("split") { + continue; } + report.split.push(path.clone()); + let subtests: Vec<(String, Value)> = + names.into_iter().map(|name| (name, json!({}))).collect(); + format_split(&meta, &subtests) } else { - let subtests = build_subtests(&discovery, file_skip, file_reason); - if subtests.len() < 2 { + let discovered: BTreeSet<&String> = names.iter().collect(); + let same_names = existing.keys().collect::>() == discovered; + if same_names && names.len() >= 2 && previous_suite.is_none() { continue; } - - let new_value = format_split_value(file_skip, file_reason, &subtests); - split_updates.push((test_path.clone(), new_value)); - split_count += 1; - total_subtests += subtests.len(); + if names.len() < 2 { + let mut values = existing.values(); + let first = values.next().cloned().unwrap_or_else(|| json!({})); + if values.any(|v| *v != first) { + report.needs_decision.push(json!({ + "file": path, + "problem": "no longer splits, but its subtests carried different metadata", + "entry": opts, + })); + continue; + } + for (k, v) in first.as_object().into_iter().flatten() { + meta.insert(k.clone(), v.clone()); + } + report.unsplit.push(path.clone()); + format_inline(&meta) + } else { + let Some(previous_root) = previous_suite else { + bail!( + "the subtests of {path} changed; set NODE_COMPAT_MIGRATION_PREVIOUS_SUITE to the previously vendored suite so that moved subtests keep their own metadata" + ); + }; + let previous_source = fs::read_to_string(previous_root.join(path)) + .map_err(|e| anyhow!("previous suite has no {path}: {e}"))?; + let previous = discover(path, &previous_source, opts); + let previous_text: BTreeMap<&str, &str> = previous + .iter() + .map(|(name, text)| (name.as_str(), text.as_str())) + .collect(); + // Where each subtest's metadata comes from: identical source first, then the same + // name, then an unchanged description. + let mut origin: BTreeMap = BTreeMap::new(); + for (name, old) in match_by_source(&discovered_subtests, &previous) { + if existing.contains_key(old) { + origin.insert(name.to_string(), (old.to_string(), "source")); + } + } + let mut consumed: BTreeSet = + origin.values().map(|(old, _)| old.clone()).collect(); + for name in &names { + if !origin.contains_key(name) + && existing.contains_key(name) + && !consumed.contains(name) + { + origin.insert(name.clone(), (name.clone(), "name")); + consumed.insert(name.clone()); + } + } + let unmatched_new: Vec<&String> = + names.iter().filter(|n| !origin.contains_key(*n)).collect(); + let unmatched_old: Vec<&String> = + existing.keys().filter(|n| !consumed.contains(*n)).collect(); + for name in &unmatched_new { + if let Some(description) = subtest_description(name) + && unique_by_description(&unmatched_new, description) == Some(*name) + && let Some(old) = unique_by_description(&unmatched_old, description) + { + origin.insert((*name).clone(), (old.clone(), "description")); + consumed.insert(old.clone()); + } + } + let current_text: BTreeMap<&str, &str> = discovered_subtests + .iter() + .map(|(name, text)| (name.as_str(), text.as_str())) + .collect(); + // A generated name kept by position whose source changed is audited even when + // the entry itself needs no rewrite, and keeps its previous metadata only until + // a decision accepts it or another value. + let mut decided: BTreeMap<&String, Value> = BTreeMap::new(); + // Entries accepted decisions give the newly discovered subtests they moved to. + let mut labels: BTreeMap = BTreeMap::new(); + for name in &names { + if origin.get(name).is_some_and(|(old, _)| old == name) + && subtest_description(name).is_none() + && previous_text.get(name.as_str()) != current_text.get(name.as_str()) + { + report + .matched_by_position + .push(json!({ "file": path, "subtest": name })); + let raw = &existing[name.as_str()]; + let (_, previous_effective) = effective(path, &meta, raw, previous_root)?; + let mut pending = json!({ + "file": path, + "subtest": name, + "previousBlake3": blake3_hex(previous_source.as_bytes()), + "currentBlake3": blake3_hex(source.as_bytes()), + "previous": { + "raw": raw, + "fileEntry": meta, + "effective": previous_effective, + }, + }); + let key = (path.clone(), name.clone()); + let Some(decision) = decisions.and_then(|d| d.get(&key)) else { + report.pending_position_decisions.push(pending); + continue; + }; + used.insert(key.clone()); + let checked = match rejected.get(&key) { + Some(problem) => Err(problem.clone()), + None => check_decision(decision, &pending, &meta, suite_root)?, + }; + match checked { + Ok((entry, obligation)) => { + if let Some(targets) = decision.get("movedTo") { + let targets = targets + .as_array() + .into_iter() + .flatten() + .filter_map(Value::as_str) + .map(str::to_string) + .collect(); + moves.push((key, targets)); + } + let labelled = decision + .get("movedToEntries") + .and_then(Value::as_object) + .into_iter() + .flatten(); + for (target, label) in labelled { + let (_, subtest) = target.split_once('#').unwrap_or_default(); + labels.insert( + subtest.to_string(), + ( + label["entry"].clone(), + json!({ + "file": path, + "subtest": subtest, + "entry": label["entry"], + "evidence": label["evidence"], + "movedFrom": format!("{path}#{name}"), + "previous": pending["previous"]["effective"]["category"], + "previousBlake3": pending["previousBlake3"], + }), + ), + ); + } + report.obligations.extend(obligation); + decided.insert(name, entry); + } + Err(problem) => { + pending["problem"] = json!(problem); + report.pending_position_decisions.push(pending); + } + } + } + } + let unchanged = decided + .iter() + .all(|(name, entry)| existing[name.as_str()] == *entry); + if same_names && unchanged && origin.iter().all(|(name, (old, _))| name == old) { + continue; + } + let mut subtests = Vec::new(); + for name in &names { + let value = match origin.get(name) { + Some((old, by)) if old != name => { + report + .renamed + .push(json!({ "file": path, "from": old, "to": name, "by": by })); + existing[old.as_str()].clone() + } + Some((old, _)) => decided + .get(name) + .cloned() + .unwrap_or_else(|| existing[old.as_str()].clone()), + None => { + report + .new_subtests + .push(json!({ "file": path, "subtest": name })); + match labels.remove(name) { + Some((entry, labelled)) => { + report.labelled_targets.push(labelled); + entry + } + None => new_subtest_value(&meta), + } + } + }; + subtests.push((name.clone(), value)); + } + for old in existing.keys().filter(|old| !consumed.contains(*old)) { + report.removed_subtests.push(json!({ + "file": path, + "subtest": old, + "fileEntry": meta, + "entry": existing[old.as_str()], + })); + } + report.resplit.push(path.clone()); + format_split(&meta, &subtests) + } + }; + let (start, end) = layout.values[path.as_str()]; + replacements.push((start, end, replacement)); + } + for (file, subtest) in decisions.into_iter().flat_map(BTreeMap::keys) { + if !used.contains(&(file.clone(), subtest.clone())) { + report.unused_decisions.push(json!({ + "file": file, + "subtest": subtest, + "problem": "no changed subtest with a generated name is matched by position here", + })); } } + if !report.matched_by_position.is_empty() { + report.position_inputs = Some(json!({ + "from": previous_suite.and_then(|root| suite_version(root).ok()), + "to": suite_version(suite_root).ok(), + "testsBlake3": tests_digest(tests), + })); + } - // Apply split updates in reverse order of position to preserve byte offsets - let mut positioned_updates: Vec<(usize, usize, String)> = Vec::new(); - for (key, new_value) in &split_updates { - if let Some((start, end)) = find_value_span(&modified_content, key) { - positioned_updates.push((start, end, new_value.clone())); - } else { - eprintln!("WARNING: Could not find value span for key: {}", key); + let mut migrated = content.to_string(); + let added: Vec = discover_suite_files(suite_root)? + .into_iter() + .filter(|path| !tests.contains_key(path)) + .collect(); + if !added.is_empty() { + let mut section = String::new(); + let before = migrated[..layout.close].trim_end(); + if !before.ends_with(',') && !before.ends_with('{') { + section.push(','); + } + section.push_str("\n\n // === newly discovered tests (not yet evaluated) ==="); + let mut meta = Map::new(); + meta.insert("category".into(), json!("unevaluated")); + meta.insert("reason".into(), json!(NEW_FILE_REASON)); + for (i, path) in added.iter().enumerate() { + let source = fs::read_to_string(suite_root.join(path))?; + let names = discover(path, &source, &Map::new()); + let value = if names.len() >= 2 { + let subtests: Vec<(String, Value)> = names + .into_iter() + .map(|(name, _)| (name, json!({}))) + .collect(); + format_split(&meta, &subtests) + } else { + format_inline(&meta) + }; + let comma = if i + 1 < added.len() { "," } else { "" }; + section.push_str(&format!("\n {}: {value}{comma}", json!(path))); } + section.push_str("\n "); + let trimmed_end = before.len(); + replacements.push((trimmed_end, layout.close, section)); + report.added = added; } - positioned_updates.sort_by_key(|b| std::cmp::Reverse(b.0)); // reverse order preserves offsets - for (start, end, new_value) in positioned_updates { - modified_content.replace_range(start..end, &new_value); + replacements.sort_by_key(|(start, _, _)| std::cmp::Reverse(*start)); + for (start, end, text) in replacements { + migrated.replace_range(start..end, &text); } + // The result must still be a valid config with the same top-level shape. + tests_layout(&migrated)?; + Ok(( + Migration { + content: migrated, + report, + }, + moves, + )) +} - // Phase 2: Insert new entries before the closing '}' of the tests object - if !new_files.is_empty() { - let close_pos = find_tests_object_close(&modified_content) - .expect("Could not find closing brace of tests object"); +#[test] +fn migrate_config_split() -> anyhow::Result<()> { + let config_path = "tests/node_compat/config.jsonc"; + let report_path = std::env::var("NODE_COMPAT_MIGRATION_REPORT") + .unwrap_or_else(|_| "target/node-compat-migration-report.json".to_string()); + let previous_suite = std::env::var("NODE_COMPAT_MIGRATION_PREVIOUS_SUITE").ok(); + let decisions = std::env::var("NODE_COMPAT_MIGRATION_DECISIONS") + .ok() + .map(|path| fs::read_to_string(&path).map_err(|e| anyhow!("cannot read {path}: {e}"))) + .transpose()?; + let content = fs::read_to_string(config_path)?; + let Migration { + content: migrated, + report, + } = migrate( + &content, + Path::new("tests/node_compat/suite"), + previous_suite.as_deref().map(Path::new), + decisions.as_deref(), + )?; + if let Some(parent) = Path::new(&report_path).parent() { + fs::create_dir_all(parent)?; + } + fs::write(&report_path, serde_json::to_string_pretty(&report)? + "\n")?; - // Split content at the tests object closing brace - let prefix = &modified_content[..close_pos]; - let suffix = &modified_content[close_pos..]; // starts with '}' + println!("Migration of {config_path}:"); + println!(" newly split: {}", report.split.len()); + println!(" re-split: {}", report.resplit.len()); + println!(" unsplit: {}", report.unsplit.len()); + println!(" added as unevaluated: {}", report.added.len()); + println!( + " subtests renamed by index shift: {}", + report.renamed.len() + ); + println!( + " changed generated-name subtests matched by position: {}", + report.matched_by_position.len() + ); + println!( + " of which pending a decision: {}", + report.pending_position_decisions.len() + ); + println!(" unused decisions: {}", report.unused_decisions.len()); + println!( + " accepted classification changes: {}", + report.obligations.len() + ); + println!(" new subtests: {}", report.new_subtests.len()); + println!(" removed subtests: {}", report.removed_subtests.len()); + println!( + " configured files without source: {}", + report.missing_sources.len() + ); + println!( + " entries needing a decision: {}", + report.needs_decision.len() + ); + println!(" review report: {report_path}"); + if report.needs_review() > 0 { + bail!( + "{} config entries need a manual mapping; see {report_path}. Map each one to its replacement or record the target change; never by count alone", + report.needs_review() + ); + } + fs::write(config_path, migrated)?; + Ok(()) +} + +#[cfg(test)] +mod contract { + use super::*; + use camino_tempfile::Utf8TempDir; + use test_r::test; - // Check if the last existing entry needs a trailing comma - let trimmed_prefix = prefix.trim_end(); - let needs_comma = !trimmed_prefix.ends_with(',') && !trimmed_prefix.ends_with('{'); + const TWO_TESTS: &str = + "const test = require('node:test');\ntest('alpha', () => {});\ntest('beta', () => {});\n"; - let mut new_section = String::new(); + struct Fixture { + temp: Utf8TempDir, + previous: Utf8TempDir, + } - if needs_comma { - // Insert comma right after the last entry value - // We append it to trimmed_prefix and then re-add the whitespace - new_section.push(','); + impl Fixture { + fn new() -> Self { + let fixture = Self { + temp: Utf8TempDir::new().unwrap(), + previous: Utf8TempDir::new().unwrap(), + }; + fs::write(fixture.temp.path().join("NODE_VERSION"), "26.13.1\n").unwrap(); + fs::write(fixture.previous.path().join("NODE_VERSION"), "22.14.0\n").unwrap(); + fixture } - new_section.push_str("\n\n // === newly discovered tests (not yet evaluated) ==="); + fn source(&self, path: &str, source: &str) -> &Self { + let path = self.temp.path().join(path); + fs::create_dir_all(path.parent().unwrap()).unwrap(); + fs::write(path, source).unwrap(); + self + } - for test_path in &new_files { - let suite_file = format!("tests/node_compat/suite/{}", test_path); - let source = match fs::read_to_string(&suite_file) { - Ok(s) => s, - Err(_) => { - eprintln!("Skipping new file {}: could not read", test_path); - continue; - } - }; + /// The file as it was in the previously vendored suite. + fn previous(&self, path: &str, source: &str) -> &Self { + let path = self.previous.path().join(path); + fs::create_dir_all(path.parent().unwrap()).unwrap(); + fs::write(path, source).unwrap(); + self + } - let discovery = discover_subtests(test_path, &source); - let subtests = build_subtests(&discovery, true, "newly discovered, not yet evaluated"); + fn migrate(&self, tests: &str) -> Migration { + self.migrate_with(&config(tests), None).unwrap() + } - if subtests.len() >= 2 { - let value = - format_split_value(true, "newly discovered, not yet evaluated", &subtests); - new_section.push_str(&format!("\n \"{}\": {},", test_path, value)); - total_subtests += subtests.len(); - new_split_count += 1; - } else { - new_section.push_str(&format!( - "\n \"{}\": {{ \"skip\": true, \"reason\": \"newly discovered, not yet evaluated\" }},", - test_path - )); + fn migrate_with( + &self, + content: &str, + decisions: Option<&Value>, + ) -> anyhow::Result { + migrate( + content, + self.temp.path().as_std_path(), + Some(self.previous.path().as_std_path()), + decisions.map(Value::to_string).as_deref(), + ) + } + } + + fn config(tests: &str) -> String { + format!( + "{{\n \"nodeVersion\": \"22.14.0\",\n // \"parallel/test-a.js\" is quoted here\n \"tests\": {{\n{tests}\n }}\n}}\n" + ) + } + + fn entries(migration: &Migration) -> Map { + let config: Value = + serde_json::from_str(&strip_jsonc_comments(&migration.content)).unwrap(); + config["tests"].as_object().unwrap().clone() + } + + fn node_tests(names: &[&str]) -> String { + let mut source = "const test = require('node:test');\n".to_string(); + for name in names { + source.push_str(&format!("test('{name}', () => {{}});\n")); + } + source + } + + #[test] + #[test_r::tag(migration_contract)] + fn splitting_keeps_every_file_level_key() { + let fixture = Fixture::new(); + fixture.source("parallel/test-a.js", TWO_TESTS); + let migration = fixture.migrate( + r#" "parallel/test-a.js": { "category": "known-gap", "reason": "gap", "flaky": true, "timeout": 300, "custom": 1 }"#, + ); + let entry = &entries(&migration)["parallel/test-a.js"]; + assert_eq!( + *entry, + json!({ + "category": "known-gap", "reason": "gap", "flaky": true, "timeout": 300, + "custom": 1, "split": true, + "subtests": { "test_00_alpha": {}, "test_01_beta": {} }, + }) + ); + assert_eq!(migration.report.split, ["parallel/test-a.js"]); + } + + #[test] + #[test_r::tag(migration_contract)] + fn an_explicit_split_false_is_kept() { + let fixture = Fixture::new(); + fixture.source("parallel/test-a.js", TWO_TESTS); + let entry = r#" "parallel/test-a.js": { "category": "runnable", "split": false }"#; + let migration = fixture.migrate(entry); + assert!(migration.content.contains(entry)); + assert_eq!(migration.report, MigrationReport::default()); + } + + #[test] + #[test_r::tag(migration_contract)] + fn resplitting_keeps_metadata_and_reports_changed_subtests() { + let fixture = Fixture::new(); + // `alpha` stays, `beta` moves from index 1 to 2, `gone` disappears, `fresh` is new. + fixture + .source( + "parallel/test-a.js", + &node_tests(&["alpha", "fresh", "beta"]), + ) + .previous( + "parallel/test-a.js", + &node_tests(&["alpha", "beta", "gone"]), + ); + let migration = fixture.migrate( + r#" "parallel/test-a.js": { + "timeout": 30, + "isolateBlockSubtests": false, + "split": true, + "subtests": { + "test_00_alpha": { "category": "known-gap", "reason": "a" }, + "test_01_beta": { "flaky": true }, + "test_02_gone": { "category": "runnable" } + } + }"#, + ); + let entry = &entries(&migration)["parallel/test-a.js"]; + assert_eq!( + *entry, + json!({ + "timeout": 30, "isolateBlockSubtests": false, "split": true, + "subtests": { + "test_00_alpha": { "category": "known-gap", "reason": "a" }, + "test_01_fresh": { "category": "unevaluated", "reason": NEW_SUBTEST_REASON }, + "test_02_beta": { "flaky": true }, + }, + }) + ); + let report = &migration.report; + assert_eq!( + report.renamed, + [ + json!({ "file": "parallel/test-a.js", "from": "test_01_beta", "to": "test_02_beta", "by": "source" }) + ] + ); + assert_eq!(report.removed_subtests.len(), 1); + assert_eq!(report.removed_subtests[0]["subtest"], "test_02_gone"); + assert_eq!(report.removed_subtests[0]["entry"]["category"], "runnable"); + assert_eq!(report.needs_review(), 1); + } + + #[test] + #[test_r::tag(migration_contract)] + fn moved_blocks_keep_their_own_metadata() { + let fixture = Fixture::new(); + // A block inserted first shifts every generated name; a changed block keeps its position. + fixture + .previous( + "parallel/test-a.js", + "{ gap(); }\n{ passes(); }\n{ changed(1); }\n", + ) + .source( + "parallel/test-a.js", + "{ inserted(); }\n{ gap(); }\n{ passes(); }\n{ changed(2); }\n", + ); + let migration = fixture.migrate( + r#" "parallel/test-a.js": { + "split": true, + "subtests": { + "block_00_block_00": { "category": "known-gap", "reason": "gap" }, + "block_01_block_01": { "category": "runnable" }, + "block_02_block_02": { "category": "node-internals" } + } + }"#, + ); + assert_eq!( + entries(&migration)["parallel/test-a.js"]["subtests"], + json!({ + "block_00_block_00": { "category": "unevaluated", "reason": NEW_SUBTEST_REASON }, + "block_01_block_01": { "category": "known-gap", "reason": "gap" }, + "block_02_block_02": { "category": "runnable" }, + "block_03_block_03": { "category": "unevaluated", "reason": NEW_SUBTEST_REASON }, + }) + ); + let report = &migration.report; + assert_eq!(report.renamed.len(), 2); + assert!(report.renamed.iter().all(|r| r["by"] == "source")); + // The changed block matches nothing, so its old entry needs a mapping. + assert_eq!(report.removed_subtests.len(), 1); + assert_eq!(report.removed_subtests[0]["subtest"], "block_02_block_02"); + assert_eq!( + report.removed_subtests[0]["entry"]["category"], + "node-internals" + ); + } + + #[test] + #[test_r::tag(migration_contract)] + fn changed_blocks_with_unchanged_names_are_reported() { + let fixture = Fixture::new(); + fixture + .previous("parallel/test-a.js", "{ passes(1); }\n{ gap(); }\n") + .source("parallel/test-a.js", "{ passes(2); }\n{ gap(); }\n"); + let tests = r#" "parallel/test-a.js": { + "split": true, + "subtests": { + "block_00_block_00": { "category": "runnable" }, + "block_01_block_01": { "category": "known-gap", "reason": "gap" } + } + }"#; + let migration = fixture.migrate(tests); + assert!(migration.content.contains(tests)); + let parsed: Value = serde_json::from_str(&format!("{{{tests}}}")).unwrap(); + assert_eq!( + migration.report, + MigrationReport { + matched_by_position: vec![ + json!({ "file": "parallel/test-a.js", "subtest": "block_00_block_00" }) + ], + position_inputs: Some(json!({ + "from": "22.14.0", + "to": "26.13.1", + "testsBlake3": blake3::hash(parsed.to_string().as_bytes()).to_hex().to_string(), + })), + pending_position_decisions: vec![json!({ + "file": "parallel/test-a.js", + "subtest": "block_00_block_00", + "previousBlake3": blake3::hash(b"{ passes(1); }\n{ gap(); }\n").to_hex().to_string(), + "currentBlake3": blake3::hash(b"{ passes(2); }\n{ gap(); }\n").to_hex().to_string(), + "previous": { + "raw": { "category": "runnable" }, + "fileEntry": {}, + "effective": { "category": "runnable", "reason": null, "flaky": false }, + }, + })], + ..MigrationReport::default() } - new_count += 1; + ); + assert_eq!(migration.report.needs_review(), 1); + } + + #[test] + #[test_r::tag(migration_contract)] + fn changed_subtests_require_the_previous_suite() { + let fixture = Fixture::new(); + fixture.source( + "parallel/test-a.js", + &node_tests(&["alpha", "beta", "gamma"]), + ); + let content = "{ \"nodeVersion\": \"22.14.0\", \"tests\": { \"parallel/test-a.js\": { \"split\": true, \"subtests\": { \"test_00_alpha\": {}, \"test_01_beta\": {} } } } }"; + let error = migrate(content, fixture.temp.path().as_std_path(), None, None) + .err() + .unwrap(); + assert!( + error + .to_string() + .contains("NODE_COMPAT_MIGRATION_PREVIOUS_SUITE"), + "{error:#}" + ); + } + + #[test] + #[test_r::tag(migration_contract)] + fn new_subtests_inherit_an_excluded_file_category() { + let fixture = Fixture::new(); + fixture + .source( + "parallel/test-a.js", + &node_tests(&["alpha", "beta", "gamma"]), + ) + .previous("parallel/test-a.js", &node_tests(&["alpha", "beta"])); + let migration = fixture.migrate( + r#" "parallel/test-a.js": { "category": "wasi-impossible", "split": true, "subtests": { "test_00_alpha": {}, "test_01_beta": {} } }"#, + ); + let entry = &entries(&migration)["parallel/test-a.js"]; + assert_eq!(entry["subtests"]["test_02_gamma"], json!({})); + assert_eq!(entry["category"], "wasi-impossible"); + } + + #[test] + #[test_r::tag(migration_contract)] + fn unsplitting_requires_identical_subtest_metadata() { + let fixture = Fixture::new(); + fixture + .source("parallel/test-same.js", &node_tests(&["only"])) + .source("parallel/test-mixed.js", &node_tests(&["only"])); + let mixed = r#" "parallel/test-mixed.js": { "split": true, "subtests": { "test_00_only": {}, "test_01_other": { "category": "known-gap" } } }"#; + let migration = fixture.migrate(&format!( + "{mixed},\n \"parallel/test-same.js\": {{ \"reason\": \"r\", \"split\": true, \"subtests\": {{ \"test_00_a\": {{ \"category\": \"known-gap\" }}, \"test_01_b\": {{ \"category\": \"known-gap\" }} }} }}" + )); + let entries = entries(&migration); + assert_eq!( + entries["parallel/test-same.js"], + json!({ "category": "known-gap", "reason": "r" }) + ); + assert!( + migration.content.contains(mixed), + "mixed entry must stay untouched" + ); + assert_eq!(migration.report.needs_decision.len(), 1); + assert_eq!( + migration.report.needs_decision[0]["file"], + "parallel/test-mixed.js" + ); + } + + #[test] + #[test_r::tag(migration_contract)] + fn unlisted_js_and_mjs_tests_are_added_as_unevaluated() { + let fixture = Fixture::new(); + fixture + .source("parallel/test-a.js", "") + .source("parallel/test-b.mjs", "import 'node:assert';\n") + .source("es-module/test-c.mjs", &node_tests(&["one", "two"])) + .source("parallel/helper.js", "") + .source("parallel/test-notes.txt", ""); + let migration = fixture.migrate(r#" "parallel/test-a.js": {}"#); + let entries = entries(&migration); + assert_eq!( + migration.report.added, + ["es-module/test-c.mjs", "parallel/test-b.mjs"] + ); + assert_eq!( + entries["parallel/test-b.mjs"], + json!({ "category": "unevaluated", "reason": NEW_FILE_REASON }) + ); + assert_eq!( + entries["es-module/test-c.mjs"], + json!({ + "category": "unevaluated", "reason": NEW_FILE_REASON, "split": true, + "subtests": { "test_00_one": {}, "test_01_two": {} }, + }) + ); + assert!(!entries.contains_key("parallel/helper.js")); + } + + #[test] + #[test_r::tag(migration_contract)] + fn missing_sources_are_reported_and_kept() { + let fixture = Fixture::new(); + let missing = r#" "sequential/test-moved.js": { "category": "runnable" }"#; + let migration = fixture.migrate(missing); + assert!(migration.content.contains(missing)); + assert_eq!(migration.report.missing_sources.len(), 1); + assert_eq!( + migration.report.missing_sources[0]["file"], + "sequential/test-moved.js" + ); + assert_eq!(migration.report.needs_review(), 1); + } + + #[test] + #[test_r::tag(migration_contract)] + fn a_second_run_changes_nothing() { + let fixture = Fixture::new(); + fixture + .source("parallel/test-a.js", TWO_TESTS) + .source("parallel/test-b.mjs", ""); + let first = fixture.migrate(r#" "parallel/test-a.js": { "category": "known-gap" }"#); + let second = migrate( + &first.content, + fixture.temp.path().as_std_path(), + None, + None, + ) + .unwrap(); + assert_eq!(second.content, first.content); + assert_eq!(second.report, MigrationReport::default()); + } + + #[test] + #[test_r::tag(migration_contract)] + fn duplicate_entries_are_rejected() { + let fixture = Fixture::new(); + let content = "{ \"nodeVersion\": \"22.14.0\", \"tests\": { \"parallel/test-a.js\": {}, \"parallel/test-a.js\": { \"category\": \"known-gap\" } } }"; + let error = migrate(content, fixture.temp.path().as_std_path(), None, None) + .err() + .unwrap(); + assert!(error.to_string().contains("duplicate"), "{error:#}"); + } + + // The next four cases use only the interface of the migration before decisions existed, so + // they also show what it got wrong: a changed block was silently accepted by position. + + #[test] + #[test_r::tag(migration_contract)] + fn a_changed_runnable_block_needs_a_decision() { + let fixture = Fixture::new(); + fixture + .previous("parallel/test-a.js", "{ passes(1); }\n{ gap(); }\n") + .source("parallel/test-a.js", "{ passes(2); }\n{ gap(); }\n"); + let tests = r#" "parallel/test-a.js": { "split": true, "subtests": { "block_00_block_00": {}, "block_01_block_01": { "category": "known-gap", "reason": "gap" } } }"#; + let migration = fixture.migrate(tests); + assert!(migration.content.contains(tests)); + assert_eq!(migration.report.needs_review(), 1); + } + + #[test] + #[test_r::tag(migration_contract)] + fn a_changed_excluded_block_needs_a_decision() { + let fixture = Fixture::new(); + fixture + .previous("parallel/test-a.js", "{ internals(1); }\n{ passes(); }\n") + .source("parallel/test-a.js", "{ internals(2); }\n{ passes(); }\n"); + let tests = r#" "parallel/test-a.js": { "split": true, "subtests": { "block_00_block_00": { "category": "node-internals", "reason": "internal" }, "block_01_block_01": {} } }"#; + let migration = fixture.migrate(tests); + assert!(migration.content.contains(tests)); + assert_eq!(migration.report.needs_review(), 1); + } + + #[test] + #[test_r::tag(migration_contract)] + fn a_changed_block_with_an_unchanged_entry_but_new_internals_needs_a_decision() { + let fixture = Fixture::new(); + fixture + .previous("parallel/test-a.js", "{ passes(1); }\n{ passes(); }\n") + .source( + "parallel/test-a.js", + "{ passes(2); internalBinding('x'); }\n{ passes(); }\n", + ); + let tests = r#" "parallel/test-a.js": { "split": true, "subtests": { "block_00_block_00": {}, "block_01_block_01": {} } }"#; + let migration = fixture.migrate(tests); + assert!(migration.content.contains(tests)); + assert_eq!(migration.report.needs_review(), 1); + } + + #[test] + #[test_r::tag(migration_contract)] + fn a_block_moved_with_identical_source_needs_no_decision() { + let fixture = Fixture::new(); + fixture + .previous("parallel/test-a.js", "{ gap(); }\n{ passes(); }\n") + .source( + "parallel/test-a.js", + "{ added(); }\n{ gap(); }\n{ passes(); }\n", + ); + let migration = fixture.migrate( + r#" "parallel/test-a.js": { "split": true, "subtests": { "block_00_block_00": { "category": "known-gap", "reason": "gap" }, "block_01_block_01": {} } }"#, + ); + let subtests = &entries(&migration)["parallel/test-a.js"]["subtests"]; + assert_eq!( + subtests["block_01_block_01"], + json!({ "category": "known-gap", "reason": "gap" }) + ); + assert_eq!(subtests["block_02_block_02"], json!({})); + assert_eq!(migration.report.needs_review(), 0); + } + + #[test] + #[test_r::tag(migration_contract)] + fn literal_whitespace_changes_need_a_decision() { + for (previous, current) in [ + (r#"{ check("a b"); }"#, r#"{ check("a b"); }"#), + ("{ check(`a b`); }", "{ check(`a b`); }"), + ("{ check(/a b/); }", "{ check(/a b/); }"), + ] { + let fixture = Fixture::new(); + fixture + .previous( + "parallel/test-a.js", + &format!("{previous}\n{{ stable(); }}\n"), + ) + .source( + "parallel/test-a.js", + &format!("{current}\n{{ stable(); }}\n"), + ); + let migration = fixture.migrate( + r#" "parallel/test-a.js": { "split": true, "subtests": { "block_00_block_00": { "category": "runnable" }, "block_01_block_01": {} } }"#, + ); + assert_eq!( + migration.report.needs_review(), + 1, + "{previous} -> {current}" + ); } + } - // Remove trailing comma from the very last new entry - if new_section.ends_with(',') { - new_section.pop(); + #[test] + #[test_r::tag(migration_contract)] + fn unresolved_migration_preserves_config_on_retry() { + let fixture = Fixture::new(); + let root = fixture.temp.path(); + let config_path = root.join("tests/node_compat/config.jsonc"); + fixture.source("tests/node_compat/suite/parallel/test-a.js", TWO_TESTS); + fixture.previous( + "parallel/test-a.js", + &node_tests(&["alpha", "beta", "gone"]), + ); + let original = config( + r#" "parallel/test-a.js": { "split": true, "subtests": { "test_00_alpha": {}, "test_01_beta": {}, "test_02_gone": { "category": "runnable" } } }"#, + ); + fs::write(&config_path, &original).unwrap(); + let report_path = root.join("report.json"); + for attempt in 0..3 { + if report_path.exists() { + fs::remove_file(&report_path).unwrap(); + } + // Unlike the pure migrate() contracts, exercise the documented command's + // persistence boundary: a rejected proposal must not overwrite its input. + let mut command = std::process::Command::new(std::env::current_exe().unwrap()); + command + .current_dir(root) + .args(["--exact", "migrate_config_split"]) + .env("NODE_COMPAT_MIGRATION_REPORT", &report_path) + .env_remove("NODE_COMPAT_MIGRATION_PREVIOUS_SUITE") + .env_remove("NODE_COMPAT_MIGRATION_DECISIONS"); + if attempt != 1 { + command.env( + "NODE_COMPAT_MIGRATION_PREVIOUS_SUITE", + fixture.previous.path(), + ); + } + let output = command.output().unwrap(); + assert!(!output.status.success(), "migration unexpectedly succeeded"); + assert_eq!(fs::read_to_string(&config_path).unwrap(), original); + if attempt == 1 { + assert!( + !report_path.exists(), + "no proposal was computed without the previous suite" + ); + let diagnostics = format!( + "{}{}", + String::from_utf8_lossy(&output.stdout), + String::from_utf8_lossy(&output.stderr) + ); + assert!( + diagnostics.contains("NODE_COMPAT_MIGRATION_PREVIOUS_SUITE"), + "{diagnostics}" + ); + continue; + } + assert!( + report_path.exists(), + "{}\n{}", + String::from_utf8_lossy(&output.stdout), + String::from_utf8_lossy(&output.stderr) + ); + let report: Value = + serde_json::from_str(&fs::read_to_string(&report_path).unwrap()).unwrap(); + assert_eq!(report["removedSubtests"][0]["subtest"], "test_02_gone"); } + } - new_section.push_str("\n "); // indentation before closing '}' + /// Three blocks: the first two change, the third does not. + const PREVIOUS_BLOCKS: &str = "{ one(1); }\n{ two(1); }\n{ three(); }\n"; + const CURRENT_BLOCKS: &str = "{ one(2); }\n{ two(2); }\n{ three(); }\n"; - // Reconstruct: trimmed prefix + new section + suffix - modified_content = format!("{}{}{}", trimmed_prefix, new_section, suffix); + fn blocks(first: &str, second: &str, third: &str) -> String { + format!( + " \"parallel/test-a.js\": {{ \"split\": true, \"subtests\": {{ \"block_00_block_00\": {first}, \"block_01_block_01\": {second}, \"block_02_block_02\": {third} }} }}" + ) } - // Write back - fs::write(config_path, &modified_content).expect("Failed to write config.jsonc"); + fn pending<'a>(migration: &'a Migration, subtest: &str) -> &'a Value { + migration + .report + .pending_position_decisions + .iter() + .find(|row| row["subtest"] == subtest) + .unwrap_or_else(|| panic!("{subtest} is not pending: {:#?}", migration.report)) + } - println!("Migration complete:"); - println!(" Existing files split: {}", split_count); - println!(" Existing splits updated: {}", update_count); - println!(" Existing splits unsplit: {}", unsplit_count); - println!( - " New files added: {} ({} with splits)", - new_count, new_split_count - ); - println!(" Total subtests discovered: {}", total_subtests); - println!(" Config written to: {}", config_path); + /// A decision built from the pending row of `subtest`, with `extra` keys. + fn decision(proposal: &Migration, subtest: &str, entry: Value, extra: Value) -> Value { + let row = pending(proposal, subtest); + let mut decision = json!({ + "file": row["file"], + "subtest": subtest, + "previousBlake3": row["previousBlake3"], + "currentBlake3": row["currentBlake3"], + "previous": row["previous"], + "entry": entry, + "assertions": "kept", + "note": "reviewed against both versions", + }); + for (key, value) in extra.as_object().unwrap() { + decision[key] = value.clone(); + } + decision + } + + fn record(proposal: &Migration, rows: Vec) -> Value { + let inputs = proposal.report.position_inputs.as_ref().unwrap(); + json!({ + "from": inputs["from"], + "to": inputs["to"], + "previousConfig": { + "revision": "fixture", + "path": "tests/node_compat/config.jsonc", + "testsBlake3": inputs["testsBlake3"], + }, + "positionDecisions": rows, + }) + } + + fn blocks_fixture() -> Fixture { + let fixture = Fixture::new(); + fixture + .previous("parallel/test-a.js", PREVIOUS_BLOCKS) + .source("parallel/test-a.js", CURRENT_BLOCKS); + fixture + } + + #[test] + #[test_r::tag(migration_contract)] + fn accepted_decisions_replace_the_positional_proposal() { + let fixture = blocks_fixture(); + let input = config(&blocks("{}", "{}", "{}")); + let proposal = fixture.migrate_with(&input, None).unwrap(); + let gap = json!({ "category": "known-gap", "reason": "the new assertion needs X" }); + let decisions = record( + &proposal, + vec![ + decision( + &proposal, + "block_00_block_00", + json!({}), + json!({ "assertions": "none" }), + ), + decision( + &proposal, + "block_01_block_01", + gap.clone(), + json!({ "assertions": "changed", "obligation": "baseline-gap" }), + ), + ], + ); + let migration = fixture.migrate_with(&input, Some(&decisions)).unwrap(); + let subtests = &entries(&migration)["parallel/test-a.js"]["subtests"]; + assert_eq!(subtests["block_00_block_00"], json!({})); + assert_eq!(subtests["block_01_block_01"], gap); + assert_eq!(subtests["block_02_block_02"], json!({})); + // The audit list stays complete; only the decisions are settled. + assert_eq!(migration.report.matched_by_position.len(), 2); + assert_eq!( + migration.report.obligations, + [json!({ + "file": "parallel/test-a.js", + "subtest": "block_01_block_01", + "previous": "runnable", + "entry": "known-gap", + "obligation": "baseline-gap", + "movedTo": null, + "evidence": null, + })] + ); + assert_eq!(migration.report.needs_review(), 0); + // The same decisions on the same input give the same result. + let again = fixture.migrate_with(&input, Some(&decisions)).unwrap(); + assert_eq!(again.content, migration.content); + assert_eq!(again.report, migration.report); + // They are bound to the input config, so they do not apply to the migrated one. + let error = fixture + .migrate_with(&migration.content, Some(&decisions)) + .err() + .unwrap(); + assert!( + error.to_string().contains("testsBlake3") || error.to_string().contains("tests hash"), + "{error:#}" + ); + } + + #[test] + #[test_r::tag(migration_contract)] + fn a_kept_decision_leaves_the_config_untouched() { + let fixture = blocks_fixture(); + let input = config(&blocks( + "{}", + r#"{ "category": "node-internals", "reason": "internal" }"#, + "{}", + )); + let proposal = fixture.migrate_with(&input, None).unwrap(); + assert_eq!(proposal.content, input); + let decisions = record( + &proposal, + vec![ + decision(&proposal, "block_00_block_00", json!({}), json!({})), + decision( + &proposal, + "block_01_block_01", + json!({ "category": "node-internals", "reason": "internal" }), + json!({}), + ), + ], + ); + let migration = fixture.migrate_with(&input, Some(&decisions)).unwrap(); + assert_eq!(migration.content, input); + assert!(migration.report.obligations.is_empty()); + assert_eq!(migration.report.needs_review(), 0); + } + + #[test] + #[test_r::tag(migration_contract)] + fn decisions_must_keep_old_obligations_accounted_for() { + let fixture = blocks_fixture(); + let input = config(&blocks( + "{}", + r#"{ "category": "known-gap", "reason": "gap" }"#, + "{}", + )); + let proposal = fixture.migrate_with(&input, None).unwrap(); + let impossible = json!({ "category": "wasi-impossible", "reason": "needs a socket" }); + let problem = |rows: Vec| { + let migration = fixture + .migrate_with(&input, Some(&record(&proposal, rows))) + .unwrap(); + assert!(migration.content.contains(&blocks( + "{}", + r#"{ "category": "known-gap", "reason": "gap" }"#, + "{}" + ))); + migration + .report + .pending_position_decisions + .iter() + .map(|row| row["problem"].as_str().unwrap_or("none").to_string()) + .collect::>() + }; + let gap = json!({ "category": "known-gap", "reason": "gap" }); + // A runnable subtest that stops running, and a known gap that becomes excluded, each + // need an obligation of the right kind. + let rejected = problem(vec![ + decision( + &proposal, + "block_00_block_00", + gap.clone(), + json!({ "assertions": "changed" }), + ), + decision( + &proposal, + "block_01_block_01", + impossible.clone(), + json!({ "assertions": "changed", "obligation": "baseline-gap" }), + ), + ]); + assert_eq!(rejected.len(), 2); + assert!( + rejected + .iter() + .all(|p| p.starts_with("obligationViolation")), + "{rejected:?}" + ); + // A baseline gap needs a reason. + let rejected = problem(vec![decision( + &proposal, + "block_00_block_00", + json!({ "category": "known-gap" }), + json!({ "assertions": "changed", "obligation": "baseline-gap" }), + )]); + assert!( + rejected[0].starts_with("obligationViolation"), + "{rejected:?}" + ); + + let accepted = fixture + .migrate_with( + &input, + Some(&record( + &proposal, + vec![ + decision( + &proposal, + "block_00_block_00", + gap.clone(), + json!({ "assertions": "changed", "obligation": "baseline-gap" }), + ), + decision( + &proposal, + "block_01_block_01", + impossible.clone(), + json!({ + "assertions": "changed", + "obligation": "target-change", + "evidence": "Node 26 rewrote the block to need a listening socket", + }), + ), + ], + )), + ) + .unwrap(); + assert_eq!(accepted.report.needs_review(), 0); + assert_eq!(accepted.report.obligations.len(), 2); + assert_eq!( + entries(&accepted)["parallel/test-a.js"]["subtests"]["block_01_block_01"], + impossible + ); + } + + #[test] + #[test_r::tag(migration_contract)] + fn an_unchanged_entry_whose_effective_category_changed_needs_an_obligation() { + let fixture = Fixture::new(); + fixture + .previous("parallel/test-a.js", "{ passes(1); }\n{ passes(); }\n") + .source( + "parallel/test-a.js", + "{ passes(2); internalBinding('x'); }\n{ passes(); }\n", + ); + let input = config( + r#" "parallel/test-a.js": { "split": true, "subtests": { "block_00_block_00": {}, "block_01_block_01": {} } }"#, + ); + let proposal = fixture.migrate_with(&input, None).unwrap(); + assert_eq!( + pending(&proposal, "block_00_block_00")["previous"]["effective"]["category"], + "runnable" + ); + let kept = record( + &proposal, + vec![decision( + &proposal, + "block_00_block_00", + json!({}), + json!({}), + )], + ); + let migration = fixture.migrate_with(&input, Some(&kept)).unwrap(); + let row = pending(&migration, "block_00_block_00"); + assert!( + row["problem"] + .as_str() + .unwrap() + .contains("becomes node-internals"), + "{row:#}" + ); + let decided = record( + &proposal, + vec![decision( + &proposal, + "block_00_block_00", + json!({}), + json!({ "obligation": "target-change", "evidence": "Node 26 exposes internals here" }), + )], + ); + let migration = fixture.migrate_with(&input, Some(&decided)).unwrap(); + assert_eq!(migration.report.needs_review(), 0); + assert_eq!(migration.report.obligations[0]["entry"], "node-internals"); + } + + #[test] + #[test_r::tag(migration_contract)] + fn moved_assertions_must_land_on_a_runnable_subtest() { + let fixture = blocks_fixture(); + let input = config(&blocks( + "{}", + "{}", + r#"{ "category": "known-gap", "reason": "gap" }"#, + )); + let proposal = fixture.migrate_with(&input, None).unwrap(); + let gap = json!({ "category": "known-gap", "reason": "split elsewhere" }); + let moved = |target: &str| { + decision( + &proposal, + "block_00_block_00", + gap.clone(), + json!({ "assertions": "moved", "obligation": "moved", "movedTo": [target] }), + ) + }; + let kept = decision(&proposal, "block_01_block_01", json!({}), json!({})); + let run = |rows| { + fixture + .migrate_with(&input, Some(&record(&proposal, rows))) + .unwrap() + }; + let accepted = run(vec![ + moved("parallel/test-a.js#block_01_block_01"), + kept.clone(), + ]); + assert_eq!(accepted.report.needs_review(), 0); + for target in [ + "parallel/test-a.js#block_02_block_02", + "parallel/test-missing.js", + ] { + let rejected = run(vec![moved(target), kept.clone()]); + let row = pending(&rejected, "block_00_block_00"); + assert!( + row["problem"] + .as_str() + .unwrap() + .starts_with("obligationViolation"), + "{row:#}" + ); + assert_eq!(rejected.report.needs_review(), 1); + } + // The target itself is a changed subtest; when its own decision stops it running + // without a baseline gap, the decision that moved assertions to it is rejected too. + let target_moved = decision( + &proposal, + "block_01_block_01", + json!({ "category": "wasi-impossible", "reason": "socket" }), + json!({ "assertions": "changed", "obligation": "target-change", "evidence": "socket" }), + ); + let rejected = run(vec![ + moved("parallel/test-a.js#block_01_block_01"), + target_moved, + ]); + assert_eq!(rejected.report.pending_position_decisions.len(), 1); + assert_eq!( + pending(&rejected, "block_00_block_00")["file"], + "parallel/test-a.js" + ); + } + + #[test] + #[test_r::tag(migration_contract)] + fn moved_assertions_must_land_on_a_test_the_runner_selects() { + let fixture = blocks_fixture(); + let internals = r#"{ "category": "node-internals", "reason": "internal" }"#; + fixture + .previous("parallel/test-b.js", "{ b(1); }\n{ b(2); }\n") + .source("parallel/test-b.js", "{ b(1); }\n{ b(2); }\n") + .source("parallel/test-c.js", "{ c(1); }\n{ c(2); }\n") + .source("parallel/test-d.js", "d();\n"); + // test-b is split and every subtest it runs is excluded; test-c runs whole and is + // excluded, although its listed subtest is runnable; test-d runs whole. + let input = config(&format!( + "{},\n \"parallel/test-b.js\": {{ \"split\": true, \"subtests\": {{ \"block_00_block_00\": {internals}, \"block_01_block_01\": {internals} }} }},\n \"parallel/test-c.js\": {{ \"category\": \"wasi-impossible\", \"reason\": \"socket\", \"split\": false, \"subtests\": {{ \"block_00_block_00\": {{ \"category\": \"runnable\" }} }} }},\n \"parallel/test-d.js\": {{}}", + blocks("{}", "{}", internals) + )); + let proposal = fixture.migrate_with(&input, None).unwrap(); + let impossible = json!({ "category": "wasi-impossible", "reason": "needs a socket" }); + let moved = |target: &str| { + decision( + &proposal, + "block_00_block_00", + impossible.clone(), + json!({ "assertions": "moved", "obligation": "moved", "movedTo": [target] }), + ) + }; + let second = + |entry: Value, extra: Value| decision(&proposal, "block_01_block_01", entry, extra); + let kept = second(json!({}), json!({})); + let excluded = second( + impossible.clone(), + json!({ "assertions": "changed", "obligation": "target-change", "evidence": "socket" }), + ); + let run = |rows: Vec| { + fixture + .migrate_with(&input, Some(&record(&proposal, rows))) + .unwrap() + }; + let first_entry = |migration: &Migration| { + entries(migration)["parallel/test-a.js"]["subtests"]["block_00_block_00"].clone() + }; + for (target, other) in [ + // The file's own parent, whose subtests are now all excluded. + ("parallel/test-a.js", excluded.clone()), + // A split parent is never run itself, even while one of its subtests is. + ("parallel/test-a.js", kept.clone()), + ("parallel/test-b.js", kept.clone()), + // A listed subtest of a file the runner runs whole. + ("parallel/test-c.js#block_00_block_00", kept.clone()), + ] { + let rejected = run(vec![moved(target), other]); + let row = pending(&rejected, "block_00_block_00"); + assert!( + row["problem"] + .as_str() + .unwrap() + .starts_with("obligationViolation"), + "{target}: {row:#}" + ); + assert_eq!(first_entry(&rejected), json!({}), "{target}"); + assert_eq!(rejected.report.needs_review(), 1, "{target}"); + assert_eq!(rejected.report.matched_by_position.len(), 2, "{target}"); + assert!( + rejected + .report + .obligations + .iter() + .all(|o| o["subtest"] != "block_00_block_00"), + "{target}" + ); + } + let gap = json!({ "category": "known-gap", "reason": "the new assertion needs X" }); + for (target, other) in [ + ("parallel/test-a.js#block_01_block_01", kept.clone()), + ("parallel/test-d.js", kept.clone()), + ( + "parallel/test-a.js#block_01_block_01", + second( + gap, + json!({ "assertions": "changed", "obligation": "baseline-gap" }), + ), + ), + ] { + let accepted = run(vec![moved(target), other]); + assert_eq!( + accepted.report.needs_review(), + 0, + "{target}: {:#?}", + accepted.report + ); + assert_eq!(first_entry(&accepted), impossible, "{target}"); + assert!( + accepted + .report + .obligations + .iter() + .any(|o| o["subtest"] == "block_00_block_00" && o["obligation"] == "moved"), + "{target}" + ); + } + } + + #[test] + #[test_r::tag(migration_contract)] + fn a_move_may_label_its_newly_discovered_destination() { + // Upstream inserts a block, so the formerly runnable block_01 now holds other content and + // its slightly rewritten assertions sit in the newly discovered block_02. + let fixture = Fixture::new(); + fixture + .previous("parallel/test-a.js", "{ first(); }\n{ moved(1); }\n") + .source( + "parallel/test-a.js", + "{ first(); }\n{ inserted(); }\n{ moved(2); }\n", + ); + let input = config( + r#" "parallel/test-a.js": { "split": true, "subtests": { "block_00_block_00": {}, "block_01_block_01": {} } }"#, + ); + let proposal = fixture.migrate_with(&input, None).unwrap(); + let target = "parallel/test-a.js#block_02_block_02"; + let old = "22.14.0 parallel/test-a.js#block_01_block_01"; + let moved = |target: &str, labels: Option| { + let mut extra = + json!({ "assertions": "moved", "obligation": "moved", "movedTo": [target] }); + if let Some(labels) = labels { + extra["movedToEntries"] = labels; + } + decision( + &proposal, + "block_01_block_01", + json!({ "category": "known-gap", "reason": "the inserted block needs X" }), + extra, + ) + }; + let label = |entry: Value| json!({ target: { "entry": entry, "evidence": format!("holds {old}; passes") } }); + let run = |row: Value| { + fixture + .migrate_with(&input, Some(&record(&proposal, vec![row]))) + .unwrap() + }; + let destination = |m: &Migration| { + entries(m)["parallel/test-a.js"]["subtests"]["block_02_block_02"].clone() + }; + let unevaluated = json!({ "category": "unevaluated", "reason": NEW_SUBTEST_REASON }); + + // Accepted: a runnable label, and a known gap with a reason that carries the old case. + for entry in [ + json!({ "category": "runnable" }), + json!({ "category": "known-gap", "reason": "Node 26.13.1 baseline gap: X; carries 22.14.0 subtest block_01_block_01" }), + ] { + let accepted = run(moved(target, Some(label(entry.clone())))); + assert_eq!( + accepted.report.needs_review(), + 0, + "{entry}: {:#?}", + accepted.report + ); + assert_eq!(destination(&accepted), entry); + let labelled = &accepted.report.labelled_targets; + assert_eq!(labelled.len(), 1, "{entry}"); + assert_eq!( + labelled[0]["movedFrom"], + "parallel/test-a.js#block_01_block_01" + ); + assert_eq!( + labelled[0]["previousBlake3"], + pending(&proposal, "block_01_block_01")["previousBlake3"] + ); + } + // Rejected, leaving the destination unevaluated: no label, a label that does not keep the + // assertions running, and a label on a subtest that is not newly discovered. + for (row, labelled) in [ + (moved(target, None), false), + (moved(target, Some(label(unevaluated.clone()))), false), + ( + moved( + target, + Some(label( + json!({ "category": "node-internals", "reason": "internal" }), + )), + ), + false, + ), + ( + moved( + target, + Some(label(json!({ "category": "known-gap", "reason": " " }))), + ), + false, + ), + ( + moved( + "parallel/test-a.js#block_00_block_00", + Some( + json!({ "parallel/test-a.js#block_00_block_00": { "entry": { "category": "runnable" }, "evidence": format!("holds {old}") } }), + ), + ), + true, + ), + ] { + let rejected = run(row.clone()); + let problem = pending(&rejected, "block_01_block_01")["problem"] + .as_str() + .unwrap() + .to_string(); + assert!( + problem.starts_with("obligationViolation"), + "{row:#}: {problem}" + ); + assert_eq!(destination(&rejected), unevaluated, "{row:#}"); + assert!(rejected.report.labelled_targets.is_empty(), "{row:#}"); + assert_eq!( + problem.contains("not a newly discovered subtest"), + labelled, + "{problem}" + ); + } + // A label of a decision rejected for another reason is not applied. + let mut stale = moved(target, Some(label(json!({ "category": "runnable" })))); + stale["currentBlake3"] = json!(blake3::hash(b"another source").to_hex().to_string()); + let rejected = run(stale); + assert!( + pending(&rejected, "block_01_block_01")["problem"] + .as_str() + .unwrap() + .starts_with("stale") + ); + assert_eq!(destination(&rejected), unevaluated); + + // Malformed labels fail the run: evidence that does not name the exact old case, a label + // for a target that is not moved to, a label in another file, two labels for one target. + let error = |rows: Vec| { + fixture + .migrate_with(&input, Some(&record(&proposal, rows))) + .err() + .unwrap_or_else(|| panic!("accepted")) + .to_string() + }; + let vague = json!({ target: { "entry": { "category": "runnable" }, "evidence": "holds the old block_01" } }); + assert!(error(vec![moved(target, Some(vague))]).contains("exact old case")); + let other = json!({ "parallel/test-a.js#block_00_block_00": { "entry": { "category": "runnable" }, "evidence": format!("holds {old}") } }); + assert!(error(vec![moved(target, Some(other))]).contains("not one of its movedTo targets")); + let elsewhere = "parallel/test-b.js#block_00_block_00"; + let foreign = json!({ elsewhere: { "entry": { "category": "runnable" }, "evidence": format!("holds {old}") } }); + assert!(error(vec![moved(elsewhere, Some(foreign))]).contains("only a subtest of")); + let mut twice = moved(target, Some(label(json!({ "category": "runnable" })))); + twice["subtest"] = json!("block_00_block_00"); + twice["movedToEntries"][target]["evidence"] = + json!("holds 22.14.0 parallel/test-a.js#block_00_block_00"); + assert!( + error(vec![ + moved(target, Some(label(json!({ "category": "runnable" })))), + twice + ]) + .contains("more than one decision") + ); + } + + #[test] + #[test_r::tag(migration_contract)] + fn stale_mismatched_and_unused_decisions_fail() { + let fixture = blocks_fixture(); + let input = config(&blocks("{}", "{}", "{}")); + let proposal = fixture.migrate_with(&input, None).unwrap(); + let mut stale = decision(&proposal, "block_00_block_00", json!({}), json!({})); + stale["currentBlake3"] = json!(blake3::hash(b"another source").to_hex().to_string()); + let mut mismatched = decision(&proposal, "block_01_block_01", json!({}), json!({})); + mismatched["previous"]["effective"]["category"] = json!("known-gap"); + let mut unused = decision(&proposal, "block_01_block_01", json!({}), json!({})); + unused["subtest"] = json!("block_02_block_02"); + let migration = fixture + .migrate_with( + &input, + Some(&record(&proposal, vec![stale, mismatched, unused])), + ) + .unwrap(); + assert_eq!(migration.content, input); + let problems: Vec<&str> = migration + .report + .pending_position_decisions + .iter() + .map(|row| row["problem"].as_str().unwrap()) + .collect(); + assert!(problems[0].starts_with("stale"), "{problems:?}"); + assert!(problems[1].starts_with("previousMismatch"), "{problems:?}"); + assert_eq!( + migration.report.unused_decisions, + [json!({ + "file": "parallel/test-a.js", + "subtest": "block_02_block_02", + "problem": "no changed subtest with a generated name is matched by position here", + })] + ); + assert_eq!(migration.report.needs_review(), 3); + } + + #[test] + #[test_r::tag(migration_contract)] + fn decisions_for_other_inputs_or_malformed_rows_are_rejected() { + let fixture = blocks_fixture(); + let input = config(&blocks("{}", "{}", "{}")); + let proposal = fixture.migrate_with(&input, None).unwrap(); + let row = decision(&proposal, "block_00_block_00", json!({}), json!({})); + let error = |decisions: Value| { + fixture + .migrate_with(&input, Some(&decisions)) + .err() + .unwrap_or_else(|| panic!("accepted {decisions:#}")) + .to_string() + }; + let mut versions = record(&proposal, vec![row.clone()]); + versions["to"] = json!("24.15.0"); + assert!(error(versions).contains("24.15.0")); + let mut config_hash = record(&proposal, vec![row.clone()]); + config_hash["previousConfig"]["testsBlake3"] = json!("0".repeat(64)); + assert!(error(config_hash).contains("tests hash")); + assert!(error(record(&proposal, vec![row.clone(), row.clone()])).contains("duplicate")); + let mut unknown = row.clone(); + unknown["category"] = json!("runnable"); + assert!(error(record(&proposal, vec![unknown])).contains("unknown key")); + let mut no_note = row.clone(); + no_note["note"] = json!(" "); + assert!(error(record(&proposal, vec![no_note])).contains("note")); + let mut no_evidence = row.clone(); + no_evidence["obligation"] = json!("target-change"); + assert!(error(record(&proposal, vec![no_evidence])).contains("evidence")); + let without_previous = migrate( + &input, + fixture.temp.path().as_std_path(), + None, + Some(&record(&proposal, vec![row]).to_string()), + ) + .err() + .unwrap(); + assert!( + without_previous + .to_string() + .contains("NODE_COMPAT_MIGRATION_PREVIOUS_SUITE") + ); + } } diff --git a/tests/node_compat.rs b/tests/node_compat.rs index eb11e925f..58a4dc5db 100644 --- a/tests/node_compat.rs +++ b/tests/node_compat.rs @@ -690,13 +690,8 @@ fn gen_node_compat_tests(r: &mut DynamicTestRegistration) { } else { // Split: one Rust test per subtest let suite_path = format!("tests/node_compat/suite/{}", path); - let source = match fs::read_to_string(&suite_path) { - Ok(s) => s, - Err(e) => { - eprintln!("WARNING: Cannot read split test file {}: {}", suite_path, e); - continue; - } - }; + let source = fs::read_to_string(&suite_path) + .unwrap_or_else(|e| panic!("Cannot read split test file {suite_path}: {e}")); let discovery = discover_subtests_with_options( &path, @@ -705,17 +700,22 @@ fn gen_node_compat_tests(r: &mut DynamicTestRegistration) { entry.isolate_block_subtests, ); - // Staleness check: compare discovered subtest count vs config count - let discovered_count = match &discovery { - SubtestDiscovery::None => 0, - SubtestDiscovery::Block(blocks) => blocks.len(), - SubtestDiscovery::NodeTest(tests) => tests.len(), + // Staleness check: a subtest runs by the index in its configured name, so the names, + // not just their number, must match the vendored source. + let mut discovered: Vec<&str> = match &discovery { + SubtestDiscovery::None => Vec::new(), + SubtestDiscovery::Block(blocks) => blocks.iter().map(|b| b.name.as_str()).collect(), + SubtestDiscovery::NodeTest(tests) => { + tests.iter().map(|t| t.name.as_str()).collect() + } }; + let mut configured: Vec<&str> = + entry.subtests.iter().map(|s| s.name.as_str()).collect(); + discovered.sort_unstable(); + configured.sort_unstable(); assert_eq!( - discovered_count, - entry.subtests.len(), - "Subtest count mismatch for {path}: config has {}, discovered {discovered_count}. Run migration tool.", - entry.subtests.len() + configured, discovered, + "Subtest names for {path} differ between config.jsonc and the vendored source. Run the migration tool (cargo test --test migrate_config_split -- --exact migrate_config_split) and map its report." ); for subtest in &entry.subtests { diff --git a/tests/node_compat/README.md b/tests/node_compat/README.md index 810ab35a3..67e4f499e 100644 --- a/tests/node_compat/README.md +++ b/tests/node_compat/README.md @@ -13,7 +13,9 @@ tests/node_compat/ │ ├── es-module/ # ~190 test files from test/es-module/ │ ├── common/ # Node.js test/common/ infrastructure │ ├── fixtures/ # Node.js test/fixtures/ data files -│ └── NODE_VERSION # Version string (e.g., "22.14.0") +│ ├── sqlite/ # Node.js test/sqlite/ helpers (next-db.js in newer releases) +│ ├── trace_events/ # Node.js test/trace_events/ (test-trace-events-*.js since Node 26) +│ └── NODE_VERSION # Version string (e.g., "26.13.1") ├── common-shim/ # Our WASM-compatible shim for test/common │ └── index.js ├── config.jsonc # Allowlist of tests that should pass @@ -26,7 +28,7 @@ tests/node_compat/ To fetch (or update) the vendored test suite: ```bash -# Default version (22.14.0) +# Default version (26.13.1) ./tests/node_compat/vendor.sh # Specific version @@ -34,20 +36,141 @@ To fetch (or update) the vendored test suite: ``` This sparse-checkouts `test/parallel/`, `test/sequential/`, `test/es-module/`, -`test/common/`, and `test/fixtures/` from the Node.js repository at the -specified tag. The `suite/` directory is gitignored — each +`test/common/`, `test/fixtures/`, `test/sqlite/`, and `test/trace_events/` from the Node.js +repository at the specified tag. The `suite/` directory is gitignored — each developer runs the vendor script to populate it. Configuration loading and report generation inspect these pinned sources to distinguish public API coverage from tests that rely on Node.js internals. They -fail when the suite is absent, a source required for implicit classification is -missing, or the vendored version differs from `config.jsonc`; this prevents -missing classification inputs from silently changing the compatibility totals. +fail when the suite is absent, any configured entry has no vendored source, or +the vendored version differs from `config.jsonc`; this prevents missing inputs +from silently changing the compatibility totals. The runner also fails when a +split entry's subtest names differ from the names discovered in its source, +because each subtest runs by the index in its configured name. + +## Migrating the Config After Re-vendoring + +Keep a copy of the previously vendored suite, vendor the new version, set `nodeVersion` and run: + +```bash +NODE_COMPAT_MIGRATION_PREVIOUS_SUITE=/path/to/previous/suite \ + cargo test --test migrate_config_split -- --exact migrate_config_split +``` + +The previous suite is required whenever the subtests of a split file changed. + +The migration rewrites only entries whose subtests changed and keeps every +metadata key (`category`, `reason`, `flaky`, `timeout`, split options) of the file +and of each surviving subtest: + +- An unsplit file that now has several subtests is split; each subtest inherits + the file's metadata. An explicit `"split": false` keeps it whole. +- A subtest keeps the metadata of the previous subtest with identical source, + even when its index, and with it a generated name such as `block_05_block_05`, + changed. Otherwise it keeps the metadata of the previous subtest with the same + name, or of the one with the same unique description. A new subtest starts + `unevaluated` unless the file is already excluded from the runner. + Source matching is byte-exact, including whitespace inside and outside literals; + reformatting can therefore require a mapping or positional decision. +- A changed subtest with a generated name keeps the metadata of the previous + subtest at its position only as a proposal. The report lists every such subtest + under `matchedByPosition`, including excluded ones, and the run fails until each + has an accepted mapping decision (see below). +- A split file that no longer splits becomes one entry only when all its + subtests carried identical metadata; otherwise it is left unchanged for a + decision. +- Unlisted vendored `test-*.js` and `test-*.mjs` files are added as + `unevaluated`. + +It never deletes an entry. Configured files without a source, removed subtests, +undecided unsplits, positional subtests without an accepted decision and unused +decisions are written to `target/node-compat-migration-report.json` (override with +`NODE_COMPAT_MIGRATION_REPORT`), and the run fails until each one is mapped by +reading both versions. `config.jsonc` is written only when no review decisions +remain unresolved; a run with unresolved decisions writes only the report and +leaves the authoritative config untouched for the next attempt. The tool's contract tests run with +`cargo test --test migrate_config_split -- ':tag:migration_contract'`. + +### Mapping decisions for subtests matched by position + +Read both versions of each subtest in `pendingPositionDecisions`, then record a +decision for it in a JSON file and rerun the migration on the same input config +with `NODE_COMPAT_MIGRATION_DECISIONS=/path/to/decisions.json`: + +```json +{ + "from": "22.14.0", + "to": "26.13.1", + "previousConfig": { + "revision": "", + "path": "tests/node_compat/config.jsonc", + "testsBlake3": "" + }, + "positionDecisions": [ + { + "file": "parallel/test-a.js", + "subtest": "block_03_block_03", + "previousBlake3": "", + "currentBlake3": "", + "previous": { "raw": {}, "fileEntry": {}, "effective": { "category": "runnable", "reason": null, "flaky": false } }, + "entry": { "category": "known-gap", "reason": "the new assertion needs X" }, + "assertions": "changed", + "obligation": "baseline-gap", + "note": "what the old and new block assert" + } + ] +} +``` + +- `from` and `to` must be the `NODE_VERSION` of the previous and current suites, + and `testsBlake3` the hash of the input config's `tests` object that the report + prints under `positionInputs`; otherwise the run fails before writing. A + decisions file therefore applies only to the config it was written for: after + changing an entry, restore that config (`revision` records where it came from) + and rerun, rather than applying the decisions to the migrated config. +- `previousBlake3` and `currentBlake3` hash both versions of the whole test file, + and `previous` must equal the raw entry, the file's metadata and the effective + category, reason and flaky flag the harness gave the subtest in the previous + suite. A changed file or a different previous classification leaves the + subtest pending with a `stale` or `previousMismatch` problem. The hashes do not + cover helpers the test imports or the harness itself. +- `entry` is written as the subtest's metadata. `assertions` (`kept`, `changed`, + `moved` or `none`) and `note` record what happened to the old assertions. +- A formerly runnable subtest that no longer runs, and a former known gap that + leaves the primary surface, need an `obligation`: `baseline-gap` (runnable to a + known gap with a reason), `moved` with `movedTo` naming tests the runner + selects that run or are themselves baseline gaps, or `target-change` with + `evidence`. The runner runs a split file with subtests only as its subtests and + any other file only as a whole, so a target is a `file#subtest` of a split file + with subtests and otherwise the `file`; a split parent or a subtest listed + under an unsplit file is rejected. The report lists these under `obligations` for + review; the tool checks their shape, not whether the old assertions really are + kept. +- When upstream inserted blocks, the old assertions can sit in a newly discovered + subtest, which the migration writes as `unevaluated`, so a move to it is rejected. + A move decision may then label that subtest in `movedToEntries`, keyed by its + `movedTo` target, with the `entry` to write and `evidence` naming the exact old + case as ` #`, for example + `"evidence": "holds 22.14.0 parallel/test-a.js#block_02_block_02 byte for byte; passes twice"`. + Only a newly discovered subtest of the decision's own file can be labelled, by one + decision. The label is checked like any target: it must be `runnable`, or a + `known-gap` with a reason when the old case was runnable (its baseline gap). The + report lists the labels under `labelledTargets`, with the old case and file hash. +- Duplicate or malformed decisions fail the run; a decision that matches no + pending subtest is listed under `unusedDecisions` and fails it. A decision for + an excluded subtest is required too. ## Target Selection -The harness is pinned to Node.js 22.14.0. NJ-01 selected Node.js 26.13.1 (npm 11.20.0) as the -next target, measured against Node.js 24.22.3; NJ-02 performs the switch. See +The `node_compat` suite and the runtime's `process` version metadata target Node.js 26.13.1, +selected by NJ-01 (with npm 11.20.0) against Node.js 24.22.3. The host Node.js and npm pins of the +runtime, npm and `agentic_ts` lanes are still 22.14.0 and npm 10.9.2 until the npm refresh. Every +22.14.0 baseline case that the switch could not carry over unchanged was audited against the +26.13.1 suite: it was repaired, or it is a `known-gap` whose reason names its own cause, such as a +Node 26.13.1 assertion the runtime does not meet yet. The source-bound audit evidence is kept with +[pull request #218](https://github.com/golemcloud/wasm-rquickjs/pull/218), not in this +repository. A 22.14.0 case whose assertion upstream reversed is a target change, not a baseline +gap. See [`target-selection.md`](target-selection.md) for pin provenance, measured suite, API and npm 10.9.2-to-11.20.0 differences, required harness changes and switching instructions, and [`target-mapping-22.14.0.json`](target-mapping-22.14.0.json) for the mapping of every 22.14.0 @@ -59,8 +182,10 @@ passing case that does not pass unchanged on both candidates. are run by the test harness. Each entry can include: - `{}` — test should pass +- `{ "category": "...", "reason": "..." }` — classification; see the header of + `config.jsonc` for the categories. Only `runnable` entries run. - `{ "flaky": true }` — one retry (two total attempts, each with fresh runtime state) -- `{ "skip": true, "reason": "..." }` — skip with explanation +- `{ "timeout": 300 }` — per-case timeout in seconds Retries are bounded by test-r's native `RetryKnownFlaky(2)` policy: a passing attempt ends the test, and two failed attempts fail it. Non-split tests use the @@ -84,6 +209,11 @@ WASM-appropriate stubs. Key differences: - `mustCall()` / `mustCallAtLeast()` are pass-through (no `process.on('exit')`) - `canCreateSymLink()` returns false - Network/process-related helpers are stubbed or throw +- `common.skip()` counts as a pass, so capability flags added by newer + `test/common` releases (`hasSQLite`, `hasInspector`, `hasFFI`, `hasFIPS()` and + others) report what the component actually provides; `hasSQLite` probes + `node:sqlite` instead of reading `process.versions.sqlite`. A guard must not + skip a test whose module is available. ## How Tests Run diff --git a/tests/node_compat/common-shim/crypto.js b/tests/node_compat/common-shim/crypto.js index 506ee7a9d..8db4d0582 100644 --- a/tests/node_compat/common-shim/crypto.js +++ b/tests/node_compat/common-shim/crypto.js @@ -89,6 +89,12 @@ module.exports = { sec1Exp: sec1Exp, sec1EncExp: sec1EncExp, hasOpenSSL: hasOpenSSL, + // Upstream: crypto.getFips() === 1 && hasOpenSSL(major, minor, patch). + hasFIPS: function(major, minor, patch) { + return typeof crypto.getFips === 'function' && crypto.getFips() === 1 && + hasOpenSSL(major, minor, patch); + }, + isBoringSSL: Boolean(process.features && process.features.openssl_is_boringssl), get hasOpenSSL3() { return false; }, diff --git a/tests/node_compat/common-shim/fixtures.js b/tests/node_compat/common-shim/fixtures.js index f10ce7532..6c5d6a46e 100644 --- a/tests/node_compat/common-shim/fixtures.js +++ b/tests/node_compat/common-shim/fixtures.js @@ -8,30 +8,36 @@ const fs = require('fs'); const fixturesDir = '/home/node/test/fixtures'; +// Like upstream, avoid array iteration so tests that delete Array.prototype[Symbol.iterator] work. function fixturesPath(...args) { - return path.join(fixturesDir, ...args); + args.unshift(fixturesDir); + return Reflect.apply(path.join, this, args); } function fileURL(...args) { var url = require('url'); if (url.pathToFileURL) { - return url.pathToFileURL(fixturesPath(...args)); + return url.pathToFileURL(Reflect.apply(fixturesPath, this, args)); } - return new URL('file://' + fixturesPath(...args)); + return new URL('file://' + Reflect.apply(fixturesPath, this, args)); } function readSync(arg, encoding) { - const p = Array.isArray(arg) ? fixturesPath(...arg) : fixturesPath(arg); + const p = Array.isArray(arg) ? Reflect.apply(fixturesPath, this, arg) : fixturesPath(arg); return fs.readFileSync(p, encoding); } -const keyAliases = { - // DSA parsing/signing is not implemented yet; use EC fixtures for sign/verify flow tests. +// DSA one-shot sign/verify with these 2048-bit fixtures is not implemented yet, so the +// sign/verify flow tests below use EC fixtures instead. Other tests read the real DSA keys. +const dsaAliasTests = ['test-crypto-async-sign-verify.js', 'test-crypto-rsa-dsa.js']; +const dsaAliases = { 'dsa_private.pem': 'ec_secp256k1_private.pem', 'dsa_private_encrypted.pem': 'ec_secp256k1_private_encrypted.pem', 'dsa_private_pkcs8.pem': 'ec_secp256k1_private.pem', 'dsa_public.pem': 'ec_secp256k1_public.pem', }; +const mainFile = (require.main && require.main.filename) || process.argv[1] || ''; +const keyAliases = dsaAliasTests.includes(path.basename(mainFile)) ? dsaAliases : {}; function readKey(name, encoding) { const mappedName = keyAliases[name] || name; diff --git a/tests/node_compat/common-shim/index.js b/tests/node_compat/common-shim/index.js index 78702aab7..c0eae2ec4 100644 --- a/tests/node_compat/common-shim/index.js +++ b/tests/node_compat/common-shim/index.js @@ -9,6 +9,16 @@ require('./tmpdir'); var noop = function() {}; var _mustCallChecks = []; +// Like upstream common's _mustCallInner, keep the wrapped function's name and +// length, which APIs such as sqlite's db.function() read. +function _copyFunctionShape(wrapper, fn) { + Object.defineProperties(wrapper, { + name: { value: fn.name, writable: false, enumerable: false, configurable: true }, + length: { value: fn.length, writable: false, enumerable: false, configurable: true }, + }); + return wrapper; +} + function copyEnv(env) { var copy = {}; var keys = Object.keys(env || {}); @@ -115,6 +125,16 @@ function parseInlineEvalArgs(args) { if (arg === '--preserve-symlinks' || arg === '--preserve-symlinks-main') { continue; } + // The runtime has no Web Storage, so --no-webstorage already holds; its + // --localstorage-file value is then unused. + if (arg === '--no-webstorage') { + parsed.noWebstorage = true; + continue; + } + if (parsed.noWebstorage && arg === '--localstorage-file') { + i++; + continue; + } throw new Error('Only --eval/-e, --input-type, and script files are supported in WASM child emulation'); } @@ -547,7 +567,7 @@ var common = { return wrapped.apply(this, arguments); }; _mustCallChecks.push({ expected: expected, getActual: function() { return actual; }, callSite: callSite }); - return wrapper; + return _copyFunctionShape(wrapper, wrapped); }, mustCallAtLeast: function(fn, minimum) { var wrapped = fn || noop; @@ -559,7 +579,7 @@ var common = { return wrapped.apply(this, arguments); }; _mustCallChecks.push({ minimum: min, getActual: function() { return actual; }, callSite: callSite }); - return wrapper; + return _copyFunctionShape(wrapper, wrapped); }, mustNotCall: function(msg) { function mustNotCall() { @@ -775,6 +795,79 @@ var common = { // Inside directory with unusual characters get isInsideDirWithUnusualChars() { return false; }, + // Helpers that upstream test/common added after 22.14.0. common.skip() counts as a pass, so + // each capability flag reports what this component actually provides rather than build + // metadata it does not set, and never skips a test whose module is available. + hasInspector: Boolean(process.features && process.features.inspector), + get hasSQLite() { return hasSQLite(); }, + hasFFI: false, + hasPerfetto: false, + hasDtls: false, + get hasLocalStorage() { + var desc = Object.getOwnPropertyDescriptor(globalThis, 'localStorage'); + return hasSQLite() && desc !== undefined && desc.enumerable === true; + }, + hasTemporal: typeof globalThis.Temporal !== 'undefined', + get hasFullICU() { + try { + return new Intl.DateTimeFormat('es', { month: 'long' }).format(new Date(9e8)) === 'enero'; + } catch (_) { + return false; + } + }, + hasV8Sandbox: false, + isRiscv64: process.arch === 'riscv64', + usesSharedLibrary: false, + skipIfSQLiteMissing: function() { + if (!hasSQLite()) { + common.skip('missing SQLite'); + } + }, + skipIfFFIMissing: function() { + common.skip('missing FFI'); + }, + skipIfPerfettoEnabled: noop, + skipIfPerfettoDisabled: function() { + common.skip('Perfetto is disabled'); + }, + expectRequireStack: function(output, expected) { + var assert = require('assert'); + var lines = output.replace(/\r/g, '').split('\n'); + var start = lines.indexOf('Require stack:'); + if (start === -1) { + assert.deepStrictEqual([], expected); + return; + } + var stack = []; + for (var i = start + 1; i < lines.length && lines[i].startsWith('- '); i++) { + stack.push(lines[i].slice(2)); + } + assert.deepStrictEqual(stack, expected); + }, + expectRequiredTLAError: function(err, stack) { + var assert = require('assert'); + var message = /require\(\) cannot be used on an ESM graph with top-level await/; + if (typeof err === 'string') { + assert.match(err, /ERR_REQUIRE_ASYNC_MODULE/); + assert.match(err, message); + if (stack) { + common.expectRequireStack(err, stack); + } + } else { + assert.strictEqual(err.code, 'ERR_REQUIRE_ASYNC_MODULE'); + assert.match(err.message, message); + if (stack) { + assert.deepStrictEqual(err.requireStack, stack); + } + } + }, + sleepSync: function(ms) { + var end = Date.now() + ms; + while (Date.now() < end) { + // Busy-wait: upstream uses Atomics.wait, but QuickJS is built without Atomics for WASI. + } + }, + // mustCall verification _checkMustCalls: function() { var errors = []; @@ -811,6 +904,23 @@ var common = { }, }; +// Upstream derives hasSQLite from process.versions.sqlite. Probe node:sqlite instead: a build +// without the sqlite feature still loads the module, but its constructor throws. Node 26 renamed +// DatabaseSync to Database and keeps DatabaseSync as a deprecated alias. +var _hasSQLite; +function hasSQLite() { + if (_hasSQLite === undefined) { + try { + var sqlite = require('node:sqlite'); + new (sqlite.Database || sqlite.DatabaseSync)(':memory:').close(); + _hasSQLite = true; + } catch (_) { + _hasSQLite = false; + } + } + return _hasSQLite; +} + function applyNetFlagsAndDefaults() { var net; try { @@ -839,9 +949,9 @@ function applyNetFlagsAndDefaults() { } } - // Match Node's test/common behavior: inflate this timeout to reduce flakes. + // Match Node 26 test/common behavior: inflate this timeout to reduce flakes. net.setDefaultAutoSelectFamilyAttemptTimeout( - common.platformTimeout(net.getDefaultAutoSelectFamilyAttemptTimeout() * 10) + common.platformTimeout(net.getDefaultAutoSelectFamilyAttemptTimeout() * 5) ); } diff --git a/tests/node_compat/common-shim/index.mjs b/tests/node_compat/common-shim/index.mjs index 43f538f0b..a6d5bb4f3 100644 --- a/tests/node_compat/common-shim/index.mjs +++ b/tests/node_compat/common-shim/index.mjs @@ -22,6 +22,17 @@ const { hasIPv6, hasMultiLocalhost, hasQuic, + hasInspector, + hasSQLite, + hasFFI, + hasDtls, + hasLocalStorage, + hasTemporal, + hasV8Sandbox, + isRiscv64, + skipIfSQLiteMissing, + skipIfPerfettoEnabled, + sleepSync, localhostIPv4, buildType, mustCall, @@ -75,6 +86,17 @@ export { hasIPv6, hasMultiLocalhost, hasQuic, + hasInspector, + hasSQLite, + hasFFI, + hasDtls, + hasLocalStorage, + hasTemporal, + hasV8Sandbox, + isRiscv64, + skipIfSQLiteMissing, + skipIfPerfettoEnabled, + sleepSync, localhostIPv4, buildType, mustCall, diff --git a/tests/node_compat/config.jsonc b/tests/node_compat/config.jsonc index 921c580c5..e02fbb956 100644 --- a/tests/node_compat/config.jsonc +++ b/tests/node_compat/config.jsonc @@ -1,6 +1,6 @@ { // Node.js version these tests were vendored from - "nodeVersion": "22.14.0", + "nodeVersion": "26.13.1", // Tests listed here are included in the compatibility inventory. // Each key is a path relative to the suite/ directory. @@ -55,10 +55,15 @@ "test_11_bad_args_to_assertionerror_constructor_should_throw_typeerro": {}, "test_12_nan_is_handled_correctly": {}, "test_13_test_strict_assert": {}, - "test_14_additional_asserts": {}, + "test_14_additional_asserts": { "category": "known-gap", "reason": "QuickJS exposes no eval/Function source text, so assert.ok there reports 'false == true' (the 22.14.0 expectation) instead of the Node 26.13.1 source line" }, "test_15_throws_accepts_objects": {}, "test_16_additional_assert": {}, - "test_17_assert_strict_exists": {} + "test_17_assert_strict_exists": {}, + "test_18_printf_like_format_strings_as_error_message": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_19_functions_as_error_message": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_20_ambiguous_error_messages_fail": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_21_faulty_message_functions": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_22_functions_as_error_message": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-assert-async.js": { @@ -71,27 +76,6 @@ "block_04_check_assert_doesnotreject": {} } }, - "parallel/test-assert-builtins-not-read-from-filesystem.js": {}, - "parallel/test-assert-calltracker-calls.js": { - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {}, - "block_03_block_03": {}, - "block_04_block_04": {}, - "block_05_block_05": {} - } - }, - "parallel/test-assert-calltracker-getCalls.js": { - "split": true, - "subtests": { - "test_00_assert_calltracker_getcalls": {}, - "test_01_assert_calltracker_reset": {} - } - }, - "parallel/test-assert-calltracker-report.js": {}, - "parallel/test-assert-calltracker-verify.js": {}, "parallel/test-assert-checktag.js": {}, "parallel/test-assert-deep-with-error.js": { "split": true, @@ -104,57 +88,62 @@ "split": true, "subtests": { "test_00_deepequal": {}, - "test_01_date": {}, - "test_02_regexp": {}, - "test_03_deepequal_should_pass_for_these_weird_cases": {}, - "test_04_es6_maps_and_sets": {}, - "test_05_gh_6416_make_sure_circular_refs_do_not_throw": {}, - "test_06_gh_14441_circular_structures_should_be_consistent": {}, - "test_07_ensure_reflexivity_of_deepequal_with_arguments_objects": {}, - "test_08_more_checking_that_arguments_objects_are_handled_correctly": {}, - "test_09_handle_sparse_arrays": {}, - "test_10_handle_different_error_messages": {}, - "test_11_handle_nan": {}, - "test_12_handle_boxed_primitives": {}, - "test_13_minus_zero": {}, - "test_14_handle_symbols_enumerable_only": {}, - "test_15_additional_tests": {}, - "test_16_having_the_same_number_of_owned_properties_the_same_set_of_k": {}, - "test_17_having_an_identical_prototype_property": {}, - "test_18_primitives": {}, + "test_01_loose_deepequal": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_02_date": {}, + "test_03_regexp": {}, + "test_04_deepequal_should_pass_for_these_weird_cases": {}, + "test_05_es6_maps_and_sets": {}, + "test_06_gh_6416_make_sure_circular_refs_do_not_throw": {}, + "test_07_gh_14441_circular_structures_should_be_consistent": {}, + "test_08_deepstrictequal_handles_shared_expected_array_elements_after": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_09_deepstrictequal_handles_cross_root_aliases_after_cycle_detec": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_10_ensure_reflexivity_of_deepequal_with_arguments_objects": {}, + "test_11_more_checking_that_arguments_objects_are_handled_correctly": {}, + "test_12_handle_sparse_arrays": {}, + "test_13_handle_sets_and_maps_with_mixed_keys": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_14_handle_different_error_messages": {}, + "test_15_handle_nan": {}, + "test_16_handle_boxed_primitives": {}, + "test_17_minus_zero": {}, + "test_18_handle_symbols_enumerable_only": {}, "test_19_additional_tests": {}, "test_20_having_the_same_number_of_owned_properties_the_same_set_of_k": {}, - "test_21_prototype_check": {}, - "test_22_check_extra_properties_on_errors": {}, - "test_23_check_proxies": {}, - "test_24_test_24": {}, - "test_25_basic_valueof_check": {}, - "test_26_basic_array_out_of_bounds_check": {}, - "test_27_test_27": {}, + "test_21_having_an_identical_prototype_property": {}, + "test_22_primitives": {}, + "test_23_additional_tests": {}, + "test_24_having_the_same_number_of_owned_properties_the_same_set_of_k": {}, + "test_25_prototype_check": {}, + "test_26_check_extra_properties_on_errors": {}, + "test_27_check_proxies": {}, "test_28_test_28": {}, - "test_29_verify_that_extra_keys_will_be_tested_for_when_using_fake_ar": {}, - "test_30_verify_that_changed_tags_will_still_check_for_the_error_mess": {}, - "test_31_check_for_non_native_errors": {}, - "test_32_check_for_errors_with_cause_property": {}, - "test_33_check_for_aggregateerror": {}, - "test_34_verify_that_valueof_is_not_called_for_boxed_primitives": {}, - "test_35_check_getters": {}, - "test_36_verify_object_types_being_identical_on_both_sides": {}, - "test_37_verify_commutativity": {}, - "test_38_crypto": {} + "test_29_basic_valueof_check": {}, + "test_30_basic_array_out_of_bounds_check": {}, + "test_31_test_31": {}, + "test_32_test_32": {}, + "test_33_verify_that_extra_keys_will_be_tested_for_when_using_fake_ar": {}, + "test_34_verify_that_changed_tags_will_still_check_for_the_error_mess": {}, + "test_35_check_for_non_native_errors": {}, + "test_36_check_for_errors_with_cause_property": {}, + "test_37_check_for_aggregateerror": {}, + "test_38_verify_that_valueof_is_not_called_for_boxed_primitives": {}, + "test_39_check_getters": {}, + "test_40_verify_object_types_being_identical_on_both_sides": {}, + "test_41_verify_commutativity": {}, + "test_42_crypto": {}, + "test_43_comparing_two_identical_weakmap_instances": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_44_comparing_two_different_weakmap_instances": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_45_comparing_two_identical_weakset_instances": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_46_comparing_two_different_weakset_instances": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_47_comparing_two_arrays_nested_inside_object_with_overlapping_e": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_48_comparing_two_arrays_nested_inside_object_with_overlapping_e": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_49_detects_differences_in_deeply_nested_arrays_instead_of_seein": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_50_urls": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_51_own_property_constructor_properties_should_check_against_the": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_52_inherited_null_prototype_without_own_constructor_properties_": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_53_promises_should_fail_deepequal": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-assert-esm-cjs-message-verify.js": {}, - "parallel/test-assert-fail-deprecation.js": { - "split": true, - "subtests": { - "test_00_two_args_only_operator_defaults_to": {}, - "test_01_three_args": {}, - "test_02_three_args_with_custom_error": {}, - "test_03_no_third_arg_but_a_fourth_arg": {}, - "test_04_the_stackframefunction_should_exclude_the_foo_frame": {} - } - }, "parallel/test-assert-fail.js": { "split": true, "subtests": { @@ -174,7 +163,6 @@ "test_03_https_github_com_nodejs_node_v0_x_archive_issues_2893": {} } }, - "parallel/test-assert-objects.js": {}, "parallel/test-assert-typedarray-deepequal.js": { "split": true, "subtests": { @@ -189,137 +177,53 @@ // === blob tests === "parallel/test-blob.js": { - "split": true, "isolateBlockSubtests": true, + "split": true, "subtests": { - "block_00_block_00": { - "category": "runnable" - }, - "block_01_statement_01": { - "category": "runnable" - }, - "block_02_statement_02": { - "category": "runnable" - }, - "block_03_statement_03": { - "category": "runnable" - }, - "block_04_block_04": { - "category": "runnable" - }, - "block_05_block_05": { - "category": "runnable" - }, - "block_06_block_06": { - "category": "runnable" - }, - "block_07_block_07": { - "category": "runnable" - }, - "block_08_block_08": { - "category": "runnable" - }, - "block_09_block_09": { - "category": "runnable" - }, - "block_10_block_10": { - "category": "runnable" - }, - "block_11_block_11": { - "category": "runnable" - }, - "block_12_block_12": { - "category": "runnable" - }, - "block_13_block_13": { - "category": "runnable" - }, - "block_14_block_14": { - "category": "runnable" - }, - "block_15_block_15": { - "category": "runnable" - }, - "block_16_block_16": { - "category": "runnable" - }, - "block_17_block_17": { - "category": "runnable" - }, - "block_18_block_18": { - "category": "runnable" - }, - "block_19_block_19": { - "category": "runnable" - }, - "block_20_block_20": { - "category": "runnable" - }, - "block_21_statement_21": { - "category": "runnable" - }, - "block_22_statement_22": { - "category": "runnable" - }, - "block_23_statement_23": { - "category": "runnable" - }, - "block_24_statement_24": { - "category": "runnable" - }, - "block_25_statement_25": { - "category": "runnable" - }, - "block_26_statement_26": { - "category": "runnable" - }, - "block_27_statement_27": { - "category": "known-gap", - "reason": "fetch does not resolve registered blob:nodedata URLs; requests currently require wasi:http transport" - }, - "block_28_statement_28": { - "category": "node-internals", - "reason": "Asserts internal webstreams kState" - }, - "block_29_statement_29": { - "category": "known-gap", - "reason": "Blob byte-stream BYOB final read does not settle at end of stream" - }, - "block_30_statement_30": { - "category": "node-internals", - "reason": "Asserts internal webstreams kState" - }, - "block_31_statement_31": { - "category": "node-internals", - "reason": "Asserts internal webstreams kState" - }, - "block_32_block_32": { - "category": "runnable" - }, - "block_33_block_33": { - "category": "runnable" - }, - "block_34_statement_34": { - "category": "runnable" - }, - "block_35_statement_35": { - "category": "runnable" - }, - "block_36_block_36": { - "category": "runnable" - }, - "block_37_statement_37": { - "category": "runnable" - }, - "block_38_block_38": { - "category": "runnable" - }, - "block_39_statement_39": { - "category": "runnable" - }, - "block_40_statement_40": { - "category": "runnable" - } + "block_00_block_00": { "category": "runnable" }, + "block_01_statement_01": { "category": "runnable" }, + "block_02_statement_02": { "category": "runnable" }, + "block_03_statement_03": { "category": "runnable" }, + "block_04_block_04": { "category": "runnable" }, + "block_05_block_05": { "category": "runnable" }, + "block_06_block_06": { "category": "runnable" }, + "block_07_block_07": { "category": "runnable" }, + "block_08_block_08": { "category": "runnable" }, + "block_09_block_09": { "category": "runnable" }, + "block_10_block_10": { "category": "runnable" }, + "block_11_block_11": { "category": "runnable" }, + "block_12_block_12": { "category": "runnable" }, + "block_13_block_13": { "category": "runnable" }, + "block_14_block_14": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_15_block_15": { "category": "runnable" }, + "block_16_block_16": { "category": "runnable" }, + "block_17_block_17": { "category": "runnable" }, + "block_18_block_18": { "category": "runnable" }, + "block_19_block_19": { "category": "runnable" }, + "block_20_block_20": { "category": "runnable" }, + "block_21_block_21": { "category": "runnable" }, + "block_22_statement_22": { "category": "runnable" }, + "block_23_statement_23": { "category": "runnable" }, + "block_24_statement_24": { "category": "runnable" }, + "block_25_statement_25": { "category": "runnable" }, + "block_26_statement_26": { "category": "runnable" }, + "block_27_statement_27": { "category": "runnable" }, + "block_28_statement_28": { "category": "known-gap", "reason": "fetch does not resolve registered blob:nodedata URLs; requests currently require wasi:http transport" }, + "block_29_statement_29": { "category": "node-internals", "reason": "Asserts internal webstreams kState" }, + "block_30_statement_30": { "category": "known-gap", "reason": "Blob byte-stream BYOB final read does not settle at end of stream" }, + "block_31_statement_31": { "category": "node-internals", "reason": "Asserts internal webstreams kState" }, + "block_32_statement_32": { "category": "node-internals", "reason": "Asserts internal webstreams kState" }, + "block_33_block_33": { "category": "runnable" }, + "block_34_block_34": { "category": "runnable" }, + "block_35_statement_35": { "category": "runnable" }, + "block_36_statement_36": { "category": "runnable" }, + "block_37_block_37": { "category": "runnable" }, + "block_38_statement_38": { "category": "runnable" }, + "block_39_block_39": { "category": "runnable" }, + "block_40_statement_40": { "category": "runnable" }, + "block_41_statement_41": { "category": "runnable" }, + "block_42_block_42": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_43_statement_43": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-blob-createobjecturl.js": {}, @@ -335,11 +239,12 @@ "block_03_nested_in_colon": {}, "block_04_test_removing_limit": {}, "block_05_block_05": {}, - "block_06_test_custom_decode": {}, - "block_07_test_querystring_unescape": {}, - "block_08_test_custom_encode": {}, - "block_09_test_custom_encode_for_different_types": {}, - "block_10_test_overriding_unescape": {} + "block_06_test_encoded_key_with_unencoded_value": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_07_test_custom_decode": {}, + "block_08_test_querystring_unescape": {}, + "block_09_test_custom_encode": {}, + "block_10_test_custom_encode_for_different_types": {}, + "block_11_test_overriding_unescape": {} } }, "parallel/test-querystring-escape.js": {}, @@ -353,11 +258,10 @@ "test_00_invalid_arguments": {}, "test_01_input_must_be_a_file_url": {}, "test_02_fileurltopath_with_host": {}, - "test_03_fileurltopath_with_invalid_path": {}, - "test_04_fileurltopath_with_windows_path": {}, - "test_05_fileurltopath_with_posix_path": {}, - "test_06_options_is_null": {}, - "test_07_defaulttestcases": {} + "test_03_fileurltopath_with_windows_path": {}, + "test_04_fileurltopath_with_posix_path": {}, + "test_05_options_is_null": {}, + "test_06_defaulttestcases": {} } }, "parallel/test-url-pathtofileurl.js": { @@ -366,8 +270,11 @@ "block_00_block_00": {}, "block_01_block_01": {}, "block_02_block_02": {}, - "block_03_block_03": {}, - "block_04_test_for_non_string_parameter": {} + "block_03_block_03": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_04_block_04": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_05_block_05": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_06_block_06": {}, + "block_07_test_for_non_string_parameter": {} } }, "parallel/test-url-urltooptions.js": {}, @@ -380,7 +287,8 @@ "test_01_handle_invalid_arguments": {}, "test_02_any_falsy_value_other_than_undefined_will_be_treated_as_fals": {}, "test_03_should_format_with_unicode_true": {}, - "test_04_should_format_tel_prefix": {} + "test_04_should_format_tel_prefix": {}, + "test_05_should_not_crash_on_urls_with_invalid_idn_hostnames": {} } }, "parallel/test-url-format-invalid-input.js": {}, @@ -401,9 +309,7 @@ "test_01_parse_result_should_equal_new_url_url": {} } }, - "parallel/test-url-parse-invalid-input.js": { - "reason": "the runnable assertions execute, while its common.hasIntl-gated invalid-IDNA matrix is covered separately by focused runtime tests" - }, + "parallel/test-url-parse-invalid-input.js": { "category": "runnable", "reason": "the runnable assertions execute, while its common.hasIntl-gated invalid-IDNA matrix is covered separately by focused runtime tests" }, "parallel/test-url-parse-query.js": {}, "parallel/test-url-relative.js": {}, @@ -424,11 +330,13 @@ }, "parallel/test-util-deprecate-invalid-code.js": {}, "parallel/test-util-deprecate.js": { + "category": "runnable", "split": true, "subtests": { - "block_00_emits_deprecation_only_once_if_same_function_is_called": {}, - "block_01_emits_deprecation_twice_for_different_functions": {}, - "block_02_functions": {} + "block_00_emits_deprecation_only_once_if_same_function_is_called": { "category": "runnable" }, + "block_01_emits_deprecation_twice_for_different_functions": { "category": "runnable" }, + "block_02_functions": { "category": "runnable" }, + "block_03_test_modifyprototype_option": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-util-emit-experimental-warning.js": { "category": "node-internals", "reason": "directly tests internal/util.emitExperimentalWarning()" }, @@ -440,30 +348,27 @@ "block_00_block_00": {}, "block_01_string_format_specifier_including_tostring_properties_on_the": {}, "block_02_symbol_toprimitive_handling_for_string_format_specifier": {}, - "block_03_block_03": {}, - "block_04_block_04": {} + "block_03_built_in_toprimitive_is_the_same_behavior_as_inspect": {}, + "block_04_prototype_chain_handling_for_tostring": {}, + "block_05_prototype_chain_handling_for_symbol_toprimitive": {}, + "block_06_prototype_chain_handling_for_both_tostring_and_symbol_toprim": {}, + "block_07_block_07": {}, + "block_08_block_08": {} } }, - "parallel/test-util-getcallsite.js": {}, "parallel/test-util-getcallsites.js": { "split": true, "subtests": { "block_00_block_00": {}, "block_01_block_01": {}, - "block_02_guarantee_dot_left_numbers_are_ignored": {}, + "block_02_framecount_must_be_an_integer": { "category": "known-gap", "reason": "util.getCallSites() accepts a fractional frameCount; Node 26.13.1 requires an integer and throws ERR_OUT_OF_RANGE" }, "block_03_block_03": {}, "block_04_block_04": {}, - "block_05_block_05": {}, - "block_06_scriptid_is_a_string": {}, - "block_07_guarantee_eval_will_appear_on_stacktraces_when_using_e": {}, - "block_08_guarantee_the_stacktrace_0_is_the_filename": {}, - "block_09_error_stacktracelimit_should_not_influence_callsite_size": {}, - "block_10_block_10": { - "category": "known-gap", - "reason": "simulated child_process TypeScript CLI execution does not publish its transform map to util.getCallSites" - }, - "block_11_block_11": {}, - "block_12_block_12": {} + "block_05_scriptid_is_a_string": {}, + "block_06_guarantee_eval_will_appear_on_stacktraces_when_using_e": {}, + "block_07_guarantee_the_stacktrace_0_is_the_filename": {}, + "block_08_error_stacktracelimit_should_not_influence_callsite_size": {}, + "block_09_block_09": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-util-inherits.js": {}, @@ -476,7 +381,15 @@ }, "parallel/test-util-inspect-long-running.js": {}, "parallel/test-util-inspect-namespace.js": { "category": "runnable" }, - "parallel/test-util-inspect-proxy.js": { "category": "node-internals", "reason": "requires internalBinding('util').getProxyDetails" }, + "parallel/test-util-inspect-proxy.js": { + "category": "node-internals", + "reason": "requires internalBinding('util').getProxyDetails", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, "parallel/test-util-inspect.js": { "category": "node-internals", "reason": "requires --expose-internals plus internal/test/binding internalBinding('js_stream'/'util')", @@ -505,100 +418,104 @@ "block_20_test_for_property_descriptors": {}, "block_21_exceptions_should_print_the_error_message_not": { "category": "runnable" }, "block_22_block_22": { "category": "runnable" }, - "block_23_block_23": { "category": "runnable" }, - "block_24_prevent_enumerable_error_properties_from_being_printed": { "category": "runnable" }, - "block_25_doesn_t_capture_stack_trace": { "category": "runnable" }, - "block_26_https_github_com_nodejs_node_v0_x_archive_issues_1944": {}, - "block_27_should_not_throw": {}, - "block_28_should_not_throw": {}, - "block_29_see_https_github_com_nodejs_node_v0_x_archive_issues_2225": {}, - "block_30_util_inspect_should_display_the_escaped_value_of_a_key": {}, - "block_31_escape_unpaired_surrogate_pairs": {}, - "block_32_test_util_inspect_styles_and_util_inspect_colors": {}, - "block_33_new_api_accepts_an_options_object": {}, - "block_34_block_34": {}, - "block_35_block_35": {}, + "block_23_block_23": {}, + "block_24_block_24": {}, + "block_25_block_25": { "category": "known-gap", "reason": "QuickJS makes Error.stackTraceLimit a read-only data property after Object.defineProperty(Error, \"stackTraceLimit\", { value: 0 }), unlike V8" }, + "block_26_prevent_enumerable_error_properties_from_being_printed": { "category": "runnable" }, + "block_27_doesn_t_capture_stack_trace": { "category": "runnable" }, + "block_28_https_github_com_nodejs_node_v0_x_archive_issues_1944": {}, + "block_29_should_not_throw": {}, + "block_30_should_not_throw": {}, + "block_31_see_https_github_com_nodejs_node_v0_x_archive_issues_2225": {}, + "block_32_util_inspect_should_display_the_escaped_value_of_a_key": {}, + "block_33_escape_unpaired_surrogate_pairs": {}, + "block_34_test_util_inspect_styles_and_util_inspect_colors": {}, + "block_35_new_api_accepts_an_options_object": {}, "block_36_block_36": {}, - "block_37_without_it": {}, - "block_38_test_boxed_primitives_with_own_properties": {}, - "block_39_test_set": {}, - "block_40_test_circular_set": {}, - "block_41_test_map": {}, - "block_42_test_circular_map": {}, - "block_43_test_multiple_circular_references": {}, - "block_44_test_promise": {}, - "block_45_a_bonafide_native_promise": {}, - "block_46_test_map_iterators": {}, - "block_47_test_set_iterators": {}, - "block_48_the_constructor_and_symbol_tostringtag": { "category": "runnable" }, - "block_49_assumes_that_the_first_numeric_character_is_the_start_of_an_": { "category": "runnable" }, - "block_50_test_display_of_constructors": { "category": "runnable" }, - "block_51_empty_and_circular_before_depth": { "category": "runnable" }, - "block_52_corner_cases": { "category": "runnable" }, - "block_53_block_53": { "category": "runnable" }, - "block_54_block_54": { "category": "runnable" }, + "block_37_block_37": {}, + "block_38_block_38": {}, + "block_39_without_it": {}, + "block_40_test_boxed_primitives_with_own_properties": {}, + "block_41_test_set": {}, + "block_42_test_circular_set": {}, + "block_43_test_map": {}, + "block_44_test_circular_map": {}, + "block_45_test_multiple_circular_references": {}, + "block_46_test_promise": {}, + "block_47_a_bonafide_native_promise": {}, + "block_48_test_map_iterators": {}, + "block_49_test_set_iterators": {}, + "block_50_the_constructor_and_symbol_tostringtag": { "category": "runnable" }, + "block_51_assumes_that_the_first_numeric_character_is_the_start_of_an_": { "category": "runnable" }, + "block_52_test_display_of_constructors": { "category": "runnable" }, + "block_53_empty_and_circular_before_depth": { "category": "runnable" }, + "block_54_corner_cases": { "category": "runnable" }, "block_55_block_55": { "category": "runnable" }, "block_56_block_56": { "category": "runnable" }, - "block_57_https_github_com_nodejs_node_pull_6334_is_backported": { "category": "runnable" }, + "block_57_block_57": { "category": "runnable" }, "block_58_block_58": { "category": "runnable" }, - "block_59_block_59": { "category": "runnable" }, + "block_59_https_github_com_nodejs_node_pull_6334_is_backported": { "category": "runnable" }, "block_60_block_60": { "category": "runnable" }, - "block_61_util_inspect_defaultoptions_tests": { "category": "runnable" }, - "block_62_setting_custom_inspect_property_to_a_non_function_should_do_": { "category": "runnable" }, - "block_63_block_63": { "category": "runnable" }, - "block_64_block_64": { "category": "runnable" }, - "block_65_check_compact_indentation": { "category": "runnable" }, + "block_61_block_61": { "category": "runnable" }, + "block_62_block_62": { "category": "runnable" }, + "block_63_util_inspect_defaultoptions_tests": { "category": "runnable" }, + "block_64_setting_custom_inspect_property_to_a_non_function_should_do_": { "category": "runnable" }, + "block_65_block_65": { "category": "runnable", "reason": "carries 22.14.0 subtest block_63_block_63" }, "block_66_block_66": { "category": "runnable" }, - "block_67_block_67": { "category": "runnable" }, + "block_67_check_compact_indentation": { "category": "runnable" }, "block_68_block_68": { "category": "runnable" }, - "block_69_class_properties_should_not_be_detected_as_class": { "category": "runnable" }, - "block_70_verify_non_enumerable_keys_get_escaped": { "category": "runnable" }, - "block_71_check_for_special_colors": { "category": "runnable" }, - "block_72_non_indices_array_properties_are_sorted_as_well": { "category": "runnable" }, - "block_73_manipulate_the_prototype_in_weird_ways": { - "category": "known-gap", - "reason": "requires V8 hidden-class constructor-name recovery after the prototype constructor is detached" - }, - "block_74_check_that_the_fallback_always_works": { "category": "runnable" }, - "block_75_check_the_getter_option": { "category": "runnable" }, - "block_76_check_compact_number_mode": { "category": "runnable" }, - "block_77_block_77": { "category": "runnable" }, - "block_78_block_78": { "category": "node-internals", "reason": "inherits top-level internal/test/binding dependency" }, - "block_79_block_79": { "category": "runnable" }, - "block_80_inspect_prototype_properties": { "category": "runnable" }, - "block_81_regression_test_for_https_github_com_nodejs_node_issues_3573": { "category": "runnable" }, - "block_82_test_changing_util_inspect_colors_colors_and_aliases": { "category": "runnable" }, - "block_83_https_github_com_nodejs_node_issues_31889": { - "category": "known-gap", - "reason": "uses V8 native %GetUndetectable() syntax which QuickJS cannot evaluate" - }, - "block_84_truncate_output_for_primitives_with_1_character_left": { "category": "runnable" }, - "block_85_block_85": { "category": "runnable" }, - "block_86_block_86": { "category": "runnable" }, - "block_87_block_87": { "category": "runnable" }, - "block_88_block_88": { "category": "runnable" }, + "block_69_block_69": { "category": "runnable" }, + "block_70_block_70": { "category": "runnable" }, + "block_71_class_properties_should_not_be_detected_as_class": { "category": "runnable" }, + "block_72_verify_non_enumerable_keys_get_escaped": { "category": "runnable" }, + "block_73_check_for_special_colors": { "category": "runnable" }, + "block_74_only_the_name_is_colored_and_space_are_unstyled": {}, + "block_75_non_indices_array_properties_are_sorted_as_well": { "category": "runnable" }, + "block_76_manipulate_the_prototype_in_weird_ways": { "category": "known-gap", "reason": "requires V8 hidden-class constructor-name recovery after the prototype constructor is detached" }, + "block_77_check_that_the_fallback_always_works": { "category": "runnable" }, + "block_78_check_the_getter_option": { "category": "runnable" }, + "block_79_https_github_com_nodejs_node_issues_64838": {}, + "block_80_property_getter_throwing_an_error": {}, + "block_81_https_github_com_nodejs_node_issues_60683": {}, + "block_82_property_getter_throwing_an_error_with_getters_that_throws_r": {}, + "block_83_property_getter_throwing_an_error_whose_own_getters_throw_th": {}, + "block_84_check_compact_number_mode": { "category": "runnable" }, + "block_85_block_85": { "category": "runnable", "reason": "carries 22.14.0 subtest block_77_block_77" }, + "block_86_block_86": {}, + "block_87_block_87": {}, + "block_88_block_88": {}, "block_89_block_89": { "category": "runnable" }, - "block_90_block_90": { "category": "runnable" }, - "block_91_block_91": { "category": "runnable" }, - "block_92_regression_test_for_https_github_com_nodejs_node_issues_4124": { "category": "runnable" }, - "block_93_block_93": { "category": "runnable" }, - "block_94_block_94": { "category": "runnable" }, + "block_90_inspect_prototype_properties": { "category": "runnable" }, + "block_91_regression_test_for_https_github_com_nodejs_node_issues_3573": { "category": "runnable" }, + "block_92_test_changing_util_inspect_colors_colors_and_aliases": { "category": "runnable" }, + "block_93_https_github_com_nodejs_node_issues_31889": { "category": "known-gap", "reason": "uses V8 native %GetUndetectable() syntax which QuickJS cannot evaluate" }, + "block_94_truncate_output_for_primitives_with_1_character_left": { "category": "runnable" }, "block_95_block_95": { "category": "runnable" }, "block_96_block_96": { "category": "runnable" }, "block_97_block_97": { "category": "runnable" }, - "block_98_block_98": { "category": "runnable" } + "block_98_block_98": { "category": "runnable" }, + "block_99_block_99": { "category": "runnable" }, + "block_100_block_100": { "category": "runnable" }, + "block_101_block_101": { "category": "runnable", "reason": "carries 22.14.0 subtest block_91_block_91" }, + "block_102_regression_test_for_https_github_com_nodejs_node_issues_4124": { "category": "runnable" }, + "block_103_block_103": {}, + "block_104_block_104": { "category": "runnable" }, + "block_105_block_105": { "category": "runnable" }, + "block_106_block_106": { "category": "runnable", "reason": "carries 22.14.0 subtest block_95_block_95" }, + "block_107_block_107": { "category": "runnable" }, + "block_108_block_108": { "category": "runnable" }, + "block_109_block_109": { "category": "runnable", "reason": "carries 22.14.0 subtest block_98_block_98" }, + "block_110_block_110": {}, + "block_111_block_111": {}, + "block_112_block_112": {}, + "block_113_block_113": {}, + "block_114_block_114": {}, + "block_115_block_115": {} } }, "parallel/test-util-internal.js": { "category": "node-internals", "reason": "requires internalBinding('util').privateSymbols" }, - "parallel/test-util-isDeepStrictEqual.js": { - "split": true, - "subtests": { - "block_00_handle_boxed_primitives": {}, - "block_01_handle_symbols_enumerable_only": {} - } - }, - "parallel/test-util-log.js": {}, - "parallel/test-util-parse-env.js": {}, + "parallel/test-util-isDeepStrictEqual.js": {}, + "parallel/test-util-parse-env.js": { "category": "runnable" }, "parallel/test-util-primordial-monkeypatching.js": {}, "parallel/test-util-promisify.js": { "category": "node-internals", @@ -630,7 +547,13 @@ "parallel/test-util-sleep.js": { "category": "node-internals", "reason": "requires internal/util.sleep" }, "parallel/test-util-stripvtcontrolcharacters.js": {}, "parallel/test-util-styletext.js": {}, - "parallel/test-util-text-decoder.js": {}, + "parallel/test-util-text-decoder.js": { + "split": true, + "subtests": { + "test_00_textdecoder_correctly_decodes_windows_1252_encoded_data": {}, + "test_01_test_01": {} + } + }, "parallel/test-util-types-exists.js": {}, "parallel/test-util-types.js": { "category": "node-internals", @@ -639,7 +562,32 @@ "subtests": { "block_00_block_00": {}, "block_01_block_01": {}, - "block_02_block_02": {} + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": {}, + "block_12_block_12": {}, + "block_13_block_13": {}, + "block_14_block_14": {}, + "block_15_block_15": {}, + "block_16_block_16": {}, + "block_17_block_17": {}, + "block_18_block_18": {}, + "block_19_block_19": {}, + "block_20_block_20": {}, + "block_21_block_21": {}, + "block_22_block_22": {}, + "block_23_block_23": {}, + "block_24_block_24": {}, + "block_25_block_25": {}, + "block_26_block_26": {}, + "block_27_block_27": {} } }, "parallel/test-util.js": { "category": "node-internals", "reason": "requires internal/errors" }, @@ -685,7 +633,7 @@ "parallel/test-fs-chown-type-check.js": {}, "parallel/test-fs-close.js": {}, "parallel/test-fs-close-errors.js": {}, - "parallel/test-fs-constants.js": {}, + "parallel/test-fs-constants.js": { "category": "runnable" }, "parallel/test-fs-copyfile.js": { "category": "node-internals", "reason": "uses --expose-internals with internal/test/binding (internalBinding('uv'))" }, "parallel/test-fs-copyfile-respect-permissions.js": { "category": "wasi-impossible", @@ -830,11 +778,10 @@ }, "parallel/test-fs-promises-exists.js": {}, "parallel/test-fs-promises-file-handle-aggregate-errors.js": { "category": "node-internals", "reason": "patches internal/fs/promises FileHandle fd/close internals" }, - "parallel/test-fs-promises-file-handle-append-file.js": {}, + "parallel/test-fs-promises-file-handle-append-file.js": { "category": "runnable" }, "parallel/test-fs-promises-file-handle-chmod.js": {}, "parallel/test-fs-promises-file-handle-close-errors.js": { "category": "node-internals", "reason": "patches internal/fs/promises FileHandle fd/close internals" }, - "parallel/test-fs-promises-file-handle-close.js": {}, - "parallel/test-fs-promises-file-handle-dispose.js": {}, + "parallel/test-fs-promises-file-handle-dispose.js": { "category": "runnable" }, "parallel/test-fs-promises-file-handle-op-errors.js": { "category": "node-internals", "reason": "patches internal/fs/promises FileHandle fd internals" }, "parallel/test-fs-promises-file-handle-read-worker.js": { "category": "wasi-impossible", "reason": "depends on real worker_threads execution to read the transferred FileHandle in a separate context, which is not available in single-threaded WASM" }, "parallel/test-fs-promises-file-handle-read.js": {}, @@ -850,8 +797,6 @@ "parallel/test-fs-promises-readfile.js": { "category": "node-internals", "reason": "patches internalBinding('fs') via internal/test/binding" }, "parallel/test-fs-promises-watch.js": {}, "parallel/test-fs-promises-write-optional-params.js": {}, - "parallel/test-fs-promises-writefile-typedarray.js": {}, - "parallel/test-fs-promises-writefile-with-fd.js": {}, "parallel/test-fs-promises-writefile.js": {}, "parallel/test-fs-promises.js": { "split": true, @@ -999,40 +944,10 @@ "block_00_test_the_asynchronous_version": {}, "block_01_test_the_synchronous_version": {}, "block_02_test_input_validation": {}, - "block_03_block_03": {} - } - }, - "parallel/test-fs-rmdir-recursive.js": { - "category": "node-internals", - "reason": "imports internal/fs/utils validateRmdirOptions", - "split": true, - "subtests": { - "block_00_test_the_asynchronous_version": {}, - "block_01_test_the_synchronous_version": {}, - "block_02_test_input_validation": {}, - "block_03_rimraf_see_35566": {} - } - }, - "parallel/test-fs-rmdir-recursive-sync-warns-not-found.js": {}, - "parallel/test-fs-rmdir-recursive-sync-warns-on-file.js": {}, - "parallel/test-fs-rmdir-recursive-throws-not-found.js": { - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {} - } - }, - "parallel/test-fs-rmdir-recursive-throws-on-file.js": { - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {} + "block_03_block_03": {}, + "block_04_block_04": {} } }, - "parallel/test-fs-rmdir-recursive-warns-not-found.js": {}, - "parallel/test-fs-rmdir-recursive-warns-on-file.js": {}, "parallel/test-fs-rmdir-type-check.js": {}, "parallel/test-fs-sir-writes-alot.js": {}, "parallel/test-fs-stat.js": { @@ -1040,7 +955,8 @@ "subtests": { "block_00_block_00": {}, "block_01_block_01": {}, - "block_02_block_02": {} + "block_02_block_02": {}, + "block_03_block_03": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-fs-stat-bigint.js": { @@ -1138,7 +1054,6 @@ "block_01_asynchronous_test": {} } }, - "parallel/test-fs-truncate-fd.js": {}, "parallel/test-fs-truncate-sync.js": {}, "parallel/test-fs-unlink-type-check.js": {}, "parallel/test-fs-util-validateoffsetlength.js": { @@ -1166,7 +1081,8 @@ "block_05_getdirent": {}, "block_06_block_06": {}, "block_07_block_07": {}, - "block_08_block_08": {} + "block_08_block_08": {}, + "block_09_block_09": {} } }, "parallel/test-fs-utimes.js": { @@ -1201,7 +1117,12 @@ "split": true, "subtests": { "block_00_block_00": {}, - "block_01_block_01": {} + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {} } }, "parallel/test-fs-watch-file-enoent-after-deletion.js": {}, @@ -1218,7 +1139,7 @@ "parallel/test-fs-watch-recursive-sync-write.js": {}, "parallel/test-fs-watch-recursive-update-file.js": {}, "parallel/test-fs-watch-recursive-validate.js": {}, - "parallel/test-fs-watch-recursive-watch-file.js": {}, + "parallel/test-fs-watch-recursive-watch-file.js": { "category": "runnable" }, "parallel/test-fs-watch-ref-unref.js": {}, "parallel/test-fs-watch-stop-async.js": {}, "parallel/test-fs-watch-stop-sync.js": {}, @@ -1398,7 +1319,6 @@ "parallel/test-timers-api-refs.js": {}, "parallel/test-timers-process-tampering.js": {}, "parallel/test-timers-refresh-in-callback.js": {}, - "parallel/test-timers-active.js": { "category": "node-internals", "reason": "asserts deprecated timers.active() behavior and private _idle* timer fields" }, "parallel/test-timers-destroyed.js": { "category": "node-internals", "reason": "asserts private Timer._destroyed state on timeout/interval objects" }, "parallel/test-timers-dispose.js": {}, "parallel/test-dgram-async-dispose.mjs": {}, @@ -1409,9 +1329,7 @@ "parallel/test-timers-immediate-unref-nested-once.js": {}, "parallel/test-timers-immediate-unref-simple.js": {}, "parallel/test-timers-interval-throw.js": {}, - "parallel/test-timers-max-duration-warning.js": {}, - "parallel/test-timers-enroll-invalid-msecs.js": { "category": "node-internals", "reason": "tests deprecated internal timers.enroll() validation/error paths" }, - "parallel/test-timers-enroll-second-time.js": {}, + "parallel/test-timers-max-duration-warning.js": { "split": false }, "parallel/test-timers-reset-process-domain-on-throw.js": {}, "parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js": {}, "parallel/test-timers-to-primitive.js": { @@ -1441,9 +1359,6 @@ "block_02_see_https_github_com_nodejs_node_v0_x_archive_issues_4261": {} } }, - "parallel/test-timers-unref-active.js": { "category": "node-internals", "reason": "explicitly tests private timers._unrefActive()/enroll()/unenroll() behavior" }, - "parallel/test-timers-unref-remove-other-unref-timers.js": { "category": "node-internals", "reason": "explicitly tests private timers._unrefActive()/enroll()/unenroll() behavior" }, - "parallel/test-timers-unref-remove-other-unref-timers-only-one-fires.js": { "category": "node-internals", "reason": "explicitly tests private timers._unrefActive()/enroll()/unenroll() behavior" }, "parallel/test-timers-unref-throw-then-ref.js": {}, "parallel/test-timers-unrefd-interval-still-fires.js": {}, "parallel/test-timers-unrefed-in-beforeexit.js": {}, @@ -1512,7 +1427,8 @@ "split": true, "subtests": { "block_00_block_00": {}, - "block_01_block_01": {} + "block_01_block_01": {}, + "block_02_block_02": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-events-customevent.js": { @@ -1600,7 +1516,7 @@ "block_29_block_29": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_30_block_30": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_31_block_31": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, - "block_32_block_32": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, + "block_32_block_32": {}, "block_33_block_33": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_34_block_34": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_35_block_35": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, @@ -1612,23 +1528,25 @@ "block_41_block_41": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_42_block_42": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_43_block_43": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, - "block_44_block_44": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, + "block_44_block_44": {}, "block_45_block_45": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_46_block_46": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_47_block_47": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_48_block_48": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, - "block_49_block_49": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, + "block_49_block_49": {}, "block_50_block_50": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_51_block_51": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_52_block_52": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, - "block_53_block_53": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, + "block_53_block_53": {}, "block_54_block_54": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_55_block_55": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_56_block_56": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, "block_57_block_57": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, - "block_58_block_58": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, + "block_58_block_58": {}, "block_59_block_59": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, - "block_60_block_60": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" } + "block_60_block_60": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" }, + "block_61_block_61": {}, + "block_62_block_62": { "reason": "inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs" } } }, "parallel/test-eventtarget-brandcheck.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/event_target" }, @@ -1651,31 +1569,35 @@ // === node:crypto tests === "parallel/test-crypto-aes-wrap.js": {}, - "parallel/test-crypto-async-sign-verify.js": {}, + "parallel/test-crypto-async-sign-verify.js": { + "split": true, + "subtests": { + "block_00_test_parallel_execution_w_keyobject_is_threadsafe_in_openssl": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, "parallel/test-crypto-authenticated-stream.js": {}, "parallel/test-crypto-authenticated.js": { "split": true, "subtests": { "block_00_non_authenticating_mode": {}, "block_01_throw": {}, - "block_02_test_that_gcm_can_produce_shorter_authentication_tags_than_1": {}, - "block_03_test_that_users_can_manually_restrict_the_gcm_tag_length_to_": {}, - "block_04_authentication_tag_length_has_been_specified": {}, - "block_05_authentication_tag_has_been_specified": {}, - "block_06_test_that_setaad_throws_if_an_invalid_plaintext_length_has_b": {}, - "block_07_test_that_setaad_and_update_throw_if_the_plaintext_is_too_lo": {}, - "block_08_been_specified": {}, - "block_09_test_that_final_throws_in_ccm_mode_when_no_authentication_ta": {}, - "block_10_test_that_setauthtag_does_not_throw_in_gcm_mode_when_called_": {}, - "block_11_test_that_an_iv_length_of_11_does_not_overflow_max_message_s": {}, - "block_12_final_in_gcm_or_ocb_mode": {}, - "block_13_test_that_setauthtag_can_only_be_called_once": {}, - "block_14_https_www_openssl_org_news_secadv_20190306_txt": {}, - "block_15_block_15": {}, - "block_16_block_16": {}, - "block_17_require_the_authentication_tag_before_calls_to_update_during": {}, - "block_18_no_recommended_or_approved_authentication_tag_lengths_below_": {}, - "block_19_https_github_com_nodejs_node_issues_45874": {} + "block_02_siv_and_gcm_siv_use_fixed_16_byte_authentication_tags": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_03_test_that_gcm_can_produce_shorter_authentication_tags_than_1": {}, + "block_04_test_that_users_can_manually_restrict_the_gcm_tag_length_to_": {}, + "block_05_authentication_tag_length_has_been_specified": { "category": "runnable", "reason": "carries 22.14.0 subtest block_04_authentication_tag_length_has_been_specified" }, + "block_06_authentication_tag_length_has_been_specified": { "category": "runnable", "reason": "carries 22.14.0 subtest block_05_authentication_tag_has_been_specified" }, + "block_07_test_that_setaad_throws_if_an_invalid_plaintext_length_has_b": {}, + "block_08_test_that_setaad_and_update_throw_if_the_plaintext_is_too_lo": {}, + "block_09_been_specified": {}, + "block_10_test_that_final_throws_in_ccm_mode_when_no_authentication_ta": {}, + "block_11_test_that_setauthtag_does_not_throw_in_gcm_mode_when_called_": {}, + "block_12_test_that_an_iv_length_of_11_does_not_overflow_max_message_s": {}, + "block_13_final_in_gcm_mode_ocb_mode_and_for_chacha20_poly1305": { "category": "runnable", "reason": "carries 22.14.0 subtest block_12_final_in_gcm_or_ocb_mode" }, + "block_14_test_that_setauthtag_can_only_be_called_once": {}, + "block_15_https_www_openssl_org_news_secadv_20190306_txt": {}, + "block_16_block_16": {} } }, "parallel/test-crypto-certificate.js": { @@ -1705,7 +1627,7 @@ "block_02_block_02": {} } }, - "parallel/test-crypto-dh-curves.js": {}, + "parallel/test-crypto-dh-curves.js": { "category": "known-gap", "reason": "createDiffieHellman() verifyError prime checks are not implemented; open DH coverage obligation from the 22.14.0 baseline" }, "parallel/test-crypto-dh-errors.js": {}, "parallel/test-crypto-dh-generate-keys.js": {}, "parallel/test-crypto-dh-group-setters.js": {}, @@ -1715,7 +1637,19 @@ "parallel/test-crypto-dh-odd-key.js": {}, "parallel/test-crypto-dh-padding.js": {}, "parallel/test-crypto-dh-shared.js": {}, - "parallel/test-crypto-dh-stateless.js": {}, + "parallel/test-crypto-dh-stateless.js": { + "split": true, + "subtests": { + "block_00_block_00": { "category": "known-gap", "reason": "Node 26.13.1 crypto.diffieHellman() key-type and option validation is not met yet; open DH coverage obligation from the 22.14.0 baseline" }, + "block_01_block_01": { "category": "known-gap", "reason": "Node 26.13.1 crypto.diffieHellman() key-type and option validation is not met yet; open DH coverage obligation from the 22.14.0 baseline" }, + "block_02_block_02": { "category": "known-gap", "reason": "Node 26.13.1 crypto.diffieHellman() key-type and option validation is not met yet; open DH coverage obligation from the 22.14.0 baseline" }, + "block_03_block_03": { "category": "known-gap", "reason": "Node 26.13.1 crypto.diffieHellman() key-type and option validation is not met yet; open DH coverage obligation from the 22.14.0 baseline" }, + "block_04_test_that_error_messages_include_the_correct_property_path": { "category": "known-gap", "reason": "Node 26.13.1 crypto.diffieHellman() key-type and option validation is not met yet; open DH coverage obligation from the 22.14.0 baseline" }, + "block_05_block_05": { "category": "known-gap", "reason": "Node 26.13.1 crypto.diffieHellman() key-type and option validation is not met yet; open DH coverage obligation from the 22.14.0 baseline" }, + "block_06_block_06": { "category": "known-gap", "reason": "Node 26.13.1 crypto.diffieHellman() key-type and option validation is not met yet; open DH coverage obligation from the 22.14.0 baseline" }, + "block_07_test_c_error_conditions_both_sync_throws_and_async_callback": { "category": "known-gap", "reason": "Node 26.13.1 crypto.diffieHellman() key-type and option validation is not met yet; open DH coverage obligation from the 22.14.0 baseline" } + } + }, "parallel/test-crypto-dh.js": { "split": true, "subtests": { @@ -1760,10 +1694,9 @@ "split": true, "subtests": { "block_00_block_00": {}, - "block_01_test_xof_hash_functions_and_the_outputlength_option": {}, + "block_01_block_01": {}, "block_02_block_02": {}, - "block_03_block_03": {}, - "block_04_block_04": {} + "block_03_block_03": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-crypto-hkdf.js": {}, @@ -1772,26 +1705,19 @@ "subtests": { "block_00_block_00": {}, "block_01_block_01": {}, - "block_02_check_initialized_uninitialized_state_transition_after_calli": {}, - "block_03_calls_to_update_omitted_intentionally": {}, + "block_02_block_02": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_03_see_https_github_com_nodejs_node_issues_28245": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, "block_04_block_04": {}, - "block_05_block_05": {}, - "block_06_block_06": {} + "block_05_check_initialized_uninitialized_state_transition_after_calli": {}, + "block_06_calls_to_update_omitted_intentionally": {}, + "block_07_block_07": { "category": "runnable" }, + "block_08_block_08": {}, + "block_09_block_09": {} } }, "parallel/test-crypto-key-objects-messageport.js": { "category": "wasi-impossible", "reason": "requires real worker_threads execution (HAS_STARTED_WORKER round-trip) which is not available in single-threaded WASM" }, - "parallel/test-crypto-key-objects-to-crypto-key.js": { - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {}, - "block_03_block_03": {}, - "block_04_block_04": {}, - "block_05_block_05": {} - } - }, - "parallel/test-crypto-key-objects.js": { + "parallel/test-crypto-key-objects-to-crypto-key.js": { "category": "runnable" }, + "parallel/test-crypto-key-objects.js": { "split": true, "subtests": { "block_00_block_00": {}, @@ -1801,17 +1727,19 @@ "block_04_block_04": {}, "block_05_block_05": { "category": "known-gap", "reason": "importing scrypt-encrypted PKCS#8 keys traps in the WASM crypto backend" }, "block_06_block_06": {}, - "block_07_block_07": {}, - "block_08_block_08": {}, + "block_07_importing_an_okp_private_jwk_where_x_does_not_match_d_should": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_08_importing_an_ec_private_jwk_where_x_does_not_match_d_should_": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, "block_09_block_09": {}, "block_10_block_10": {}, "block_11_block_11": {}, "block_12_block_12": {}, - "block_13_block_13": {}, + "block_13_block_13": { "category": "runnable", "reason": "carries 22.14.0 subtest block_12_block_12" }, "block_14_block_14": {}, "block_15_block_15": {}, - "block_16_block_16": {}, - "block_17_block_17": {} + "block_16_block_16": { "category": "runnable", "reason": "carries 22.14.0 subtest block_15_block_15" }, + "block_17_block_17": {}, + "block_18_block_18": {}, + "block_19_test_that_createpublickey_createprivatekey_error_messages_us": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-crypto-keygen-async-dsa-key-object.js": { "category": "known-gap", "reason": "DSA keygen currently supports only modern key sizes; legacy 512-bit variant fails" }, @@ -1829,9 +1757,7 @@ "parallel/test-crypto-keygen-async-named-elliptic-curve.js": {}, "parallel/test-crypto-keygen-async-rsa.js": {}, "parallel/test-crypto-keygen-bit-length.js": {}, - "parallel/test-crypto-keygen-deprecation.js": {}, "parallel/test-crypto-keygen-dh-classic.js": {}, - "parallel/test-crypto-keygen-duplicate-deprecated-option.js": {}, "parallel/test-crypto-keygen-eddsa.js": {}, "parallel/test-crypto-keygen-empty-passphrase-no-error.js": {}, "parallel/test-crypto-keygen-empty-passphrase-no-prompt.js": { "category": "known-gap", "reason": "decoding empty-passphrase encrypted PEM traps in the WASM crypto backend" }, @@ -1859,8 +1785,7 @@ "block_06_test_ec_parameters": {}, "block_07_block_07": {}, "block_08_test_invalid_key_encoding_types": {}, - "block_09_block_09": {}, - "block_10_block_10": {} + "block_09_block_09": {} } }, "parallel/test-crypto-lazy-transform-writable.js": {}, @@ -1869,7 +1794,13 @@ "parallel/test-crypto-op-during-process-exit.js": {}, "parallel/test-crypto-padding-aes256.js": {}, "parallel/test-crypto-padding.js": {}, - "parallel/test-crypto-pbkdf2.js": {}, + "parallel/test-crypto-pbkdf2.js": { + "split": true, + "subtests": { + "block_00_outcome_as_0": {}, + "block_01_block_01": {} + } + }, "parallel/test-crypto-prime.js": { "split": true, "subtests": { @@ -1906,13 +1837,18 @@ "block_12_block_12": {}, "block_13_block_13": {}, "block_14_block_14": {}, - "block_15_block_15": {}, - "block_16_block_16": {}, - "block_17_block_17": {}, - "block_18_block_18": {}, - "block_19_block_19": {}, + "block_15_block_15": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_16_block_16": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_17_block_17": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_18_block_18": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_19_block_19": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, "block_20_block_20": {}, - "block_21_block_21": {} + "block_21_block_21": {}, + "block_22_block_22": {}, + "block_23_block_23": {}, + "block_24_block_24": {}, + "block_25_block_25": {}, + "block_26_block_26": {} } }, "parallel/test-crypto-randomfillsync-regression.js": {}, @@ -1923,10 +1859,7 @@ "block_00_test_rsa_encryption_decryption": {}, "block_01_ensure_compatibility_when_using_non_sha1_hash_functions": {}, "block_02_block_02": {}, - "block_03_block_03": {}, - "block_04_block_04": {}, - "block_05_block_05": {}, - "block_06_block_06": {} + "block_03_block_03": {} } }, "parallel/test-crypto-scrypt.js": { @@ -1936,8 +1869,7 @@ "subtests": { "block_00_block_00": {}, "block_01_block_01": {}, - "block_02_block_02": {}, - "block_03_block_03": {} + "block_02_0_which_differs_by_openssl_build": {} } }, "parallel/test-crypto-secret-keygen.js": { @@ -1965,12 +1897,11 @@ "block_10_block_10": {}, "block_11_block_11": {}, "block_12_block_12": { "category": "known-gap", "reason": "RSA private-key parsing/signing path is incomplete (Failed to parse private key)" }, - "block_13_early_if_no_openssl_binary_is_found": { "category": "wasi-impossible", "reason": "requires external OpenSSL CLI via child_process.exec" }, + "block_13_regression_test_for_https_github_com_nodejs_node_issues_4079": {}, "block_14_block_14": {}, - "block_15_regression_test_for_https_github_com_nodejs_node_issues_4079": {}, - "block_16_block_16": {}, - "block_17_block_17": {}, - "block_18_block_18": { "category": "known-gap", "reason": "verify() returns non-Node error code/message for unsupported key types" } + "block_15_block_15": { "category": "runnable", "reason": "carries 22.14.0 subtest block_17_block_17" }, + "block_16_test_that_sign_verify_error_messages_use_correct_property_pa": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_17_crypto_verify_accepts_arraybuffer_and_sharedarraybuffer_for_": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-crypto-stream.js": {}, @@ -1986,7 +1917,9 @@ "subtests": { "block_00_block_00": { "reason": "inherited: requires --expose-internals and internal/crypto/x509" }, "block_01_block_01": { "reason": "inherited: requires --expose-internals and internal/crypto/x509" }, - "block_02_block_02": { "reason": "inherited: requires --expose-internals and internal/crypto/x509" } + "block_02_block_02": { "reason": "inherited: requires --expose-internals and internal/crypto/x509" }, + "block_03_block_03": {}, + "block_04_block_04": {} } }, "parallel/test-crypto.js": { "category": "wasi-impossible", "reason": "requires tls APIs that are unsupported in WASM" }, @@ -2001,7 +1934,7 @@ "test_03_abortsignal_is_impossible_to_construct_manually": {}, "test_04_symbol_tostringtag_is_correct": {}, "test_05_abortsignal_abort_creates_an_already_aborted_signal": {}, - "test_06_abortcontroller_properties_and_methods_valiate_the_receiver": {}, + "test_06_abortcontroller_properties_and_methods_validate_the_receiver": {"category": "runnable", "reason": "carries 22.14.0 subtest test_06_abortcontroller_properties_and_methods_valiate_the_receiver"}, "test_07_abortsignal_properties_validate_the_receiver": {}, "test_08_abortcontroller_inspection_depth_1_or_null_works": {}, "test_09_abortsignal_reason_is_set_correctly": {}, @@ -2042,25 +1975,27 @@ "block_00_block_00": {}, "block_01_block_01": {}, "block_02_block_02": {}, - "block_03_block_03": {}, + "block_03_block_03": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, "block_04_block_04": {}, "block_05_block_05": {}, "block_06_block_06": {}, "block_07_block_07": {}, "block_08_block_08": {}, "block_09_block_09": {}, - "block_10_block_10": {}, + "block_10_block_10": { "category": "runnable" }, "block_11_block_11": {}, "block_12_block_12": {}, "block_13_block_13": {}, - "block_14_block_14": {}, - "block_15_block_15": {} + "block_14_block_14": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_15_block_15": {}, + "block_16_block_16": {}, + "block_17_block_17": {} } }, // === process.hrtime tests === - "parallel/test-process-hrtime.js": {}, - "parallel/test-process-hrtime-bigint.js": {}, + "parallel/test-process-hrtime.js": { "category": "runnable" }, + "parallel/test-process-hrtime-bigint.js": { "category": "runnable" }, // === node:buffer tests === "parallel/test-buffer-ascii.js": {}, @@ -2175,7 +2110,7 @@ "block_48_the_source_buffer": {}, "block_49_block_49": {}, "block_50_test_that_parsearrayindex_handles_full_uint32": {}, - "block_51_unpooled_buffer_replaces_slowbuffer": {}, + "block_51_unpooled_buffer": {}, "block_52_block_52": {} } }, @@ -2209,7 +2144,13 @@ "block_10_block_10": {}, "block_11_test_that_the_target_can_be_a_uint8array": {}, "block_12_test_that_the_source_can_be_a_uint8array_too": {}, - "block_13_block_13": {} + "block_13_copy_into_a_uint16array_target_bytes_are_packed_into_16_bit_": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_14_block_14": {}, + "block_15_copies_one_shared_one_not_go_through_the_regular_non_atomic_": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_16_block_16": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_17_block_17": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_18_block_18": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_19_block_19": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-buffer-equals.js": {}, @@ -2218,7 +2159,12 @@ "subtests": { "block_00_block_00": {}, "block_01_block_01": {}, - "block_02_block_02": {} + "block_02_block_02": {}, + "block_03_copybytesfrom_length_exceeds_view_should_clamp_not_throw": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_04_copybytesfrom_length_0_returns_empty_buffer": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_05_copybytesfrom_offset_past_end_returns_empty_buffer": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_06_copybytesfrom_float64array_with_offset_and_length": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_07_copybytesfrom_empty_typed_array_returns_empty_buffer": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-buffer-includes.js": {}, @@ -2227,11 +2173,15 @@ "subtests": { "block_00_block_00": {}, "block_01_block_01": {}, - "block_02_block_02": {}, + "block_02_block_02": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, "block_03_block_03": {}, - "block_04_test_truncation_of_number_arguments_to_uint8": {}, - "block_05_test_that_uint8array_arguments_are_okay": {}, - "block_06_see_https_github_com_nodejs_node_issues_32753": {} + "block_04_block_04": {}, + "block_05_test_truncation_of_number_arguments_to_uint8": {}, + "block_06_test_that_uint8array_arguments_are_okay": {}, + "block_07_as_buffer_from_for_unpaired_utf_16_surrogates": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_08_see_https_github_com_nodejs_node_issues_32753": {}, + "block_09_block_09": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_10_block_10": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-buffer-inspect.js": {}, @@ -2273,7 +2223,17 @@ "parallel/test-buffer-set-inspect-max-bytes.js": {}, "parallel/test-buffer-slow.js": {}, "parallel/test-buffer-tostring.js": {}, - "parallel/test-buffer-tostring-range.js": { "category": "wasi-impossible", "reason": "requires >32-bit buffer index range behavior unavailable in wasm32" }, + "parallel/test-buffer-tostring-range.js": { + "category": "wasi-impossible", + "reason": "requires >32-bit buffer index range behavior unavailable in wasm32", + "split": true, + "subtests": { + "block_00_test_hex_base64_base64url_partial_range_encoding_exercises_v": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_test_with_pool_allocated_buffer_has_non_zero_byteoffset": {} + } + }, "parallel/test-buffer-write.js": { "split": true, "subtests": { @@ -2585,7 +2545,6 @@ "parallel/test-child-process-server-close.js": { "category": "wasi-impossible", "reason": "requires child_process IPC/fork which is not available in WASM" }, "parallel/test-child-process-set-blocking.js": { "category": "wasi-impossible", "reason": "requires spawning an external Python process with inherited stdio, which is unavailable in WASM" }, "parallel/test-child-process-silent.js": { "category": "wasi-impossible", "reason": "requires child_process which is not available in WASM" }, - "parallel/test-child-process-spawn-args.js": { "category": "wasi-impossible", "reason": "requires child_process which is not available in WASM" }, "parallel/test-child-process-spawn-argv0.js": { "category": "known-gap", "reason": "local Node children do not apply the argv0 option" }, "parallel/test-child-process-spawn-controller.js": { "category": "wasi-impossible", @@ -2876,7 +2835,14 @@ "parallel/test-net-connect-nodelay.js": { "category": "known-gap", "reason": "net.js TCP implementation incomplete - needs event handling and API fixes" }, "parallel/test-net-connect-options-allowhalfopen.js": {}, "parallel/test-net-connect-options-fd.js": { "category": "node-internals", "reason": "requires internalBinding('pipe_wrap') to construct raw Pipe handles" }, - "parallel/test-net-connect-options-invalid.js": {}, + "parallel/test-net-connect-options-invalid.js": { + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, "parallel/test-net-connect-options-ipv6.js": { "category": "known-gap", "reason": "IPv6 sockets are not available in this runtime (common.hasIPv6=false)" }, "parallel/test-net-connect-options-path.js": {}, "parallel/test-net-connect-options-port.js": { @@ -2895,7 +2861,6 @@ "parallel/test-net-connect-reset-before-connected.js": {}, "parallel/test-net-connect-reset-until-connected.js": {}, "parallel/test-net-connect-reset.js": { "category": "known-gap", "reason": "net edge case not yet handled" }, - "parallel/test-net-deprecated-setsimultaneousaccepts.js": {}, "parallel/test-net-dns-custom-lookup.js": {}, "parallel/test-net-dns-error.js": {}, "parallel/test-net-dns-lookup-skip.js": {}, @@ -2916,7 +2881,6 @@ "parallel/test-net-listen-handle-in-cluster-1.js": { "category": "wasi-impossible", "reason": "cluster requires process forking, not available in WASM" }, "parallel/test-net-listen-handle-in-cluster-2.js": { "category": "node-internals", "reason": "requires internalBinding('tcp_wrap') handle APIs (plus cluster path)" }, "parallel/test-net-listen-invalid-port.js": {}, - "parallel/test-net-listen-ipv6only.js": { "category": "known-gap", "reason": "IPv6 sockets are not available in this runtime (common.hasIPv6=false)" }, "parallel/test-net-listen-twice.js": { "category": "wasi-impossible", "reason": "cluster requires process forking, not available in WASM" }, "parallel/test-net-listening.js": {}, "parallel/test-net-local-address-port.js": {}, @@ -2964,7 +2928,6 @@ "parallel/test-net-server-close-before-calling-lookup-callback.js": { "category": "known-gap", "reason": "server listen/close race with async DNS lookup is not Node-compatible" }, "parallel/test-net-server-close-before-ipc-response.js": { "category": "wasi-impossible", "reason": "cluster requires process forking, not available in WASM" }, "parallel/test-net-server-close.js": {}, - "parallel/test-net-server-drop-connections-in-cluster.js": { "category": "wasi-impossible", "reason": "cluster requires process forking, not available in WASM" }, "parallel/test-net-server-drop-connections.js": { "category": "known-gap", "reason": "net.js TCP implementation incomplete - needs event handling and API fixes" }, "parallel/test-net-server-keepalive.js": { "category": "node-internals", "reason": "uses private server/socket _handle internals" }, "parallel/test-net-server-listen-handle.js": { @@ -3014,7 +2977,6 @@ "parallel/test-net-server-options.js": {}, "parallel/test-net-server-pause-on-connect.js": {}, "parallel/test-net-server-reset.js": { "category": "known-gap", "reason": "net.js TCP implementation incomplete - needs event handling and API fixes" }, - "parallel/test-net-server-simultaneous-accepts-produce-warning-once.js": {}, "parallel/test-net-server-try-ports.js": {}, "parallel/test-net-server-unref-persistent.js": { "category": "known-gap", "reason": "net.js TCP implementation incomplete - needs event handling and API fixes" }, "parallel/test-net-server-unref.js": { "category": "known-gap", "reason": "net.js TCP implementation incomplete - needs event handling and API fixes" }, @@ -3154,7 +3116,7 @@ "block_14_does_not_persist_url_parameter_if_source_map_has_been_parsed": {}, "block_15_persists_line_lengths_for_in_memory_representation_of_source": {}, "block_16_trace_length_0": {}, - "block_17_refs_https_sourcemaps_info_spec_html_h_75yo6yoyk7x5": {}, + "block_17_refs_https_tc39_es_ecma426_sec_sources": {}, "block_18_refs_https_github_com_typestrong_ts_node_issues_1769": {}, "block_19_being_required": {}, "block_20_does_not_throw_typeerror_when_primitive_value_is_thrown": {}, @@ -3282,15 +3244,16 @@ "block_05_block_05": {}, "block_06_block_06": {}, "block_07_block_07": {}, - "block_08_block_08": {}, - "block_09_block_09": {} + "block_08_block_08": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-event-emitter-subclass.js": {}, // === node:stream tests (additional) === "parallel/test-readable-from.js": {}, - "parallel/test-stream-aliases-legacy.js": {}, "parallel/test-stream-drop-take.js": { "split": true, "subtests": { @@ -3544,7 +3507,9 @@ "block_19_block_19": {}, "block_20_block_20": {}, "block_21_block_21": {}, - "block_22_block_22": {} + "block_22_block_22": {}, + "block_23_when_the_readable_side_errors_the_error_must_propagate_to_th": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_24_input_must_still_allow_pipeline_to_complete_and_destroy_the_": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-stream-duplex-destroy.js": { @@ -3628,7 +3593,8 @@ "subtests": { "block_00_duplex_fromweb": {}, "block_01_duplex_fromweb_using_utf8_and_objectmode": {}, - "block_02_duplex_toweb": {} + "block_02_duplex_toweb": {}, + "block_03_duplex_toweb_byob": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-stream-end-paused.js": {}, @@ -3745,7 +3711,9 @@ "subtests": { "block_00_block_00": {}, "block_01_block_01": {}, - "block_02_block_02": {} + "block_02_block_02": {}, + "block_03_block_03": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_04_block_04": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-stream-readable-setEncoding-null.js": {}, @@ -3757,7 +3725,14 @@ "block_02_block_02": {} } }, - "parallel/test-stream-readable-to-web-termination.js": {}, + "parallel/test-stream-readable-to-web-termination.js": { + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_controller_enqueue_see_https_github_com_nodejs_node_issues_5": {} + } + }, "parallel/test-stream-readable-unshift.js": { "split": true, "subtests": { @@ -3986,7 +3961,6 @@ "parallel/test-process-beforeexit-throw-exit.js": { "category": "known-gap", "reason": "process API incomplete" }, "parallel/test-process-beforeexit.js": { "category": "known-gap", "reason": "process API incomplete" }, "parallel/test-process-exit-from-before-exit.js": {}, - "parallel/test-promise-swallowed-event.js": { "category": "known-gap", "reason": "process 'multipleResolves' event semantics are not implemented" }, "parallel/test-repl-programmatic-history.js": { "category": "wasi-impossible", "reason": "repl requires interactive terminal" }, "parallel/test-runner-filetest-location.js": { "category": "known-gap", "reason": "test runner edge case" }, "parallel/test-runner-root-after-with-refed-handles.js": { "category": "known-gap", "reason": "test runner edge case" }, @@ -4078,7 +4052,7 @@ } }, "parallel/test-worker-message-port-close-while-receiving.js": {}, - "parallel/test-zlib-zero-byte.js": {}, + "parallel/test-zlib-zero-byte.js": { "category": "known-gap", "reason": "zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented" }, "parallel/test-async-hooks-vm-gc.js": {}, "parallel/test-finalization-registry-shutdown.js": {}, "parallel/test-heapdump-async-hooks-init-promise.js": { "category": "engine-difference", "reason": "v8.getHeapSnapshot is V8-specific and unavailable in QuickJS" }, @@ -4198,7 +4172,19 @@ "es-module/test-vm-compile-function-leak.js": { "category": "engine-difference", "reason": "uses common/gc checkIfCollectable, which is replaced by a non-observing WASM shim and cannot verify collection" }, "es-module/test-vm-contextified-script-leak.js": { "category": "engine-difference", "reason": "uses common/gc checkIfCollectable, which is replaced by a non-observing WASM shim and cannot verify collection" }, "es-module/test-esm-import-meta.mjs": { "category": "runnable" }, - "es-module/test-esm-import-meta-resolve.mjs": { "category": "known-gap", "reason": "same-process import.meta.resolve behavior is covered by runtime tests; remaining vendored failure requires child_process execPath emulation for --input-type/--import ESM CLI modes" }, + "es-module/test-esm-import-meta-resolve.mjs": { + "category": "known-gap", + "reason": "same-process import.meta.resolve behavior is covered by runtime tests; remaining vendored failure requires child_process execPath emulation for --input-type/--import ESM CLI modes", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {} + } + }, // === node:zlib tests === "parallel/test-zlib-const.js": {}, @@ -4212,10 +4198,10 @@ } }, "parallel/test-zlib-flush-flags.js": {}, - "parallel/test-zlib-convenience-methods.js": {}, + "parallel/test-zlib-convenience-methods.js": { "category": "known-gap", "reason": "zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented" }, "parallel/test-zlib-from-string.js": {}, "parallel/test-zlib-brotli-from-string.js": {}, - "parallel/test-zlib-empty-buffer.js": {}, + "parallel/test-zlib-empty-buffer.js": { "category": "known-gap", "reason": "zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented" }, "parallel/test-zlib-deflate-constructors.js": {}, "parallel/test-zlib-not-string-or-buffer.js": {}, "parallel/test-zlib-sync-no-event.js": {}, @@ -4228,10 +4214,17 @@ } }, "parallel/test-zlib-invalid-arg-value-brotli-compress.js": {}, - "parallel/test-zlib-bytes-read.js": { "category": "known-gap", "reason": "zlib stream bytesWritten/bytesRead accounting and end/data callbacks differ from Node" }, "parallel/test-zlib-close-after-write.js": {}, "parallel/test-zlib-deflate-raw-inherits.js": {}, - "parallel/test-zlib-invalid-input.js": { "category": "known-gap", "reason": "zlib invalid compressed input error event/callback behavior differs from Node" }, + "parallel/test-zlib-invalid-input.js": { + "category": "known-gap", + "reason": "zlib invalid compressed input error event/callback behavior differs from Node", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, "parallel/test-zlib-object-write.js": {}, "parallel/test-zlib-premature-end.js": { "category": "known-gap", "reason": "zlib decompressor handling of trailing garbage/premature end differs from Node" }, "parallel/test-zlib-brotli-16GB.js": {}, @@ -4259,13 +4252,20 @@ "parallel/test-zlib-kmaxlength-rangeerror.js": {}, "parallel/test-zlib-maxOutputLength.js": {}, "parallel/test-zlib-params.js": {}, - "parallel/test-zlib-random-byte-pipes.js": {}, + "parallel/test-zlib-random-byte-pipes.js": { "category": "known-gap", "reason": "zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented" }, "parallel/test-zlib-reset-before-write.js": {}, - "parallel/test-zlib-truncated.js": {}, + "parallel/test-zlib-truncated.js": { + "split": true, + "subtests": { + "block_00_value_as_truncated_input": { "category": "known-gap", "reason": "zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented" }, + "block_01_mistaken_for_an_empty_truncated_frame": { "category": "known-gap", "reason": "zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented" }, + "block_02_must_report_that_the_frame_is_incomplete": { "category": "known-gap", "reason": "zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented" } + } + }, "parallel/test-zlib-unused-weak.js": { "category": "node-internals", "reason": "asserts internal zlib native-handle weak-reference/external-memory behavior" }, "parallel/test-zlib-write-after-close.js": {}, "parallel/test-zlib-write-after-end.js": {}, - "parallel/test-zlib-write-after-flush.js": {}, + "parallel/test-zlib-write-after-flush.js": { "category": "known-gap", "reason": "zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented" }, "parallel/test-zlib-close-after-error.js": { "category": "node-internals", "reason": "asserts private zlib stream _closed state after error" }, "parallel/test-zlib-close-in-ondata.js": {}, "parallel/test-zlib-destroy.js": { @@ -4292,8 +4292,9 @@ "split": true, "subtests": { "block_00_block_00": { "reason": "inherited: requires --expose-internals and internalBinding('cares_wrap') to stub getaddrinfo" }, - "block_01_block_01": { "reason": "inherited: requires --expose-internals and internalBinding('cares_wrap') to stub getaddrinfo" }, - "block_02_block_02": { "reason": "inherited: requires --expose-internals and internalBinding('cares_wrap') to stub getaddrinfo" } + "block_01_block_01": {}, + "block_02_block_02": { "reason": "inherited: requires --expose-internals and internalBinding('cares_wrap') to stub getaddrinfo" }, + "block_03_block_03": { "reason": "inherited: requires --expose-internals and internalBinding('cares_wrap') to stub getaddrinfo" } } }, "parallel/test-dns-lookup-promises.js": { "category": "node-internals", "reason": "requires --expose-internals and internalBinding('cares_wrap') to stub getaddrinfo" }, @@ -4311,15 +4312,17 @@ "block_00_verify_that_setservers_handles_arrays_with_holes_and_other_o": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, "block_01_block_01": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, "block_02_block_02": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, - "block_03_block_03": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, + "block_03_block_03": {}, "block_04_block_04": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, - "block_05_dns_lookup_should_accept_only_falsey_and_string_values": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, - "block_06_dns_lookup_should_accept_falsey_values": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, - "block_07_block_07": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, + "block_05_block_05": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, + "block_06_dns_lookup_should_accept_only_falsey_and_string_values": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, + "block_07_dns_lookup_should_accept_falsey_values": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, "block_08_block_08": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, "block_09_block_09": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, "block_10_block_10": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, - "block_11_block_11": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" } + "block_11_block_11": { "reason": "inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible" }, + "block_12_block_12": {}, + "block_13_block_13": {} } }, "parallel/test-dns-setservers-type-check.js": { @@ -4345,7 +4348,8 @@ "split": true, "subtests": { "block_00_verifies_that_setlocaladdress_succeeds_with_ipv4_and_ipv6_ad": {}, - "block_01_verify_that_setlocaladdress_throws_if_called_with_an_invalid": { "category": "known-gap", "reason": "inherited: Resolver#setLocalAddress validation/error behavior is not implemented" } + "block_01_verify_that_setlocaladdress_throws_if_called_with_an_invalid": { "category": "known-gap", "reason": "inherited: Resolver#setLocalAddress validation/error behavior is not implemented" }, + "block_02_of_silently_truncating_them_at_the_first_null_byte": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-dns-cancel-reverse-lookup.js": { "category": "known-gap", "reason": "Resolver.cancel() behavior for in-flight reverse lookups is not implemented" }, @@ -4592,7 +4596,13 @@ } }, "parallel/test-http-dump-req-when-res-ends.js": { "category": "known-gap", "reason": "wasi:http client cannot expose an early response before the request body is finished, so this bidirectional streaming fixture deadlocks" }, - "parallel/test-http-early-hints-invalid-argument.js": {}, + "parallel/test-http-early-hints-invalid-argument.js": { + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, "parallel/test-http-early-hints.js": { "split": true, "subtests": { @@ -4693,9 +4703,11 @@ "parallel/test-http-outgoing-destroyed.js": { "split": true, "subtests": { - "block_00_block_00": { "category": "known-gap", "reason": "wasi:http request body is not finalized/sent until end(), so write()-only request flow diverges from Node" }, - "block_01_block_01": { "category": "known-gap", "reason": "wasi:http request body is not finalized/sent until end(), so write()-only request flow diverges from Node" }, - "block_02_block_02": {} + "block_00_outgoingmessage_destroy_with_no_socket_should_emit_close_and": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_01_outgoingmessage_destroy_err_with_no_socket_should_set_errore": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_02_block_02": { "category": "known-gap", "reason": "wasi:http request body is not finalized/sent until end(), so write()-only request flow diverges from Node" }, + "block_03_block_03": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_04_block_04": {"category": "runnable", "reason": "carries 22.14.0 subtest block_02_block_02"} } }, "parallel/test-http-outgoing-end-cork.js": { "category": "known-gap", "reason": "the client never observes a reused keep-alive socket, so the corked-response reuse loop does not terminate" }, @@ -4713,7 +4725,15 @@ } }, "parallel/test-http-outgoing-message-write-callback.js": {}, - "parallel/test-http-outgoing-writableFinished.js": {}, + "parallel/test-http-outgoing-writableFinished.js": { + "split": true, + "subtests": { + "block_00_before_finish_is_emitted": {}, + "block_01_finish_the_end_callback_receives_the_write_error_instead": { "category": "known-gap", "reason": "node:http client requests always use wasi:http, so a createConnection socket's write failures are not observed" }, + "block_02_surfaces_through_the_socket_write_callbacks": {}, + "block_03_has_nothing_to_send": {} + } + }, "parallel/test-http-outgoing-write-types.js": {}, "parallel/test-http-parser-finish-error.js": { "category": "known-gap", "reason": "server parser does not emit Node-compatible clientError (HPE_INVALID_EOF_STATE) on truncated headers" }, "parallel/test-http-parser-freed-before-upgrade.js": { "category": "node-internals", "reason": "asserts internal socket.parser lifecycle around HTTP upgrade" }, @@ -4799,15 +4819,7 @@ "parallel/test-http-server-close-all.js": { "category": "known-gap", "reason": "server.closeAllConnections() does not close active and idle HTTP sockets with Node-compatible behavior" }, "parallel/test-http-server-close-idle-wait-response.js": { "category": "known-gap", "reason": "server.closeIdleConnections() while waiting for a response does not fire expected callbacks" }, "parallel/test-http-server-close-idle.js": {}, - "parallel/test-http-server-connection-list-when-close.js": { - "category": "node-internals", - "reason": "asserts private req.socket.parser.free lifecycle from Node internals", - "split": true, - "subtests": { - "block_00_block_00": { "reason": "asserts private req.socket.parser.free lifecycle from Node internals" }, - "block_01_block_01": { "reason": "asserts private req.socket.parser.free lifecycle from Node internals" } - } - }, + "parallel/test-http-server-connection-list-when-close.js": { "category": "node-internals", "reason": "asserts private req.socket.parser.free lifecycle from Node internals" }, "parallel/test-http-server-consumed-timeout.js": { "category": "known-gap", "reason": "req.setTimeout() handling for actively consumed request bodies is not Node-compatible" }, "parallel/test-http-server-de-chunked-trailer.js": { "category": "known-gap", "reason": "ServerResponse.writeHead() does not throw ERR_HTTP_TRAILER_INVALID when Trailer is set with Content-Length" }, "parallel/test-http-server-delete-parser.js": {}, @@ -4910,12 +4922,24 @@ "block_02_block_02": {}, "block_03_block_03": {}, "block_04_block_04": {}, - "block_05_block_05": {} + "block_05_block_05": {}, + "block_06_block_06": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-stream-iterator-helpers-test262-tests.mjs": { "category": "known-gap", - "reason": "Readable.prototype.drop.length is 2 instead of Node's 1; later iterator-helper assertions are not reached" + "reason": "Readable.prototype.drop.length is 2 instead of Node's 1; later iterator-helper assertions are not reached", + "split": true, + "subtests": { + "block_00_that_happen_before_stream_conversion_were_not_ported": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {} + } }, "parallel/test-stream-readable-async-iterators.js": { "split": true, @@ -4926,7 +4950,17 @@ "block_03_block_03": { "category": "known-gap", "reason": "stream edge case not yet handled" }, "block_04_asynciterator_non_destroying_iterator": { "category": "known-gap", "reason": "stream edge case not yet handled" }, "block_05_block_05": { "category": "known-gap", "reason": "Readable async iterator pending next() resolution can hang on destroy/end paths" }, - "block_06_block_06": { "category": "known-gap", "reason": "stream edge case not yet handled" } + "block_06_block_06": { "category": "known-gap", "reason": "stream edge case not yet handled" }, + "block_07_block_07": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_08_block_08": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_09_block_09": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_10_block_10": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_11_block_11": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_12_block_12": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_13_block_13": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_14_block_14": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_15_block_15": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_16_block_16": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-stream-toWeb-allows-server-response.js": {}, @@ -5122,7 +5156,15 @@ } }, "parallel/test-repl-tab-complete-no-warn.js": { "category": "wasi-impossible", "reason": "repl is not supported in WASM" }, - "parallel/test-repl-tab-complete-on-editor-mode.js": { "category": "wasi-impossible", "reason": "repl is not supported in WASM" }, + "parallel/test-repl-tab-complete-on-editor-mode.js": { + "category": "wasi-impossible", + "reason": "repl is not supported in WASM", + "split": true, + "subtests": { + "block_00_tab_completion_in_editor_mode": {}, + "block_01_regression_test_for_https_github_com_nodejs_node_issues_4352": {} + } + }, "parallel/test-repl-uncaught-exception-async.js": { "category": "wasi-impossible", "reason": "repl is not supported in WASM" }, "parallel/test-repl-uncaught-exception.js": { "category": "wasi-impossible", "reason": "repl is not supported in WASM" }, "parallel/test-readline-interface-no-trailing-newline.js": { "category": "known-gap", "reason": "node:readline Interface constructor/options are not implemented" }, @@ -5208,7 +5250,7 @@ }, "parallel/test-http-invalid-path-chars.js": {}, "parallel/test-http-invalid-urls.js": {}, - "parallel/test-http-invalidheaderfield2.js": {}, + "parallel/test-http-invalidheaderfield2.js": { "category": "runnable" }, "parallel/test-http-localaddress.js": { "category": "node-internals", "reason": "uses common/net.hasMultiLocalhost(), which depends on internalBinding('tcp_wrap')" }, "parallel/test-http-max-header-size-per-stream.js": { "split": true, @@ -5225,24 +5267,6 @@ "parallel/test-http-no-content-length.js": { "category": "known-gap", "reason": "GOL-221: wasi:http does not reliably close the client TCP send side after a close-delimited response, so net.Server.close() can wait indefinitely" }, "parallel/test-http-outgoing-buffer.js": { "category": "node-internals", "reason": "requires internal/streams/state.getDefaultHighWaterMark()" }, "parallel/test-http-outgoing-destroy.js": {}, - "parallel/test-http-outgoing-internal-headernames-getter.js": { - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {} - } - }, - "parallel/test-http-outgoing-internal-headernames-setter.js": {}, - "parallel/test-http-outgoing-internal-headers.js": { - "category": "node-internals", - "reason": "requires internal/http kOutHeaders symbol", - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {} - } - }, "parallel/test-http-outgoing-message-inheritance.js": {}, "parallel/test-http-outgoing-properties.js": { "split": true, @@ -5677,7 +5701,15 @@ "parallel/test-http2-respond-with-fd-errors.js": { "category": "node-internals", "reason": "uses --expose-internals with internalBinding('http2') and internal/http2/util" }, "parallel/test-http2-respond-with-file-connection-abort.js": { "category": "known-gap", "reason": "node:http2 public API is a stub in WebAssembly runtime" }, "parallel/test-http2-response-splitting.js": { "category": "known-gap", "reason": "node:http2 public API is a stub in WebAssembly runtime" }, - "parallel/test-http2-sensitive-headers.js": { "category": "known-gap", "reason": "node:http2 public API is a stub in WebAssembly runtime" }, + "parallel/test-http2-sensitive-headers.js": { + "category": "known-gap", + "reason": "node:http2 public API is a stub in WebAssembly runtime", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, "parallel/test-http2-sent-headers.js": { "category": "known-gap", "reason": "node:http2 public API is a stub in WebAssembly runtime" }, "parallel/test-http2-serve-file.js": { "category": "wasi-impossible", "reason": "requires TLS-enabled HTTP/2 server (createSecureServer), unsupported in WASI runtime" }, "parallel/test-http2-server-async-dispose.js": { "category": "known-gap", "reason": "node:http2 public API is a stub in WebAssembly runtime" }, @@ -5733,7 +5765,6 @@ "parallel/test-http2-session-timeout.js": { "category": "known-gap", "reason": "node:http2 public API is a stub in WebAssembly runtime" }, "parallel/test-http2-settings-unsolicited-ack.js": { "category": "known-gap", "reason": "node:http2 public API is a stub in WebAssembly runtime" }, "parallel/test-http2-short-stream-client-server.js": { "category": "known-gap", "reason": "node:http2 public API is a stub in WebAssembly runtime" }, - "parallel/test-http2-single-headers.js": { "category": "known-gap", "reason": "node:http2 public API is a stub in WebAssembly runtime" }, "parallel/test-http2-socket-close.js": { "category": "wasi-impossible", "reason": "requires TLS-enabled HTTP/2 server (createSecureServer), unsupported in WASI runtime" }, "parallel/test-http2-socket-proxy-handler-for-has.js": { "category": "wasi-impossible", "reason": "requires TLS-enabled HTTP/2 server (createSecureServer), unsupported in WASI runtime" }, "parallel/test-http2-socket-proxy.js": { "category": "node-internals", "reason": "uses --expose-internals and require('internal/timers')" }, @@ -5899,11 +5930,7 @@ "parallel/test-https-unix-socket-self-signed.js": { "category": "wasi-impossible", "reason": "requires https.createServer/TLS server behavior, unsupported by WASI transport" }, // === Additional sequential tests (http/https/net) === - "sequential/test-http-max-sockets.js": { "category": "known-gap", "reason": "sequential path is stale in vendored suite; equivalent maxSockets queueing/release behavior is not Node-compatible" }, "sequential/test-http-regr-gh-2928.js": { "category": "node-internals", "reason": "uses private `_http_common.parsers` and `HTTPParser` internals" }, - "sequential/test-http-server-request-timeout-keepalive.js": { "category": "known-gap", "reason": "sequential path is stale in vendored suite; equivalent server.requestTimeout keep-alive handling is not Node-compatible" }, - "sequential/test-http-server-request-timeout-pipelining.js": { "category": "known-gap", "reason": "sequential path is stale in vendored suite; equivalent server.requestTimeout pipelining handling is not Node-compatible" }, - "sequential/test-http-server-request-timeout-upgrade.js": { "category": "known-gap", "reason": "sequential path is stale in vendored suite; equivalent Upgrade timeout-disabling semantics are not Node-compatible" }, "sequential/test-https-connect-localport.js": { "category": "wasi-impossible", "reason": "https.createServer (TLS server) is not supported in WebAssembly environment" }, "sequential/test-net-connect-local-error.js": {}, "sequential/test-net-localport.js": {}, @@ -6075,13 +6102,6 @@ "es-module/test-require-module-tla-retry-import-2.js": { "category": "runnable" }, "es-module/test-require-module-tla-retry-import.js": { "category": "runnable" }, "es-module/test-require-module-tla-retry-require.js": { "category": "runnable" }, - "es-module/test-require-module-tla.js": { - "split": true, - "subtests": { - "block_00_block_00": { "category": "runnable" }, - "block_01_block_01": { "category": "known-gap", "reason": "child_process execPath emulation does not implement --experimental-print-required-tla diagnostics output" } - } - }, "es-module/test-require-module-transpiled.js": { "category": "runnable" }, "es-module/test-require-module-twice.js": { "category": "runnable" }, "es-module/test-require-module-warning.js": { "category": "known-gap", "reason": "child_process execPath emulation does not implement --trace-require-module warning output" }, @@ -6122,10 +6142,29 @@ "es-module/test-esm-custom-exports.mjs": { "category": "runnable" }, "es-module/test-esm-cyclic-dynamic-import.mjs": { "category": "runnable" }, "es-module/test-esm-default-type.mjs": { "category": "runnable" }, - "es-module/test-esm-detect-ambiguous.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, + "es-module/test-esm-detect-ambiguous.mjs": { + "category": "known-gap", + "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR", + "split": true, + "subtests": { + "test_00_module_syntax_detection": {}, + "test_01_wrapping_a_require_of_an_es_module_while_using_abort_on_unca": {}, + "test_02_when_working_with_worker_threads": {}, + "test_03_cjs_esm_ambiguous_syntax_case": {} + } + }, "es-module/test-esm-dns-promises.mjs": { "category": "runnable" }, "es-module/test-esm-double-encoding.mjs": { "category": "runnable" }, - "es-module/test-esm-dynamic-import-attribute.mjs": { "category": "runnable" }, + "es-module/test-esm-dynamic-import-attribute.mjs": { + "category": "runnable", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, "es-module/test-esm-dynamic-import-commonjs.mjs": { "category": "runnable" }, "es-module/test-esm-dynamic-import-mutating-fs.mjs": { "category": "known-gap", "reason": "same-process dynamic import cache behavior is covered by runner_dynamic_import_cache_survives_removed_file; full Node test also requires spawned process.execPath --input-type=module support" }, "es-module/test-esm-encoded-path.mjs": { "category": "runnable" }, @@ -6165,12 +6204,13 @@ "es-module/test-esm-initialization.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, "es-module/test-esm-json-cache.mjs": { "category": "runnable" }, "es-module/test-esm-json.mjs": { - "split": true, "nestedNodeTest": true, + "split": true, "subtests": { "test_00_should_load_json": { "category": "runnable" }, - "test_01_should_not_print_an_experimental_warning": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support for child-process JSON module warning assertions" }, - "test_02_should_load_different_modules_when_the_url_is_different": { "category": "runnable" } + "test_01_should_load_json_with_import_calls": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_02_should_not_print_an_experimental_warning": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support for child-process JSON module warning assertions" }, + "test_03_should_load_different_modules_when_the_url_is_different": { "category": "runnable" } } }, "es-module/test-esm-live-binding.mjs": { "category": "known-gap", "reason": "QuickJS property redefinition errors use engine-specific wording; Node-compatible normalization without replacing public intrinsics is tracked by GOL-361" }, @@ -6180,7 +6220,6 @@ "es-module/test-esm-loader-dependency.mjs": { "category": "runnable" }, "es-module/test-esm-loader-entry-url.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, "es-module/test-esm-loader-event-loop.mjs": { "category": "runnable" }, - "es-module/test-esm-loader-hooks.mjs": { "category": "known-gap", "reason": "loader hooks in this vendored file are exercised through spawned process.execPath CLI loader flags/eval, deferred to simulated Node CLI mode support" }, "es-module/test-esm-loader-http-imports.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, "es-module/test-esm-loader-invalid-format.mjs": { "category": "runnable" }, "es-module/test-esm-loader-invalid-url.mjs": { "category": "runnable" }, @@ -6188,7 +6227,15 @@ "es-module/test-esm-loader-not-found.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, "es-module/test-esm-loader-programmatically.mjs": { "category": "known-gap", "reason": "programmatic loader registration in this vendored file is exercised through spawned process.execPath --eval/--import/--loader CLI mode" }, "es-module/test-esm-loader-resolve-type.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, - "es-module/test-esm-loader-spawn-promisified.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, + "es-module/test-esm-loader-spawn-promisified.mjs": { + "category": "known-gap", + "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR", + "split": true, + "subtests": { + "test_00_loader_hooks_throwing_errors": {}, + "test_01_loader_hooks_parsing_modules": {} + } + }, "es-module/test-esm-loader-stringify-text.mjs": { "category": "runnable" }, "es-module/test-esm-loader-thenable.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, "es-module/test-esm-loader-with-source.mjs": { "category": "runnable" }, @@ -6221,58 +6268,128 @@ "es-module/test-esm-tla-unfinished.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, "es-module/test-esm-tla.mjs": { "category": "runnable" }, "es-module/test-esm-type-field.mjs": { "category": "runnable" }, - "es-module/test-esm-type-flag-cli-entry.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, - "es-module/test-esm-type-flag-errors.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, - "es-module/test-esm-type-flag-loose-files.mjs": { - "split": true, - "nestedNodeTest": true, - "subtests": { - "test_00_should_run_as_esm_a_js_file_that_is_outside_of_any_package_s": { "category": "known-gap", "reason": "requires spawned process.execPath entry-point execution with --experimental-default-type=module" }, - "test_01_should_run_as_esm_an_extensionless_javascript_file_that_is_o": { "category": "known-gap", "reason": "requires spawned process.execPath entry-point execution with --experimental-default-type=module" }, - "test_02_should_run_as_wasm_an_extensionless_wasm_file_that_is_outsid": { "category": "known-gap", "reason": "requires spawned process.execPath entry-point execution plus WebAssembly module loading support" }, - "test_03_should_import_as_esm_a_js_file_that_is_outside_of_any_packag": { "category": "runnable" }, - "test_04_should_import_as_esm_an_extensionless_javascript_file_that_i": { "category": "runnable" }, - "test_05_should_import_as_wasm_an_extensionless_wasm_file_that_is_out": { "category": "known-gap", "reason": "WebAssembly module loading for .wasm files is not implemented; binary input is currently treated as JS source" }, - "test_06_should_check_as_esm_input_passed_via_check": { "category": "known-gap", "reason": "requires spawned process.execPath --check execution with --experimental-default-type=module" } - } - }, - "es-module/test-esm-type-flag-package-scopes.mjs": { - "split": true, - "nestedNodeTest": true, - "subtests": { - "test_00_should_run_as_esm_an_extensionless_javascript_file_within_a_": { "category": "known-gap", "reason": "requires spawned process.execPath entry-point execution with --experimental-default-type=module" }, - "test_01_should_import_an_extensionless_javascript_file_within_a_type": { "category": "runnable" }, - "test_02_should_import_an_extensionless_javascript_file_within_a_type": { "category": "runnable" }, - "test_03_should_run_as_wasm_an_extensionless_wasm_file_within_a_type_": { "category": "known-gap", "reason": "requires spawned process.execPath entry-point execution plus WebAssembly module loading support" }, - "test_04_should_import_as_wasm_an_extensionless_wasm_file_within_a_ty": { "category": "known-gap", "reason": "WebAssembly module loading for .wasm files is not implemented; binary input is currently treated as JS source" }, - "test_05_should_import_an_extensionless_wasm_file_within_a_type_modul": { "category": "known-gap", "reason": "WebAssembly module loading for .wasm files is not implemented; binary input is currently treated as JS source" }, - "test_06_should_run_as_esm_a_js_file_within_package_scope_that_has_no": { "category": "known-gap", "reason": "requires spawned process.execPath entry-point execution with --experimental-default-type=module" }, - "test_07_should_run_as_esm_an_extensionless_javascript_file_within_a_": { "category": "known-gap", "reason": "requires spawned process.execPath entry-point execution with --experimental-default-type=module" }, - "test_08_should_run_as_wasm_an_extensionless_wasm_file_within_a_packa": { "category": "known-gap", "reason": "requires spawned process.execPath entry-point execution plus WebAssembly module loading support" }, - "test_09_should_import_as_esm_a_js_file_within_package_scope_that_has": { "category": "runnable" }, - "test_10_should_import_as_esm_an_extensionless_javascript_file_within": { "category": "runnable" }, - "test_11_should_import_as_wasm_an_extensionless_wasm_file_within_a_pa": { "category": "known-gap", "reason": "WebAssembly module loading for .wasm files is not implemented; binary input is currently treated as JS source" }, - "test_12_should_run_as_commonjs_a_js_file_within_package_scope_that_h": { "category": "known-gap", "reason": "requires spawned process.execPath entry-point execution with --experimental-default-type=module" }, - "test_13_should_import_as_commonjs_a_js_file_within_a_package_scope_t": { "category": "runnable" }, - "test_14_should_run_as_commonjs_an_extensionless_javascript_file_with": { "category": "known-gap", "reason": "requires spawned process.execPath entry-point execution with --experimental-default-type=module" }, - "test_15_should_import_as_commonjs_an_extensionless_javascript_file_w": { "category": "runnable" } - } - }, - "es-module/test-esm-type-flag-string-input.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, "es-module/test-esm-type-main.mjs": { "category": "runnable" }, "es-module/test-esm-util-types.mjs": { "category": "runnable" }, "es-module/test-esm-virtual-json.mjs": { "category": "runnable" }, - "es-module/test-esm-wasm.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, "es-module/test-import-module-conditional-exports-module.mjs": { "category": "runnable" }, "es-module/test-loaders-unknown-builtin-module.mjs": { "category": "runnable" }, "es-module/test-loaders-workers-spawned.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI mode support deferred to follow-up PR" }, "es-module/test-require-as-esm-interop.mjs": { "category": "runnable" }, - "es-module/test-typescript-commonjs.mjs": { "category": "known-gap", "reason": "requires isolated process.execPath TypeScript entry execution and Node CLI default-module / require-module flag handling" }, - "es-module/test-typescript-eval.mjs": { "category": "known-gap", "reason": "requires isolated process.execPath --eval execution, TypeScript input-type flags, and child warning/output/exit capture" }, - "es-module/test-typescript-module.mjs": { "category": "known-gap", "reason": "requires isolated process.execPath TypeScript entry execution and Node CLI default-module / require-module flag handling" }, - "es-module/test-typescript-transform.mjs": { "category": "known-gap", "reason": "requires isolated process.execPath --experimental-transform-types execution and CLI source-map configuration" }, - "es-module/test-typescript.mjs": { "category": "known-gap", "reason": "requires isolated process.execPath TypeScript entry execution and Node CLI flags; the direct process.features check requires a separate feature-disabled component" }, - "parallel/test-abortcontroller-internal.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/event_target (kWeakHandler)" }, + "es-module/test-typescript-commonjs.mjs": { + "category": "known-gap", + "reason": "requires isolated process.execPath TypeScript entry execution and Node CLI default-module / require-module flag handling", + "split": true, + "subtests": { + "test_00_require_a_ts_file_with_explicit_extension_succeeds": {}, + "test_01_eval_require_a_ts_file_with_implicit_extension_fails": {}, + "test_02_eval_require_a_cts_file_with_implicit_extension_fails": {}, + "test_03_require_a_ts_file_with_implicit_extension_fails": {}, + "test_04_expect_failure_of_an_mts_file_with_commonjs_syntax": {}, + "test_05_execute_a_cts_file_importing_a_cts_file": {}, + "test_06_execute_a_cts_file_importing_a_ts_file_export": {}, + "test_07_execute_a_cts_file_importing_a_mts_file_export": {}, + "test_08_execute_a_cts_file_importing_a_mts_file_export": {}, + "test_09_expect_failure_of_a_cts_file_in_node_modules": {}, + "test_10_expect_failure_of_a_ts_file_in_node_modules": {}, + "test_11_expect_failure_of_a_cts_requiring_esm_without_default_type_m": {}, + "test_12_expect_failure_of_a_cts_file_requiring_esm_in_node_modules": {}, + "test_13_cts_require_mts_import_cts": {} + } + }, + "es-module/test-typescript-eval.mjs": { + "category": "known-gap", + "reason": "requires isolated process.execPath --eval execution, TypeScript input-type flags, and child warning/output/exit capture", + "split": true, + "subtests": { + "test_00_eval_typescript_esm_syntax": {}, + "test_01_eval_typescript_esm_syntax_with_input_type_module": {}, + "test_02_eval_typescript_commonjs_syntax": {}, + "test_03_eval_typescript_commonjs_syntax_with_input_type_commonjs_typ": {}, + "test_04_eval_typescript_commonjs_syntax_by_default": {}, + "test_05_typescript_esm_syntax_not_specified": {}, + "test_06_expect_fail_eval_typescript_commonjs_syntax_with_input_type_": {}, + "test_07_expect_fail_eval_typescript_esm_syntax_with_input_type_commo": {}, + "test_08_check_syntax_error_is_thrown_when_passing_unsupported_syntax": {}, + "test_09_check_syntax_error_is_thrown_when_passing_unsupported_syntax": {}, + "test_10_check_syntax_error_is_thrown_when_passing_unsupported_syntax": {}, + "test_11_should_not_parse_typescript_with_type_module_commonjs": {}, + "test_12_should_not_parse_typescript_with_type_module_module": {}, + "test_13_check_warning_is_emitted_when_eval_typescript_commonjs_synta": {}, + "test_14_code_is_throwing_a_non_error_is_rethrown": {}, + "test_15_code_is_throwing_an_error_with_customized_accessors": {}, + "test_16_typescript_code_is_throwing_an_error": {}, + "test_17_typescript_esm_code_is_throwing_a_syntax_error_at_runtime": {}, + "test_18_typescript_cjs_code_is_throwing_a_syntax_error_at_runtime": {}, + "test_19_check_syntax_error_is_thrown_when_passing_invalid_syntax_wit": {}, + "test_20_check_syntax_error_is_thrown_when_passing_invalid_syntax_wit": {}, + "test_21_should_not_allow_module_keyword": {}, + "test_22_should_not_allow_declare_module_keyword": {}, + "test_23_the_error_message_should_not_contain_extra_padding": {} + } + }, + "es-module/test-typescript-module.mjs": { + "category": "known-gap", + "reason": "requires isolated process.execPath TypeScript entry execution and Node CLI default-module / require-module flag handling", + "split": true, + "subtests": { + "test_00_expect_failure_of_a_mts_file_with_commonjs_syntax": {}, + "test_01_execute_an_mts_file_importing_an_mts_file": {}, + "test_02_execute_an_mts_file_importing_a_ts_file": {}, + "test_03_execute_an_mts_file_importing_a_cts_file": {}, + "test_04_execute_an_mts_file_from_node_modules": {}, + "test_05_execute_a_cts_file_from_node_modules": {}, + "test_06_execute_a_ts_file_from_node_modules": {}, + "test_07_execute_an_empty_ts_file": {}, + "test_08_execute_ts_file_importing_a_module": {}, + "test_09_mts_import_cts_require_mts": {} + } + }, + "es-module/test-typescript.mjs": { + "category": "known-gap", + "reason": "requires isolated process.execPath TypeScript entry execution and Node CLI flags; the direct process.features check requires a separate feature-disabled component", + "split": true, + "subtests": { + "test_00_expect_process_features_typescript_to_be_false_when_no_exper": {}, + "test_01_execute_a_typescript_file": {}, + "test_02_execute_a_typescript_file_with_imports": {}, + "test_03_execute_a_typescript_file_with_imports": {}, + "test_04_execute_a_typescript_file_with_node_modules": {}, + "test_05_expect_error_when_executing_a_typescript_file_with_imports_w": {}, + "test_06_expect_error_when_executing_a_typescript_file_with_enum": {}, + "test_07_expect_error_when_executing_a_typescript_file_with_experimen": {}, + "test_08_expect_error_when_executing_a_typescript_file_with_namespace": {}, + "test_09_execute_a_typescript_file_with_type_definition": {}, + "test_10_execute_a_typescript_file_with_type_definition_but_no_type_k": {}, + "test_11_execute_a_typescript_file_with_commonjs_syntax": {}, + "test_12_execute_a_typescript_file_with_es_module_syntax": {}, + "test_13_expect_failure_of_a_typescript_file_requiring_es_module_synt": {}, + "test_14_expect_stack_trace_of_a_typescript_file_to_be_correct": {}, + "test_15_execute_commonjs_typescript_file_from_node_modules_with_requ": {}, + "test_16_execute_a_typescript_file_with_commonjs_syntax_requiring_cts": {}, + "test_17_execute_a_typescript_file_with_commonjs_syntax_requiring_mts": {}, + "test_18_execute_a_typescript_file_with_commonjs_syntax_requiring_mts": {}, + "test_19_execute_a_typescript_file_with_commonjs_syntax_requiring_cts": {}, + "test_20_execute_a_typescript_file_with_commonjs_syntax_requiring_mts": {}, + "test_21_execute_a_javascript_file_importing_a_cjs_typescript_file": {}, + "test_22_execute_a_typescript_test_mocking_module": {}, + "test_23_expect_process_features_typescript_to_be_strip": {}, + "test_24_execute_a_typescript_file_with_union_types": {}, + "test_25_expect_error_when_executing_a_typescript_file_with_generics": {}, + "test_26_execute_a_typescript_loader_and_a_ts_file": {}, + "test_27_execute_a_typescript_loader_and_a_js_file": {}, + "test_28_execute_invalid_typescript_syntax": {}, + "test_29_expect_error_when_executing_a_typescript_file_with_jitless": {} + } + }, + "parallel/test-abortcontroller-internal.js": { + "category": "node-internals", + "reason": "requires --expose-internals and internal/event_target (kWeakHandler)", + "split": true, + "subtests": { + "test_00_a_weak_event_listener_should_not_prevent_gc": {}, + "test_01_two_weak_listeners_with_the_same_retainer_should_both_run_on": {} + } + }, "parallel/test-accessor-properties.js": { "category": "node-internals", "reason": "uses --expose-internals and internal/test/binding internalBinding()", @@ -6334,7 +6451,53 @@ "block_13_block_13": { "category": "runnable" }, "block_14_block_14": { "category": "runnable" }, "block_15_block_15": { "category": "runnable" }, - "block_16_block_16": { "category": "runnable" } + "block_16_block_16": { "category": "runnable" }, + "block_17_block_17": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_18_block_18": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_19_block_19": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_20_block_20": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_21_block_21": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_22_test_exporting_and_importing_the_rule_list_to_from_json": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_23_removerange_basic_removal": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_24_removerange_non_existent_range_is_a_no_op": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_25_removerange_ipv6_range": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_26_removerange_with_socketaddress_objects": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_27_removesubnet_basic_ipv4_removal": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_28_removesubnet_ipv6": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_29_removesubnet_cross_family_cleanup": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_30_removesubnet_non_existent_subnet_is_a_no_op": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_31_removesubnet_with_socketaddress_objects": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_32_removerange_removesubnet_don_t_affect_other_rule_types": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_33_addcidr_ipv4": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_34_addcidr_ipv6_auto_detected": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_35_addcidr_cross_family": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_36_addcidr_validation_errors": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_37_removecidr_basic": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_38_removecidr_ipv6": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_39_removecidr_non_existent_is_a_no_op": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_40_addcidr_interoperates_with_removesubnet_and_vice_versa": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_41_removeaddress_basic": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_42_removeaddress_cross_family_cleanup": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_43_removeaddress_ipv6": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_44_removeaddress_non_existent_is_a_no_op": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_45_removeaddress_with_socketaddress_object": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_46_addcidrs_batch": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_47_addcidrs_validation": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_48_addcidrs_empty_array_is_a_no_op": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_49_addcidrs_invalid_entry_mid_array_does_not_half_apply": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_50_size_tracks_all_rule_types": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_51_size_duplicate_addaddress_does_not_double_count": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_52_private_ranges_is_a_frozen_array_of_cidr_strings": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_53_private_ranges_covers_expected_addresses": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_54_error_path_in_c_socketaddress_new_fails_returns_false": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_55_stack_limit_must_not_turn_that_into_a_miss_after_jit": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_56_check_family_parameter_is_case_insensitive": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_57_socketaddress_constructor_with_invalid_address_throws_err_in": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_58_check_with_socketaddress_objects_across_family_boundaries": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_59_subnet_with_ipv4_mapped_ipv6_network": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_60_range_with_ipv6_addresses": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_61_removing_a_broader_subnet_must_restore_subsumed_narrower_sub": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_62_block_62": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-bootstrap-modules.js": { "category": "node-internals", "reason": "asserts exact process.moduleLoadList bootstrap internals" }, @@ -6526,7 +6689,6 @@ "block_02_block_02": { "category": "known-gap", "reason": "dgram does not validate options.lookup type" } } }, - "parallel/test-dgram-deprecation-error.js": {}, "parallel/test-dgram-ipv6only.js": { "category": "known-gap", "reason": "IPv6 sockets are not available in this runtime (common.hasIPv6=false)" }, "parallel/test-dgram-membership.js": { "category": "unevaluated", @@ -6540,7 +6702,7 @@ "block_04_addmembership_with_invalid_multicast_address_should_throw": { "category": "known-gap", "reason": "dgram multicast membership APIs are not implemented (ENOSYS)" }, "block_05_dropmembership_with_invalid_multicast_address_should_throw": { "category": "known-gap", "reason": "dgram multicast membership APIs are not implemented (ENOSYS)" }, "block_06_addsourcespecificmembership_with_invalid_sourceaddress_shoul": { "category": "known-gap", "reason": "dgram multicast membership APIs are not implemented (ENOSYS)" }, - "block_07_addsourcespecificmembership_with_invalid_sourceaddress_shoul": { "category": "known-gap", "reason": "dgram multicast membership APIs are not implemented (ENOSYS)" }, + "block_07_addsourcespecificmembership_with_invalid_groupaddress_should": { "category": "known-gap", "reason": "dgram multicast membership APIs are not implemented (ENOSYS)" }, "block_08_addsourcespecificmembership_with_invalid_groupaddress_should": { "category": "known-gap", "reason": "dgram multicast membership APIs are not implemented (ENOSYS)" }, "block_09_dropsourcespecificmembership_with_invalid_sourceaddress_shou": { "category": "known-gap", "reason": "dgram multicast membership APIs are not implemented (ENOSYS)" }, "block_10_dropsourcespecificmembership_with_invalid_groupaddress_shoul": { "category": "known-gap", "reason": "dgram multicast membership APIs are not implemented (ENOSYS)" }, @@ -6634,7 +6796,7 @@ "parallel/test-domain-top-level-error-handler-throw.js": { "category": "known-gap", "reason": "domain module depends on async_hooks, not fully working" }, "parallel/test-domain-uncaught-exception.js": { "category": "known-gap", "reason": "domain module depends on async_hooks, not fully working" }, "parallel/test-domain-vm-promise-isolation.js": { "category": "known-gap", "reason": "domain module depends on async_hooks, not fully working" }, - "parallel/test-domain-with-abort-on-uncaught-exception.js": {}, + "parallel/test-domain-with-abort-on-uncaught-exception.js": { "category": "known-gap", "reason": "requires child_process.exec of a shell command line, which WASM child emulation does not support" }, "parallel/test-domexception-cause.js": { "split": true, "subtests": { @@ -6789,28 +6951,20 @@ }, "parallel/test-filehandle-readablestream.js": { "category": "known-gap", "reason": "fs/promises FileHandle.readableWebStream support is missing or incomplete" }, "parallel/test-find-package-json.js": { - "split": true, "nestedNodeTest": true, + "split": true, "subtests": { "test_00_should_throw_when_no_arguments_are_provided": { "category": "runnable" }, - "test_01_should_throw_when_parent_location_is_invalid": { "category": "runnable" }, - "test_02_should_accept_a_file_url_string": { "category": "runnable" }, + "test_01_should_throw_when_parentlocation_is_invalid": { "category": "runnable" }, + "test_02_should_accept_a_file_url_string_like_from_import_meta_resolv": { "category": "runnable" }, "test_03_should_accept_a_file_url_instance": { "category": "runnable" }, "test_04_should_be_able_to_crawl_up_cjs": { "category": "runnable" }, "test_05_should_be_able_to_crawl_up_esm": { "category": "runnable" }, "test_06_can_require_via_package_json": { "category": "runnable" }, - "test_07_should_resolve_root_and_closest_package_json": { - "category": "known-gap", - "reason": "uses child_process spawn path (spawnPromisified)" - }, - "test_08_should_work_within_a_loader": { - "category": "known-gap", - "reason": "requires child process loader/eval flags" - }, - "test_09_should_work_with_async_resolve_hook_registered": { - "category": "known-gap", - "reason": "requires child process loader/eval flags" - } + "test_07_should_be_able_to_resolve_both_root_and_closest_package_json": { "category": "known-gap", "reason": "uses child_process spawn path (spawnPromisified)" }, + "test_08_should_work_within_a_loader": { "category": "known-gap", "reason": "requires child process loader/eval flags" }, + "test_09_should_work_with_an_async_resolve_hook_registered": { "category": "known-gap", "reason": "requires child process loader/eval flags" }, + "test_10_should_work_when_unrecognised_keys_are_specified_within_the_": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-fixed-queue.js": { @@ -6841,11 +6995,9 @@ "parallel/test-gc-net-timeout.js": { "category": "known-gap", "reason": "common/gc.onGC is non-observing; this collection assertion cannot be validated by the current harness" }, "parallel/test-gc-tls-external-memory.js": { "category": "wasi-impossible", "reason": "tls is not supported in WebAssembly environment" }, "parallel/test-global-console-exists.js": {}, - "parallel/test-global-customevent-disabled.js": { "category": "known-gap", "reason": "--no-experimental-global-customevent flag is not honored" }, "parallel/test-global-customevent.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/event_target" }, "parallel/test-global-setters.js": { "category": "known-gap", "reason": "global process/Buffer accessor setter semantics are incomplete" }, "parallel/test-global-webcrypto-classes.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webcrypto" }, - "parallel/test-global-webcrypto-disbled.js": { "category": "known-gap", "reason": "--no-experimental-global-webcrypto flag is not honored" }, "parallel/test-global-webcrypto.js": {}, "parallel/test-global-webstreams.js": { "category": "known-gap", "reason": "global web streams and node:stream/web exports are inconsistent" }, "parallel/test-global.js": { "category": "known-gap", "reason": "globalThis shape differs from Node.js" }, @@ -7056,9 +7208,16 @@ } }, "parallel/test-internal-util-assertCrypto.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/util" }, - "parallel/test-internal-util-classwrapper.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/util" }, "parallel/test-internal-util-decorate-error-stack.js": { "category": "node-internals", "reason": "requires --expose-internals, internal/util, and internal/test/binding" }, - "parallel/test-internal-util-helpers.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/util" }, + "parallel/test-internal-util-helpers.js": { + "category": "node-internals", + "reason": "requires --expose-internals and internal/util", + "split": true, + "subtests": { + "block_00_actual_errors": {}, + "block_01_block_01": {} + } + }, "parallel/test-internal-util-normalizeencoding.js": { "category": "node-internals", "reason": "directly tests internal/util.normalizeEncoding()" }, "parallel/test-internal-util-objects.js": { "category": "node-internals", @@ -7084,7 +7243,17 @@ } }, "parallel/test-internal-validators-validateport.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/validators" }, - "parallel/test-internal-webidl-converttoint.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/webidl" }, + "parallel/test-internal-webidl-converttoint.js": { + "category": "node-internals", + "reason": "requires --expose-internals and internal/webidl", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, "parallel/test-intl-v8BreakIterator.js": { "category": "known-gap", "reason": "Intl is not installed in vm contexts and Intl.v8BreakIterator is not implemented" }, "parallel/test-intl.js": { "category": "known-gap", "reason": "process.config reports ICU disabled and full Node Intl metadata and fidelity are not implemented" }, "parallel/test-js-stream-call-properties.js": { "category": "node-internals", "reason": "requires internalBinding('js_stream').JSStream" }, @@ -7103,7 +7272,15 @@ "parallel/test-messaging-marktransfermode.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/test/transfer" }, "parallel/test-microtask-queue-run-immediate.js": { "category": "runnable" }, "parallel/test-microtask-queue-run.js": { "category": "runnable" }, - "parallel/test-mime-api.js": { "category": "known-gap", "reason": "util.MIMEType/util.MIMEParams are not implemented" }, + "parallel/test-mime-api.js": { + "category": "known-gap", + "reason": "util.MIMEType/util.MIMEParams are not implemented", + "split": true, + "subtests": { + "block_00_refs_https_mimesniff_spec_whatwg_org_parameter_names_are_asc": {}, + "block_01_block_01": {} + } + }, "parallel/test-mime-whatwg.js": { "category": "known-gap", "reason": "util.MIMEType parsing API is not implemented" }, "parallel/test-module-builtin.js": { "category": "runnable" }, "parallel/test-module-children.js": { "category": "runnable" }, @@ -7137,7 +7314,18 @@ }, "parallel/test-module-nodemodulepaths.js": { "category": "runnable" }, "parallel/test-module-parent-deprecation.js": { "category": "runnable" }, - "parallel/test-module-print-timing.mjs": { "category": "known-gap", "reason": "requires simulated process.execPath / Node CLI module_timer and trace-event support" }, + "parallel/test-module-print-timing.mjs": { + "category": "known-gap", + "reason": "requires simulated process.execPath / Node CLI module_timer and trace-event support", + "split": true, + "subtests": { + "test_00_should_print_the_timing_information_for_cjs": {}, + "test_01_should_write_tracing_information_for_cjs": {}, + "test_02_should_write_tracing_print_logs_for_cjs": {}, + "test_03_should_support_enable_tracing_dynamically": {}, + "test_04_should_not_print_when_is_disabled_and_found_duplicated_label": {} + } + }, "parallel/test-module-prototype-mutation.js": { "category": "runnable" }, "parallel/test-module-readonly.js": { "category": "wasi-impossible", "reason": "Windows-specific readonly-module filesystem behavior is not applicable in WASI" }, "parallel/test-module-relative-lookup.js": { "category": "runnable" }, @@ -7159,21 +7347,26 @@ "test_02_striptypescripttypes_code_is_not_a_string": {}, "test_03_striptypescripttypes_invalid_mode": {}, "test_04_striptypescripttypes_sourcemap_throws_when_mode_is_strip": {}, - "test_05_striptypescripttypes_sourceurl_throws_when_mode_is_strip": {}, - "test_06_striptypescripttypes_source_map_when_mode_is_transform": {}, - "test_07_striptypescripttypes_source_map_when_mode_is_transform_and_s": {}, - "test_08_striptypescripttypes_source_map_when_mode_is_transform_and_s": {} + "test_05_striptypescripttypes_sourceurl_throws_when_mode_is_strip": {} } }, "parallel/test-module-symlinked-peer-modules.js": { "category": "known-gap", "reason": "rooted symlink targets cannot be resolved inside a WASI preopen; the adapter rejects them at creation, while persistent relative symlinks are covered by runtime tests" }, "parallel/test-module-version.js": { "category": "runnable" }, "parallel/test-module-wrap.js": { "category": "runnable" }, "parallel/test-module-wrapper.js": { "category": "runnable" }, - "parallel/test-navigator.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/navigator" }, - "parallel/test-next-tick-errors.js": { "category": "runnable" }, - "parallel/test-next-tick-ordering.js": {}, - "parallel/test-no-addons-resolution-condition.js": { "category": "wasi-impossible", "reason": "requires worker_threads isolate/execArgv behavior not available in WASM" }, - "parallel/test-node-run.js": { "category": "wasi-impossible", "reason": "requires spawning node subprocesses to run package scripts" }, + "parallel/test-navigator.js": { + "category": "node-internals", + "reason": "requires --expose-internals and internal/navigator", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-next-tick-errors.js": { "category": "runnable" }, + "parallel/test-next-tick-ordering.js": {}, + "parallel/test-no-addons-resolution-condition.js": { "category": "wasi-impossible", "reason": "requires worker_threads isolate/execArgv behavior not available in WASM" }, + "parallel/test-node-run.js": { "category": "wasi-impossible", "reason": "requires spawning node subprocesses to run package scripts" }, "parallel/test-nodeeventtarget.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/event_target", @@ -7188,7 +7381,7 @@ "block_06_block_06": { "reason": "inherited: requires --expose-internals and internal/event_target" } } }, - "parallel/test-npm-install.js": {}, + "parallel/test-npm-install.js": { "category": "known-gap", "reason": "requires spawning the npm CLI, which WASM child emulation does not support" }, "parallel/test-npm-version.js": { "category": "node-internals", "reason": "checks Node source-tree deps/npm package.json artifact, not runtime API" }, "parallel/test-openssl-ca-options.js": { "category": "wasi-impossible", "reason": "requires spawning node subprocesses to validate CLI CA flags" }, "parallel/test-options-binding.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/options" }, @@ -7211,7 +7404,8 @@ "block_02_block_02": { "reason": "inherited: perf_hooks createHistogram/monitorEventLoopDelay are not implemented" }, "block_03_block_03": { "reason": "inherited: perf_hooks createHistogram/monitorEventLoopDelay are not implemented" }, "block_04_block_04": { "reason": "inherited: perf_hooks createHistogram/monitorEventLoopDelay are not implemented" }, - "block_05_block_05": { "reason": "inherited: perf_hooks createHistogram/monitorEventLoopDelay are not implemented" } + "block_05_block_05": { "reason": "inherited: perf_hooks createHistogram/monitorEventLoopDelay are not implemented" }, + "block_06_block_06": {} } }, "parallel/test-perf-hooks-resourcetiming.js": { @@ -7237,21 +7431,7 @@ } }, "parallel/test-perf-hooks-worker-timeorigin.js": { "category": "wasi-impossible", "reason": "requires worker_threads which is not available in WASM" }, - "parallel/test-performance-eventlooputil.js": { "category": "wasi-impossible", "reason": "depends on worker_threads-based event loop utilization behavior" }, "parallel/test-performance-function-async.js": { "category": "known-gap", "reason": "performance.timerify function entries are not implemented" }, - "parallel/test-performance-function.js": { - "category": "known-gap", - "reason": "performance.timerify function entries are not implemented", - "split": true, - "subtests": { - "block_00_block_00": { "reason": "inherited: performance.timerify function entries are not implemented" }, - "block_01_block_01": { "reason": "inherited: performance.timerify function entries are not implemented" }, - "block_02_block_02": { "reason": "inherited: performance.timerify function entries are not implemented" }, - "block_03_block_03": { "reason": "inherited: performance.timerify function entries are not implemented" }, - "block_04_function_can_be_wrapped_many_times_also_check_length_and_nam": { "reason": "inherited: performance.timerify function entries are not implemented" }, - "block_05_regression_tests_for_https_github_com_nodejs_node_issues_406": { "reason": "inherited: performance.timerify function entries are not implemented" } - } - }, "parallel/test-performance-global.js": {}, "parallel/test-performance-nodetiming-uvmetricsinfo.js": { "category": "known-gap", "reason": "perf_hooks nodeTiming.uvMetricsInfo is missing" }, "parallel/test-performance-nodetiming.js": { "category": "known-gap", "reason": "perf_hooks nodeTiming milestones/duration semantics are incomplete" }, @@ -7266,7 +7446,15 @@ "block_01_test_non_buffered": { "reason": "inherited: requires --expose-internals and internal/test/binding internalBinding('performance')" } } }, - "parallel/test-permission-allow-addons-cli.js": { "category": "known-gap", "reason": "child_process execPath emulation does not honor --allow-addons/node-addons resolution" }, + "parallel/test-permission-allow-addons-cli.js": { + "category": "known-gap", + "reason": "child_process execPath emulation does not honor --allow-addons/node-addons resolution", + "split": true, + "subtests": { + "block_00_to_require_native_addons_unless_allow_addons_is_sent": {}, + "block_01_block_01": {} + } + }, "parallel/test-permission-allow-child-process-cli.js": { "category": "known-gap", "reason": "process.permission and --permission CLI semantics are incomplete in execPath emulation", @@ -7303,7 +7491,6 @@ "block_01_to_spawn": { "reason": "inherited: process.permission and --permission CLI semantics are incomplete in execPath emulation" } } }, - "parallel/test-permission-dc-worker-threads.js": { "category": "known-gap", "reason": "process.permission worker-thread restrictions are incomplete" }, "parallel/test-permission-fs-absolute-path.js": { "category": "known-gap", "reason": "process.permission and --permission CLI semantics are incomplete in execPath emulation" }, "parallel/test-permission-fs-internal-module-stat.js": { "category": "node-internals", "reason": "requires --expose-internals internalBinding('fs').internalModuleStat" }, "parallel/test-permission-fs-read.js": { @@ -7311,7 +7498,8 @@ "subtests": { "block_00_block_00": {}, "block_01_block_01": { "category": "known-gap", "reason": "inherited: process.permission and --permission CLI semantics are incomplete in execPath emulation" }, - "block_02_block_02": {} + "block_02_block_02": { "category": "known-gap", "reason": "inherited: process.permission and --permission CLI semantics are incomplete in execPath emulation" }, + "block_03_block_03": { "category": "runnable" } } }, "parallel/test-permission-fs-relative-path.js": { "category": "known-gap", "reason": "process.permission and --permission CLI semantics are incomplete in execPath emulation" }, @@ -7363,7 +7551,8 @@ "split": true, "subtests": { "block_00_block_00": { "reason": "inherited: process.permission and --permission CLI semantics are incomplete in execPath emulation" }, - "block_01_block_01": { "reason": "inherited: process.permission and --permission CLI semantics are incomplete in execPath emulation" } + "block_01_block_01": { "reason": "inherited: process.permission and --permission CLI semantics are incomplete in execPath emulation" }, + "block_02_block_02": {} } }, "parallel/test-permission-fs-windows-path.js": { @@ -7383,7 +7572,10 @@ "split": true, "subtests": { "block_00_block_00": { "category": "known-gap", "reason": "process.report.writeReport and permission-model integration are missing" }, - "block_01_block_01": { "category": "known-gap", "reason": "process.report.writeReport and permission-model integration are missing" } + "block_01_block_01": { "category": "known-gap", "reason": "process.report.writeReport and permission-model integration are missing" }, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {} } }, "parallel/test-permission-fs-write-v8.js": { @@ -7392,7 +7584,9 @@ "split": true, "subtests": { "block_00_block_00": { "category": "engine-difference", "reason": "v8.writeHeapSnapshot is a V8-specific API and is unavailable in QuickJS" }, - "block_01_block_01": { "category": "engine-difference", "reason": "v8.writeHeapSnapshot is a V8-specific API and is unavailable in QuickJS" } + "block_01_block_01": { "category": "engine-difference", "reason": "v8.writeHeapSnapshot is a V8-specific API and is unavailable in QuickJS" }, + "block_02_block_02": {}, + "block_03_block_03": {} } }, "parallel/test-permission-fs-write.js": { "category": "known-gap", "reason": "process.permission and --permission CLI semantics are incomplete in execPath emulation" }, @@ -7402,7 +7596,8 @@ "split": true, "subtests": { "block_00_block_00": { "category": "known-gap", "reason": "process.permission and --permission CLI semantics are incomplete in execPath emulation" }, - "block_01_block_01": { "category": "known-gap", "reason": "process.permission and --permission CLI semantics are incomplete in execPath emulation" } + "block_01_block_01": { "category": "known-gap", "reason": "process.permission and --permission CLI semantics are incomplete in execPath emulation" }, + "block_02_block_02": {} } }, "parallel/test-permission-inspector-brk.js": { @@ -7448,9 +7643,11 @@ "block_00_block_00": { "reason": "inherited: uses --expose-internals and internal/test/binding primordials" }, "block_01_block_01": { "reason": "inherited: uses --expose-internals and internal/test/binding primordials" }, "block_02_block_02": { "reason": "inherited: uses --expose-internals and internal/test/binding primordials" }, - "block_03_block_03": { "reason": "inherited: uses --expose-internals and internal/test/binding primordials" }, - "block_04_block_04": { "reason": "inherited: uses --expose-internals and internal/test/binding primordials" }, - "block_05_block_05": { "reason": "inherited: uses --expose-internals and internal/test/binding primordials" } + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": { "reason": "inherited: uses --expose-internals and internal/test/binding primordials" }, + "block_06_block_06": { "reason": "inherited: uses --expose-internals and internal/test/binding primordials" }, + "block_07_block_07": { "reason": "inherited: uses --expose-internals and internal/test/binding primordials" } } }, "parallel/test-primordials-promise.js": { @@ -7494,7 +7691,6 @@ } }, "parallel/test-process-argv-0.js": {}, - "parallel/test-process-assert.js": { "category": "known-gap", "reason": "process.assert() is not implemented" }, "parallel/test-process-binding-internalbinding-allowlist.js": { "category": "node-internals", "reason": "uses internal process.binding allowlist modules" }, "parallel/test-process-binding-util.js": { "category": "node-internals", "reason": "uses internal process.binding('util') API" }, "parallel/test-process-binding.js": { "category": "node-internals", "reason": "uses --expose-internals and internal/test/binding" }, @@ -7538,7 +7734,7 @@ } }, "parallel/test-process-getactiveresources.js": { "category": "known-gap", "reason": "process.getActiveResourcesInfo() is not implemented" }, - "parallel/test-process-getgroups.js": {}, + "parallel/test-process-getgroups.js": { "category": "known-gap", "reason": "requires child_process.exec('id -G'), which WASM child emulation does not support" }, "parallel/test-process-kill-null.js": { "category": "wasi-impossible", "reason": "sending host process signals is not supported in WASI" }, "parallel/test-process-load-env-file.js": { "category": "known-gap", "reason": "process.loadEnvFile() behavior is incomplete" }, "parallel/test-process-ppid.js": { "category": "known-gap", "reason": "process.ppid is stubbed and not wired to parent process IDs" }, @@ -7587,10 +7783,6 @@ "block_01_block_01": { "reason": "inherited: queueMicrotask argument validation/error codes are incomplete" } } }, - "parallel/test-quic-internal-endpoint-listen-defaults.js": { "category": "node-internals", "reason": "requires internal/quic/quic classes (non-public API)" }, - "parallel/test-quic-internal-endpoint-options.js": { "category": "node-internals", "reason": "requires internal/quic/quic classes (non-public API)" }, - "parallel/test-quic-internal-endpoint-stats-state.js": { "category": "node-internals", "reason": "requires internal/quic/quic and internal/quic/symbols" }, - "parallel/test-quic-internal-setcallbacks.js": { "category": "node-internals", "reason": "requires internalBinding('quic').setCallbacks" }, "parallel/test-readline-async-iterators-backpressure.js": { "category": "known-gap", "reason": "node:readline createInterface/async iterator API is not implemented" }, "parallel/test-readline-async-iterators-destroy.js": { "category": "known-gap", "reason": "node:readline createInterface/async iterator API is not implemented" }, "parallel/test-readline-async-iterators.js": { "category": "known-gap", "reason": "node:readline createInterface/async iterator API is not implemented" }, @@ -7744,7 +7936,6 @@ "parallel/test-repl-dynamic-import.js": { "category": "wasi-impossible", "reason": "REPL requires interactive terminal, not available in WASM" }, "parallel/test-repl-empty.js": { "category": "wasi-impossible", "reason": "REPL requires interactive terminal, not available in WASM" }, "parallel/test-repl-envvars.js": { "category": "node-internals", "reason": "uses --expose-internals and require('internal/repl')" }, - "parallel/test-repl-eval.js": { "category": "wasi-impossible", "reason": "REPL requires interactive terminal, not available in WASM" }, "parallel/test-repl-function-definition-edge-case.js": { "category": "wasi-impossible", "reason": "REPL requires interactive terminal, not available in WASM" }, "parallel/test-repl-harmony.js": { "category": "wasi-impossible", "reason": "REPL requires interactive terminal, not available in WASM" }, "parallel/test-repl-history-navigation.js": { "category": "node-internals", "reason": "uses --expose-internals and require('internal/repl')" }, @@ -7783,18 +7974,7 @@ "parallel/test-repl-strict-mode-previews.js": { "category": "wasi-impossible", "reason": "REPL requires interactive terminal, not available in WASM" }, "parallel/test-repl-syntax-error-handling.js": {}, "parallel/test-repl-tab-complete-nested-repls.js": { "category": "wasi-impossible", "reason": "REPL requires interactive terminal, not available in WASM" }, - "parallel/test-repl-tab-complete.js": { - "category": "wasi-impossible", - "reason": "REPL requires interactive terminal, not available in WASM", - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_test_tab_completion_for_require_relative_to_the_current_dire": {}, - "block_03_tab_completion_for_files_directories": {}, - "block_04_block_04": {} - } - }, + "parallel/test-repl-tab-complete.js": { "category": "wasi-impossible", "reason": "REPL requires interactive terminal, not available in WASM" }, "parallel/test-repl-tab.js": { "category": "wasi-impossible", "reason": "REPL requires interactive terminal, not available in WASM" }, "parallel/test-repl-throw-null-or-undefined.js": { "category": "wasi-impossible", "reason": "REPL requires interactive terminal, not available in WASM" }, "parallel/test-repl-top-level-await.js": { "category": "node-internals", "reason": "uses --expose-internals and require('internal/util/inspect')" }, @@ -7853,7 +8033,12 @@ "split": true, "subtests": { "test_00_expected_methods_are_on_t_assert": {}, - "test_01_t_assert_ok_correctly_parses_the_stacktrace": { "category": "known-gap", "reason": "node:test t.assert.ok does not preserve Node-compatible assertion stack formatting" } + "test_01_t_assert_ok_correctly_parses_the_stacktrace": { "category": "known-gap", "reason": "node:test t.assert.ok does not preserve Node-compatible assertion stack formatting" }, + "test_02_t_assert_called": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_03_t_assert_callcount": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_04_t_assert_nthcalledwith": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_05_t_assert_lastcalledwith": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_06_mock_matchers_count_towards_t_plan": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-runner-cli-concurrency.js": { @@ -7892,7 +8077,9 @@ "block_07_block_07": { "category": "wasi-impossible", "reason": "requires spawning a real Node.js CLI process with `--test`" }, "block_08_block_08": { "category": "wasi-impossible", "reason": "requires spawning a real Node.js CLI process with `--test`" }, "block_09_block_09": { "category": "wasi-impossible", "reason": "requires spawning a real Node.js CLI process with `--test`" }, - "block_10_block_10": { "category": "wasi-impossible", "reason": "requires spawning a real Node.js CLI process with `--test`" } + "block_10_block_10": { "category": "wasi-impossible", "reason": "requires spawning a real Node.js CLI process with `--test`" }, + "block_11_block_11": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_12_block_12": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-runner-concurrency.js": { @@ -7922,19 +8109,14 @@ "test_08_coverage_with_excluded_files": {}, "test_09_coverage_with_included_files": {}, "test_10_coverage_with_included_and_excluded_files": {}, - "test_11_correctly_prints_the_coverage_report_of_files_contained_in_p": {} - } - }, - "parallel/test-runner-custom-assertions.js": { - "split": true, - "subtests": { - "test_00_throws_if_name_is_not_a_string": {}, - "test_01_throws_if_fn_is_not_a_function": {}, - "test_02_invokes_a_custom_assertion_as_part_of_the_test_plan": {}, - "test_03_can_override_existing_assertions": {}, - "test_04_this_is_set_to_the_testcontext": {} + "test_11_coverage_does_not_include_untested_files_by_default": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_12_coverage_includes_untested_files": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_13_untested_files_honor_coverage_include_and_exclude_globs": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_14_correctly_prints_the_coverage_report_of_files_contained_in_p": {}, + "test_15_coverage_with_directory_and_file_named_file": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, + "parallel/test-runner-custom-assertions.js": { "split": false }, "parallel/test-runner-enable-source-maps-issue.js": {}, "parallel/test-runner-error-reporter.js": { "category": "unevaluated", @@ -7990,7 +8172,7 @@ "test_11_spy_functions_can_be_bound": {}, "test_12_mocks_prototype_methods_on_an_instance": {}, "test_13_spies_on_async_static_class_methods": {}, - "test_14_given_null_to_a_mock_method_it_throws_a_invalid_argument_err": {}, + "test_14_given_null_to_a_mock_method_it_throws_an_invalid_argument_er": {"category": "runnable", "reason": "carries 22.14.0 subtest test_14_given_null_to_a_mock_method_it_throws_a_invalid_argument_err"}, "test_15_it_should_throw_given_an_inexistent_property_on_a_object_ins": {}, "test_16_spy_functions_can_be_used_on_classes_inheritance": {}, "test_17_spy_functions_don_t_affect_the_prototype_chain": {}, @@ -8018,7 +8200,18 @@ "test_39_getter_fails_if_getter_options_set_to_false": {}, "test_40_setter_fails_if_setter_options_set_to_false": {}, "test_41_getter_fails_if_setter_options_is_true": {}, - "test_42_setter_fails_if_getter_options_is_true": {} + "test_42_setter_fails_if_getter_options_is_true": {}, + "test_43_spies_on_a_property": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_44_spies_on_a_property_without_providing_a_value": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_45_spies_on_a_symbol_property": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_46_changes_mocked_property_value_dynamically": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_47_mocks_property_value_to_undefined": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_48_resetaccesses_does_not_affect_property_value": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_49_restores_original_property_value": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_50_throws_if_setting_a_non_writable_property": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_51_throws_if_property_does_not_exist": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_52_throws_if_object_is_null": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_53_local_property_mocks_are_auto_restored_after_the_test_finish": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-runner-module-mocking.js": { @@ -8028,21 +8221,25 @@ "test_01_core_module_mocking_with_namedexports_option": { "category": "runnable" }, "test_02_cjs_mocking_with_namedexports_option": { "category": "runnable" }, "test_03_esm_mocking_with_namedexports_option": { "category": "runnable" }, - "test_04_modules_cannot_be_mocked_multiple_times_at_once": { "category": "runnable" }, - "test_05_mocks_are_automatically_restored": { "category": "runnable" }, - "test_06_mocks_can_be_restored_independently": { "category": "runnable" }, - "test_07_core_module_mocks_can_be_used_by_both_module_systems": { "category": "runnable" }, - "test_08_node_core_module_mocks_can_be_used_by_both_module_systems": { "category": "runnable" }, - "test_09_cjs_mocks_can_be_used_by_both_module_systems": { "category": "runnable" }, - "test_10_relative_paths_can_be_used_by_both_module_systems": { "category": "runnable" }, - "test_11_node_modules_can_be_used_by_both_module_systems": { "category": "known-gap", "reason": "WASM child emulation does not support --experimental-test-module-mocks CLI flag" }, - "test_12_file_imports_are_supported_in_esm_only": { "category": "runnable" }, - "test_13_mocked_modules_do_not_impact_unmocked_modules": { "category": "runnable" }, - "test_14_defaultexports_work_with_cjs_mocks_in_both_module_systems": { "category": "runnable" }, - "test_15_defaultexports_work_with_esm_mocks_in_both_module_systems": { "category": "runnable" }, - "test_16_wrong_import_syntax_should_throw_error_after_module_mocking": { "category": "known-gap", "reason": "WASM child emulation does not support --experimental-test-module-mocks/--experimental-default-type flags" }, - "test_17_should_throw_err_access_denied_when_permission_model_is_enab": { "category": "known-gap", "reason": "WASM child emulation does not support --permission/--experimental-test-module-mocks flags" }, - "test_18_should_work_when_allow_worker_is_passed_and_permission_model": { "category": "known-gap", "reason": "WASM child emulation does not support --permission/--allow-worker/--experimental-test-module-mocks flags" } + "test_04_json_mocking": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_05_modules_cannot_be_mocked_multiple_times_at_once": { "category": "runnable" }, + "test_06_mocks_are_automatically_restored": { "category": "runnable" }, + "test_07_mocks_can_be_restored_independently": { "category": "runnable" }, + "test_08_core_module_mocks_can_be_used_by_both_module_systems": { "category": "runnable" }, + "test_09_node_core_module_mocks_can_be_used_by_both_module_systems": { "category": "runnable" }, + "test_10_cjs_mocks_can_be_used_by_both_module_systems": { "category": "runnable" }, + "test_11_relative_paths_can_be_used_by_both_module_systems": { "category": "runnable" }, + "test_12_node_modules_can_be_used_by_both_module_systems": { "category": "known-gap", "reason": "WASM child emulation does not support --experimental-test-module-mocks CLI flag" }, + "test_13_file_imports_are_supported_in_esm_only": { "category": "runnable" }, + "test_14_mocked_modules_do_not_impact_unmocked_modules": { "category": "runnable" }, + "test_15_defaultexports_work_with_cjs_mocks_in_both_module_systems": { "category": "runnable" }, + "test_16_defaultexports_work_with_esm_mocks_in_both_module_systems": { "category": "runnable" }, + "test_17_exports_option_works_with_core_module_mocks_in_both_module_s": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_18_defaultexports_getter_works_in_both_module_systems": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_19_exports_default_getter_works_in_both_module_systems": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_20_exports_option_supports_default_for_cjs_mocks_in_both_module": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_21_exports_option_supports_default_for_esm_mocks_in_both_module": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_22_wrong_import_syntax_should_throw_error_after_module_mocking": { "category": "known-gap", "reason": "WASM child emulation does not support --experimental-test-module-mocks/--experimental-default-type flags" } } }, "parallel/test-runner-no-isolation-filtering.js": { @@ -8051,8 +8248,10 @@ "split": true, "subtests": { "test_00_works_with_test_only": { "category": "known-gap", "reason": "WASM child emulation does not support Node.js --test TAP filtering behavior" }, - "test_01_works_with_test_name_pattern": { "category": "known-gap", "reason": "WASM child emulation does not support Node.js --test TAP filtering behavior" }, - "test_02_works_with_test_skip_pattern": { "category": "known-gap", "reason": "WASM child emulation does not support Node.js --test TAP filtering behavior" } + "test_01_works_without_test_only": {}, + "test_02_works_with_test_name_pattern": { "category": "known-gap", "reason": "WASM child emulation does not support Node.js --test TAP filtering behavior" }, + "test_03_filtered_suites_with_an_async_build_do_not_leave_cancelled_t": {}, + "test_04_works_with_test_skip_pattern": { "category": "known-gap", "reason": "WASM child emulation does not support Node.js --test TAP filtering behavior" } } }, "parallel/test-runner-option-validation.js": {}, @@ -8077,7 +8276,8 @@ "test_02_setresolvesnapshotpath": {}, "test_03_setdefaultsnapshotserializers": {}, "test_04_t_assert_snapshot": {}, - "test_05_snapshots_from_multiple_files_isolation_none": {} + "test_05_special_characters_are_allowed": {}, + "test_06_snapshots_from_multiple_files_isolation_none": {} } }, "parallel/test-runner-string-to-regexp.js": { "category": "node-internals", "reason": "requires internal/test_runner/utils.convertStringToRegExp" }, @@ -8089,13 +8289,7 @@ "test_01_test_01": {} } }, - "parallel/test-runner-test-fullname.js": { - "split": true, - "subtests": { - "test_00_suite": {}, - "test_01_test_01": {} - } - }, + "parallel/test-runner-test-fullname.js": { "split": false }, "parallel/test-runner-typechecking.js": {}, "parallel/test-runner-wait-for.js": { "split": true, @@ -8156,36 +8350,6 @@ "parallel/test-signal-handler.js": { "category": "wasi-impossible", "reason": "process.kill signal handling is not supported in WASI" }, "parallel/test-signal-safety.js": { "category": "node-internals", "reason": "requires internal/test/binding signal_wrap internalBinding" }, "parallel/test-signal-unregister.js": { "category": "wasi-impossible", "reason": "child process signal termination semantics are not available in WASI" }, - "parallel/test-single-executable-blob-config-errors.js": { - "category": "wasi-impossible", - "reason": "Node.js SEA packaging, not available in WASM", - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {}, - "block_03_block_03": {}, - "block_04_block_04": {}, - "block_05_block_05": {}, - "block_06_block_06": {}, - "block_07_block_07": {}, - "block_08_block_08": {}, - "block_09_block_09": {}, - "block_10_block_10": {} - } - }, - "parallel/test-single-executable-blob-config.js": { - "category": "wasi-impossible", - "reason": "Node.js SEA packaging, not available in WASM", - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {}, - "block_03_block_03": {}, - "block_04_block_04": {} - } - }, "parallel/test-snapshot-api.js": { "category": "engine-difference", "reason": "depends on V8 startup snapshot APIs and --build-snapshot behavior unavailable in QuickJS", @@ -8419,54 +8583,57 @@ }, "parallel/test-source-map-cjs-require-cache.js": { "category": "known-gap", "reason": "asserts a CJS module's source map stays findable until GC reclaims the module; QuickJS reference counting reclaims the module as soon as its require.cache and module.children references are dropped, so the pre-GC precondition cannot hold — a tracing-GC vs refcount engine difference" }, "parallel/test-spawn-cmd-named-pipe.js": { "category": "wasi-impossible", "reason": "Windows-only named pipe/cmd shell behavior is not available in WASI" }, - "parallel/test-sqlite-custom-functions.js": {}, - "parallel/test-sqlite-data-types.js": {}, - "parallel/test-sqlite-database-sync.js": { + "parallel/test-sqlite-custom-functions.js": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "parallel/test-sqlite-data-types.js": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "parallel/test-sqlite-named-parameters.js": { "split": true, "subtests": { - "test_00_databasesync_constructor": {}, - "test_01_databasesync_prototype_open": {}, - "test_02_databasesync_prototype_close": {}, - "test_03_databasesync_prototype_prepare": {}, - "test_04_databasesync_prototype_exec": {} + "test_00_named_parameters": {}, + "test_01_statement_prototype_setallowunknownnamedparameters": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_02_options_allowunknownnamedparameters": { "category": "runnable" } } }, - "parallel/test-sqlite-named-parameters.js": {}, "parallel/test-sqlite-session.js": { "split": true, "subtests": { "test_00_creating_and_applying_a_changeset": {}, "test_01_database_createsession_closed_database_results_in_exception": {}, "test_02_session_changeset_closed_database_results_in_exception": {}, - "test_03_database_applychangeset_closed_database_results_in_exception": {}, - "test_04_database_createsession_use_table_option_to_track_specific_ta": {}, - "test_05_conflict_resolution": { "category": "known-gap", "reason": "node:sqlite applyChangeset conflict-resolution behavior is incomplete" }, - "test_06_database_createsession_filter_changes": {}, - "test_07_database_createsession_specify_other_database": {}, - "test_08_database_createsession_wrong_arguments": {}, - "test_09_database_applychangeset_wrong_arguments": {}, - "test_10_session_patchset": {}, - "test_11_session_close_using_session_after_close_throws_exception": {}, - "test_12_session_close_after_closing_database_throws_exception": {}, - "test_13_session_close_closing_twice": {} + "test_03_session_methods_reopened_database_results_in_exception": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_04_database_applychangeset_closed_database_results_in_exception": {}, + "test_05_database_createsession_use_table_option_to_track_specific_ta": {}, + "test_06_conflict_resolution": { "category": "known-gap", "reason": "node:sqlite applyChangeset conflict-resolution behavior is incomplete" }, + "test_07_filter_handler_throws": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_08_database_applychangeset_changeset_detached_by_filter": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_09_database_applychangeset_changeset_detached_by_sql_function": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_10_database_createsession_filter_changes": {}, + "test_11_database_createsession_specify_other_database": {}, + "test_12_database_createsession_wrong_arguments": {}, + "test_13_database_applychangeset_wrong_arguments": {}, + "test_14_database_applychangeset_malformed_changeset_returns_sqlite_c": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_15_session_patchset": {}, + "test_16_session_close_using_session_after_close_throws_exception": {}, + "test_17_session_close_after_closing_database_throws_exception": {}, + "test_18_session_close_closing_twice": {}, + "test_19_session_close_and_dispose_while_generating_changes_throws_ex": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_20_session_symbol_dispose_closed_session_is_a_no_op": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_21_session_symbol_dispose_after_closing_database_is_a_no_op": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_22_session_close_from_a_callback": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_23_session_keeps_its_database_alive_after_the_db_handle_is_drop": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_24_session_survives_gc_during_an_authorizer_callback": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_25_session_survives_gc_during_a_sqlite_db_query_subscriber": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_26_session_supports_erm": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_27_concurrent_applychangeset_with_workers": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, - "parallel/test-sqlite-statement-sync.js": { + "parallel/test-sqlite-transactions.js": {}, + "parallel/test-sqlite-typed-array-and-data-view.js": { "split": true, "subtests": { - "test_00_statementsync_constructor": {}, - "test_01_statementsync_prototype_get": {}, - "test_02_statementsync_prototype_all": {}, - "test_03_statementsync_prototype_iterate": {}, - "test_04_statementsync_prototype_run": {}, - "test_05_statementsync_prototype_sourcesql": {}, - "test_06_statementsync_prototype_expandedsql": { "category": "known-gap", "reason": "node:sqlite rejects mixed named+positional parameters where Node accepts them" }, - "test_07_statementsync_prototype_setreadbigints": {}, - "test_08_statementsync_prototype_setallowbarenamedparameters": {} + "test_00_statement_with_typedarray_dataview": {}, + "test_01_statement_with_arraybuffer_and_sharedarraybuffer": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" } } }, - "parallel/test-sqlite-transactions.js": {}, - "parallel/test-sqlite-typed-array-and-data-view.js": {}, "parallel/test-sqlite.js": { "split": true, "subtests": { @@ -8475,7 +8642,10 @@ "test_02_in_memory_databases_are_supported": {}, "test_03_sqlite_constants_are_defined": {}, "test_04_pragmas_are_supported": {}, - "test_05_math_functions_are_enabled": {} + "test_05_buffer_is_supported_as_the_database_path": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_06_url_is_supported_as_the_database_path": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_07_uri_query_params": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_08_sql_apis_enabled_at_build_time": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" } } }, "parallel/test-stack-size-limit.js": { "category": "wasi-impossible", "reason": "requires a real subprocess with independent stack-size overflow handling" }, @@ -8489,15 +8659,7 @@ "block_02_block_02": { "category": "engine-difference", "reason": "QuickJS does not mirror V8's legacy RegExp static properties initialization" } } }, - "parallel/test-startup-large-pages.js": { - "category": "unevaluated", - "reason": "newly discovered, not yet evaluated", - "split": true, - "subtests": { - "block_00_block_00": { "category": "engine-difference", "reason": "--use-largepages is a V8 startup flag not applicable to QuickJS/WASM" }, - "block_01_block_01": { "category": "engine-difference", "reason": "--use-largepages is a V8 startup flag not applicable to QuickJS/WASM" } - } - }, + "parallel/test-startup-large-pages.js": { "category": "engine-difference", "reason": "--use-largepages is a V8 startup flag not applicable to QuickJS/WASM" }, "parallel/test-stdin-child-proc.js": {}, "parallel/test-stdin-from-file-spawn.js": { "category": "wasi-impossible", "reason": "test is gated to Linux/macOS/Windows shell behavior and excludes WASI" }, "parallel/test-stdin-from-file.js": {}, @@ -8526,7 +8688,6 @@ } }, "parallel/test-stream-base-prototype-accessors-enumerability.js": { "category": "node-internals", "reason": "requires internalBinding('tty_wrap').TTY" }, - "parallel/test-stream-base-typechecking.js": {}, "parallel/test-stream-catch-rejections.js": { "split": true, "subtests": { @@ -8534,19 +8695,6 @@ "block_01_block_01": {} } }, - "parallel/test-stream-compose-operator.js": { - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {}, - "block_03_block_03": {}, - "block_04_block_04": {}, - "block_05_block_05": {}, - "block_06_block_06": {}, - "block_07_block_07": {} - } - }, "parallel/test-stream-compose.js": { "split": true, "subtests": { @@ -8571,7 +8719,8 @@ "block_18_block_18": {}, "block_19_block_19": {}, "block_20_block_20": {}, - "block_21_block_21": {} + "block_21_block_21": {}, + "block_22_skipped_if_canpushmore_returns_false_on_the_final_done_true_": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-stream-duplex-readable-writable.js": { @@ -8605,50 +8754,52 @@ } }, "parallel/test-stream-finished.js": { + "category": "runnable", "split": true, "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {}, - "block_03_block_03": {}, - "block_04_block_04": {}, - "block_05_block_05": {}, - "block_06_block_06": {}, - "block_07_block_07": {}, + "block_00_block_00": { "category": "runnable" }, + "block_01_block_01": { "category": "runnable" }, + "block_02_block_02": { "category": "runnable" }, + "block_03_block_03": { "category": "runnable" }, + "block_04_block_04": { "category": "runnable" }, + "block_05_block_05": { "category": "runnable" }, + "block_06_block_06": { "category": "runnable" }, + "block_07_block_07": { "category": "runnable" }, "block_08_block_08": { "category": "known-gap", "reason": "stream edge case not yet handled" }, - "block_09_block_09": {}, - "block_10_block_10": {}, - "block_11_block_11": {}, - "block_12_block_12": {}, - "block_13_block_13": {}, - "block_14_test_faulty_input_values_and_options": {}, - "block_15_test_that_calling_returned_function_removes_listeners": {}, - "block_16_block_16": {}, - "block_17_block_17": {}, - "block_18_block_18": {}, - "block_19_block_19": {}, - "block_20_block_20": {}, + "block_09_block_09": { "category": "runnable" }, + "block_10_block_10": { "category": "runnable" }, + "block_11_block_11": { "category": "runnable" }, + "block_12_block_12": { "category": "runnable" }, + "block_13_block_13": { "category": "runnable" }, + "block_14_test_faulty_input_values_and_options": { "category": "runnable" }, + "block_15_test_that_calling_returned_function_removes_listeners": { "category": "runnable" }, + "block_16_block_16": { "category": "runnable" }, + "block_17_block_17": { "category": "runnable" }, + "block_18_block_18": { "category": "runnable" }, + "block_19_block_19": { "category": "runnable" }, + "block_20_block_20": { "category": "runnable" }, "block_21_block_21": { "category": "known-gap", "reason": "stream edge case not yet handled" }, "block_22_block_22": { "category": "known-gap", "reason": "stream edge case not yet handled" }, "block_23_block_23": { "category": "known-gap", "reason": "stream edge case not yet handled" }, "block_24_block_24": { "category": "known-gap", "reason": "stream edge case not yet handled" }, - "block_25_block_25": {}, - "block_26_block_26": {}, - "block_27_block_27": {}, - "block_28_block_28": {}, - "block_29_block_29": {}, - "block_30_block_30": {}, - "block_31_block_31": {}, - "block_32_block_32": {}, - "block_33_block_33": {}, + "block_25_block_25": { "category": "runnable" }, + "block_26_block_26": { "category": "runnable" }, + "block_27_block_27": { "category": "runnable" }, + "block_28_block_28": { "category": "runnable" }, + "block_29_block_29": { "category": "runnable" }, + "block_30_block_30": { "category": "runnable" }, + "block_31_block_31": { "category": "runnable" }, + "block_32_block_32": { "category": "runnable" }, + "block_33_block_33": { "category": "runnable" }, "block_34_block_34": { "category": "known-gap", "reason": "stream.finished hangs in destroyed-stream callback ordering path" }, - "block_35_block_35": {}, - "block_36_block_36": {}, - "block_37_block_37": {}, - "block_38_block_38": {}, - "block_39_block_39": {}, - "block_40_block_40": {}, - "block_41_block_41": { "category": "known-gap", "reason": "stream edge case not yet handled" } + "block_35_block_35": { "category": "known-gap", "reason": "Node 26.13.1 gap: HTTP response aborted/error callbacks after serverRes.destroy() time out" }, + "block_36_block_36": { "category": "runnable", "reason": "carries 22.14.0 subtest block_35_block_35 (writable aborted/close ordering)" }, + "block_37_block_37": { "category": "runnable" }, + "block_38_block_38": { "category": "runnable" }, + "block_39_block_39": { "category": "runnable" }, + "block_40_block_40": { "category": "runnable", "reason": "carries 22.14.0 subtest block_39_block_39" }, + "block_41_block_41": { "category": "runnable" }, + "block_42_block_42": { "category": "known-gap", "reason": "stream edge case not yet handled" } } }, "parallel/test-stream-pipe-unpipe-streams.js": { @@ -8665,23 +8816,23 @@ "subtests": { "block_00_block_00": {}, "block_01_block_01": {}, - "block_02_block_02": {}, + "block_02_block_02": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, "block_03_block_03": {}, "block_04_block_04": {}, "block_05_block_05": {}, "block_06_block_06": {}, "block_07_block_07": {}, - "block_08_block_08": { "category": "wasi-impossible", "reason": "requires full-duplex HTTP request/response streaming semantics not provided by wasi:http" }, - "block_09_block_09": {}, + "block_08_block_08": { "category": "runnable" }, + "block_09_block_09": { "category": "wasi-impossible", "reason": "requires full-duplex HTTP request/response streaming semantics not provided by wasi:http" }, "block_10_block_10": {}, - "block_11_block_11": {}, + "block_11_block_11": { "category": "runnable" }, "block_12_block_12": {}, "block_13_block_13": {}, "block_14_block_14": {}, "block_15_block_15": {}, "block_16_block_16": {}, "block_17_block_17": {}, - "block_18_block_18": {}, + "block_18_block_18": {"category": "runnable", "reason": "carries 22.14.0 subtest block_17_block_17"}, "block_19_block_19": {}, "block_20_block_20": {}, "block_21_block_21": {}, @@ -8708,21 +8859,21 @@ "block_42_block_42": {}, "block_43_block_43": {}, "block_44_block_44": {}, - "block_45_block_45": {}, + "block_45_block_45": {"category": "runnable", "reason": "carries 22.14.0 subtest block_44_block_44"}, "block_46_block_46": {}, "block_47_block_47": {}, "block_48_block_48": {}, "block_49_block_49": {}, - "block_50_block_50": {}, + "block_50_block_50": {"category": "runnable", "reason": "carries 22.14.0 subtest block_49_block_49"}, "block_51_block_51": {}, "block_52_block_52": {}, "block_53_block_53": {}, "block_54_block_54": {}, "block_55_block_55": {}, "block_56_block_56": {}, - "block_57_block_57": {}, + "block_57_block_57": { "category": "runnable", "reason": "carries 22.14.0 subtest block_56_block_56" }, "block_58_block_58": {}, - "block_59_block_59": {}, + "block_59_block_59": {"category": "runnable", "reason": "carries 22.14.0 subtest block_58_block_58"}, "block_60_block_60": {}, "block_61_block_61": {}, "block_62_block_62": {}, @@ -8738,11 +8889,15 @@ "block_72_block_72": {}, "block_73_block_73": {}, "block_74_block_74": {}, - "block_75_block_75": { "category": "known-gap", "reason": "stream edge case not yet handled" }, - "block_76_block_76": {}, + "block_75_block_75": {}, + "block_76_block_76": { "category": "known-gap", "reason": "stream edge case not yet handled" }, "block_77_block_77": {}, - "block_78_block_78": {}, - "block_79_block_79": {} + "block_78_block_78": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_79_block_79": {}, + "block_80_block_80": { "category": "runnable" }, + "block_81_block_81": {"category": "runnable", "reason": "carries 22.14.0 subtest block_79_block_79"}, + "block_82_block_82": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_83_block_83": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-stream-preprocess.js": {}, @@ -8778,7 +8933,6 @@ "block_02_block_02": {} } }, - "parallel/test-stream-readable-to-web.js": { "category": "known-gap", "reason": "Readable.toWeb() with crypto randomBytes pressure can trap in web_crypto random_bytes" }, "parallel/test-stream-readable-with-unimplemented-_read.js": {}, "parallel/test-stream-transform-split-highwatermark.js": { "split": true, @@ -8810,8 +8964,14 @@ "parallel/test-stream-wrap.js": { "category": "node-internals", "reason": "requires --expose-internals plus internal/js_stream_socket and internalBinding('stream_wrap')" }, "parallel/test-stream-writable-change-default-encoding.js": {}, "parallel/test-stream-writable-decoded-encoding.js": { + "split": true, "subtests": { - "block_02_block_02": {} + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {} } }, "parallel/test-stream-writable-destroy.js": { @@ -8906,50 +9066,31 @@ } }, "parallel/test-structuredClone-global.js": { - "split": true, "isolateBlockSubtests": true, + "split": true, "subtests": { - "block_00_statement_00": { - "category": "node-internals", - "reason": "Common test harness setup only; no public API assertion" - }, - "block_01_statement_01": { - "category": "runnable" - }, - "block_02_statement_02": { - "category": "runnable" - }, - "block_03_statement_03": { - "category": "runnable" - }, - "block_04_statement_04": { - "category": "runnable" - }, - "block_05_statement_05": { - "category": "runnable" - }, - "block_06_statement_06": { - "category": "runnable" - }, - "block_07_options_can_be_null_or_undefined": { - "category": "runnable" - }, - "block_08_statement_08": { - "category": "runnable" - }, - "block_09_transfer_can_be_null_or_undefined": { - "category": "runnable" - }, - "block_10_transferables_or_its_subclasses_should_be_received_with_its_": { - "category": "known-gap", - "reason": "Usable stream transfer is not implemented; prototype-only stream shells are not supported" - }, - "block_11_block_11": { - "category": "runnable" - }, - "block_12_statement_12": { - "category": "runnable" - } + "block_00_statement_00": { "category": "node-internals", "reason": "Common test harness setup only; no public API assertion" }, + "block_01_statement_01": { "category": "runnable" }, + "block_02_statement_02": { "category": "runnable" }, + "block_03_statement_03": { "category": "runnable" }, + "block_04_statement_04": { "category": "runnable" }, + "block_05_statement_05": { "category": "runnable" }, + "block_06_statement_06": { "category": "runnable" }, + "block_07_options_can_be_null_or_undefined": { "category": "runnable" }, + "block_08_statement_08": { "category": "runnable" }, + "block_09_transfer_can_be_null_or_undefined": { "category": "runnable" }, + "block_10_primitives_clone_to_themselves": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_11_statement_11": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_12_statement_12": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_13_statement_13": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_14_statement_14": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_15_0_is_preserved": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_16_symbols_are_not_cloneable_and_must_throw": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_17_transferables_or_its_subclasses_should_be_received_with_its_": { "category": "known-gap", "reason": "Usable stream transfer is not implemented; prototype-only stream shells are not supported" }, + "block_18_statement_18": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_19_transfer_can_be_iterable": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_20_block_20": { "category": "runnable" }, + "block_21_statement_21": { "category": "runnable" } } }, "parallel/test-sync-io-option.js": { "category": "known-gap", "reason": "--trace-sync-io diagnostics are not implemented in execPath emulation" }, @@ -9083,15 +9224,7 @@ "parallel/test-tls-error-servername.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-error-stack.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-exportkeyingmaterial.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, - "parallel/test-tls-external-accessor.js": { - "category": "wasi-impossible", - "reason": "tls is not supported in WebAssembly environment", - "split": true, - "subtests": { - "block_00_ensure_accessing_external_doesn_t_hit_an_assert_in_the_acces": {}, - "block_01_block_01": {} - } - }, + "parallel/test-tls-external-accessor.js": { "category": "wasi-impossible", "reason": "tls is not supported in WebAssembly environment" }, "parallel/test-tls-fast-writing.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-finished.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-friendly-error-message.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, @@ -9101,14 +9234,12 @@ "parallel/test-tls-getprotocol.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-handshake-error.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-handshake-exception.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, - "parallel/test-tls-handshake-nohang.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-hello-parser-failure.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-honorcipherorder.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-inception.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-interleave.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-invalid-pfx.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-invoke-queued.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, - "parallel/test-tls-ip-servername-deprecation.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-js-stream.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-junk-closes-server.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-junk-server.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, @@ -9116,7 +9247,6 @@ "parallel/test-tls-keyengine-invalid-arg-type.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-keyengine-unsupported.js": { "category": "node-internals", "reason": "uses --expose-internals to monkey-patch internalBinding('crypto').SecureContext" }, "parallel/test-tls-keylog-tlsv13.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, - "parallel/test-tls-legacy-deprecated.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-legacy-pfx.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-max-send-fragment.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-min-max-version.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, @@ -9152,9 +9282,6 @@ "parallel/test-tls-root-certificates.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-secure-context-usage-order.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-secure-session.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, - "parallel/test-tls-securepair-fiftharg.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, - "parallel/test-tls-securepair-leak.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, - "parallel/test-tls-securepair-server.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-server-capture-rejection.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-server-connection-server.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-server-failed-handshake-emits-clienterror.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, @@ -9168,10 +9295,17 @@ } }, "parallel/test-tls-server-setkeycert.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, - "parallel/test-tls-server-setoptions-clientcertengine.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-server-verify.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-session-cache.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, - "parallel/test-tls-set-ciphers-error.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, + "parallel/test-tls-set-ciphers-error.js": { + "category": "wasi-impossible", + "reason": "tls/https is not supported in WebAssembly environment", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_case_insensitive_starting_with_openssl_4_0": {} + } + }, "parallel/test-tls-set-ciphers.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-set-encoding.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-set-secure-context.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, @@ -9229,40 +9363,21 @@ "parallel/test-tls-writewrap-leak.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tls-zero-clear-in.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "parallel/test-tojson-perf_hooks.js": { "category": "known-gap", "reason": "perf_hooks performance.toJSON() does not expose nodeTiming yet" }, - "parallel/test-trace-atomic-deprecation.js": { "category": "known-gap", "reason": "execPath child emulation does not support --trace-atomics-wait CLI behavior" }, - "parallel/test-trace-atomics-wait.js": { "category": "wasi-impossible", "reason": "requires Atomics.wait tracing across worker threads" }, "parallel/test-trace-env-stack.js": { "category": "known-gap", "reason": "--trace-env-{js,native}-stack diagnostics are not implemented in execPath emulation" }, "parallel/test-trace-env.js": { "category": "known-gap", "reason": "--trace-env diagnostics are not implemented in execPath emulation" }, - "parallel/test-trace-events-all.js": {}, "parallel/test-trace-events-api-worker-disabled.js": { "category": "wasi-impossible", "reason": "Requires real Worker execution; constructing an inert Worker is not supported" }, - "parallel/test-trace-events-api.js": { "category": "node-internals", "reason": "uses --expose-internals and internalBinding('trace_events')" }, "parallel/test-trace-events-async-hooks-dynamic.js": { "category": "known-gap", "reason": "trace_events dynamic file output for node.async_hooks is incomplete" }, - "parallel/test-trace-events-async-hooks-worker.js": { "category": "wasi-impossible", "reason": "requires worker_threads trace propagation" }, - "parallel/test-trace-events-async-hooks.js": {}, "parallel/test-trace-events-binding.js": { "category": "node-internals", "reason": "requires internalBinding('trace_events')" }, - "parallel/test-trace-events-bootstrap.js": {}, "parallel/test-trace-events-category-used.js": { "category": "node-internals", "reason": "uses --expose-internals and internalBinding('trace_events')" }, "parallel/test-trace-events-console.js": { "category": "known-gap", "reason": "trace_events node.console category output is incomplete" }, "parallel/test-trace-events-dynamic-enable-workers-disabled.js": { "category": "wasi-impossible", "reason": "inspector NodeTracing domain is unavailable in WASM" }, "parallel/test-trace-events-dynamic-enable.js": { "category": "wasi-impossible", "reason": "inspector NodeTracing domain is unavailable in WASM" }, - "parallel/test-trace-events-environment.js": { "category": "known-gap", "reason": "trace_events node.environment category output is incomplete" }, - "parallel/test-trace-events-file-pattern.js": {}, "parallel/test-trace-events-fs-async.js": { "category": "known-gap", "reason": "execPath child emulation does not yet support trace-events CLI arg parsing used by -e runs" }, - "parallel/test-trace-events-fs-sync.js": { "category": "known-gap", "reason": "execPath child emulation does not yet support trace-events CLI arg parsing used by -e runs" }, "parallel/test-trace-events-get-category-enabled-buffer.js": { "category": "node-internals", "reason": "uses --expose-internals and internalBinding('trace_events')" }, - "parallel/test-trace-events-http.js": {}, "parallel/test-trace-events-metadata.js": {}, - "parallel/test-trace-events-net-abstract-socket.js": { "category": "wasi-impossible", "reason": "requires Linux abstract UNIX socket tracing" }, - "parallel/test-trace-events-net.js": {}, - "parallel/test-trace-events-none.js": {}, - "parallel/test-trace-events-process-exit.js": {}, - "parallel/test-trace-events-promises.js": {}, - "parallel/test-trace-events-threadpool.js": { "category": "wasi-impossible", "reason": "requires libuv threadpool trace categories" }, - "parallel/test-trace-events-v8.js": {}, - "parallel/test-trace-events-vm.js": {}, "parallel/test-trace-events-worker-metadata-with-name.js": { "category": "wasi-impossible", "reason": "Requires real Worker execution; constructing an inert Worker is not supported" @@ -9507,7 +9622,6 @@ "parallel/test-vm-timeout-escape-promise.js": { "category": "known-gap", "reason": "timeout enforcement with microtaskMode='afterEvaluate' is incomplete" }, "parallel/test-vm-timeout.js": { "category": "known-gap", "reason": "vm timeout interrupt is surfaced as a wasm trap instead of ERR_SCRIPT_EXECUTION_TIMEOUT" }, "parallel/test-warn-sigprof.js": { "category": "wasi-impossible", "reason": "inspector/debugger is not available in WASM" }, - "parallel/test-warn-stream-wrap.js": { "category": "node-internals", "reason": "requires deprecated private _stream_wrap module" }, "parallel/test-webcrypto-constructors.js": { "split": true, "subtests": { @@ -9529,7 +9643,9 @@ "block_15_test_subtlecrypto_prototype_exportkey": {}, "block_16_test_subtlecrypto_prototype_wrapkey": {}, "block_17_test_subtlecrypto_prototype_unwrapkey": {}, - "block_18_block_18": {} + "block_18_test_subtlecrypto_supports": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_19_test_subtlecrypto_prototype_getpublickey": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_20_block_20": { "category": "runnable", "reason": "carries 22.14.0 subtest block_18_block_18" } } }, "parallel/test-webcrypto-cryptokey-workers.js": { "category": "wasi-impossible", "reason": "requires Worker threads with structured clone of CryptoKey" }, @@ -9543,7 +9659,8 @@ "block_00_test_ecdh_bit_derivation": { "category": "known-gap", "reason": "WebCrypto ECDH P-521 deriveBits is not implemented" }, "block_01_test_hkdf_bit_derivation": {}, "block_02_test_pbkdf2_bit_derivation": {}, - "block_03_test_x25519_and_x448_bit_derivation": { "category": "known-gap", "reason": "WebCrypto X25519/X448 deriveBits is not implemented" } + "block_03_test_pbkdf2_rejects_iteration_counts_beyond_the_native_signe": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_04_test_x25519_and_x448_bit_derivation": { "category": "known-gap", "reason": "WebCrypto X25519/X448 deriveBits is not implemented" } } }, "parallel/test-webcrypto-derivekey-cfrg.js": { "category": "known-gap", "reason": "X25519/X448 deriveKey compatibility is incomplete" }, @@ -9574,10 +9691,9 @@ "parallel/test-webcrypto-encrypt-decrypt.js": { "split": true, "subtests": { - "block_00_test_encrypt_decrypt_rsa_oaep": {}, - "block_01_test_encrypt_decrypt_aes_ctr": {}, - "block_02_test_encrypt_decrypt_aes_cbc": {}, - "block_03_test_encrypt_decrypt_aes_gcm": {} + "block_00_test_encrypt_decrypt_aes_ctr": {}, + "block_01_test_encrypt_decrypt_aes_cbc": {}, + "block_02_test_encrypt_decrypt_aes_gcm": {} } }, "parallel/test-webcrypto-export-import-cfrg.js": { "category": "known-gap", "reason": "OKP (Ed/X) key import/export compatibility is incomplete" }, @@ -9595,10 +9711,12 @@ "split": true, "subtests": { "block_00_block_00": {}, - "block_01_import_export_hmac_secret_key": {}, - "block_02_import_export_aes_secret_key": {}, - "block_03_import_export_rsa_key_pairs": {}, - "block_04_import_export_ec_key_pairs": {} + "block_01_hmac_non_byte_key_lengths": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "block_02_import_export_hmac_secret_key": {}, + "block_03_import_export_aes_secret_key": {}, + "block_04_import_export_rsa_key_pairs": {}, + "block_05_import_export_ec_key_pairs": {}, + "block_06_block_06": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-webcrypto-getRandomValues.js": {}, @@ -9609,12 +9727,13 @@ "subtests": { "block_00_test_invalid_algorithms": { "reason": "requires internal/crypto/util" }, "block_01_test_bad_usages": { "reason": "requires internal/crypto/util" }, - "block_02_test_rsa_key_generation": { "reason": "requires internal/crypto/util" }, - "block_03_test_ec_key_generation": { "reason": "requires internal/crypto/util" }, - "block_04_test_aes_key_generation": { "reason": "requires internal/crypto/util" }, - "block_05_test_hmac_key_generation": { "reason": "requires internal/crypto/util" }, - "block_06_block_06": { "reason": "requires internal/crypto/util" }, - "block_07_test_okp_key_generation": { "reason": "requires internal/crypto/util" } + "block_02_test_cryptokeypair_prototype": {}, + "block_03_test_rsa_key_generation": { "reason": "requires internal/crypto/util" }, + "block_04_test_ec_key_generation": { "reason": "requires internal/crypto/util" }, + "block_05_test_aes_key_generation": { "reason": "requires internal/crypto/util" }, + "block_06_test_hmac_key_generation": { "reason": "requires internal/crypto/util" }, + "block_07_block_07": { "reason": "requires internal/crypto/util" }, + "block_08_test_okp_key_generation": { "reason": "requires internal/crypto/util" } } }, "parallel/test-webcrypto-random.js": { @@ -9637,11 +9756,21 @@ "block_01_test_sign_verify_rsa_pss": {}, "block_02_test_sign_verify_ecdsa": {}, "block_03_test_sign_verify_hmac": {}, - "block_04_test_sign_verify_ed25519": {}, - "block_05_test_sign_verify_ed448": {} + "block_04_test_sign_verify_ed25519": {} + } + }, + "parallel/test-webcrypto-util.js": { + "category": "node-internals", + "reason": "requires --expose-internals and internal/crypto/util", + "split": true, + "subtests": { + "block_00_operator_yields_a_negative_int32_for_inputs_like_0x80_0x00_0": {}, + "block_01_block_01": {}, + "block_02_refs_https_github_com_web_platform_tests_wpt_pull_57614_pull": {}, + "block_03_block_03": {}, + "block_04_block_04": {} } }, - "parallel/test-webcrypto-util.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/util" }, "parallel/test-webcrypto-webidl.js": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl", @@ -9650,31 +9779,34 @@ "block_00_required_arguments_length": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, "block_01_boolean": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, "block_02_https_webidl_spec_whatwg_org_abstract_opdef_converttoint": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_03_domstring": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_04_object": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_05_uint8array": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_06_buffersource": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_07_cryptokey": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_08_algorithmidentifier_union_for_object_or_domstring": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_09_jsonwebkey": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_10_keyformat": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_11_keyusage": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_12_algorithm": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_13_rsahashedkeygenparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_14_rsahashedimportparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_15_rsapssparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_16_rsaoaepparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_17_eckeyimportparams_eckeygenparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_18_ecdsaparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, - "block_19_hmackeygenparams_hmacimportparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, - "block_20_aeskeygenparams_aesderivedkeyparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, - "block_21_hkdfparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, - "block_22_pbkdf2params": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, - "block_23_aescbcparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, - "block_24_aesgcmparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, - "block_25_aesctrparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, - "block_26_ecdhkeyderiveparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, - "block_27_ed448params": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" } + "block_03_enforcerange_integer_dictionary_members": {}, + "block_04_domstring": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_05_object": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_06_uint8array": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_07_buffersource": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_08_cryptokey": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_09_algorithmidentifier_union_for_object_or_domstring": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_10_jsonwebkey": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_11_keyformat": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_12_keyusage": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_13_algorithm": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_14_rsahashedkeygenparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_15_rsahashedimportparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_16_rsapssparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_17_rsaoaepparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_18_eckeyimportparams_eckeygenparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_19_ecdsaparams": { "category": "node-internals", "reason": "requires --expose-internals and internal/crypto/webidl" }, + "block_20_hmackeygenparams_hmacimportparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, + "block_21_aeskeygenparams_aesderivedkeyparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, + "block_22_hkdfparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, + "block_23_pbkdf2params": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, + "block_24_argon2params": {}, + "block_25_aescbcparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, + "block_26_aeadparams": {}, + "block_27_aesctrparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, + "block_28_ecdhkeyderiveparams": { "reason": "inherited: requires --expose-internals and internal/crypto/webidl" }, + "block_29_contextparams": {}, + "block_30_argon2params": {} } }, "parallel/test-webcrypto-wrap-unwrap.js": { "category": "known-gap", "reason": "WebCrypto wrapKey()/unwrapKey usage validation and algorithm handling are incomplete" }, @@ -9682,14 +9814,17 @@ "parallel/test-webstorage.js": { "split": true, "subtests": { - "test_00_disabled_without_experimental_webstorage": { "category": "runnable" }, - "test_01_emits_a_warning_when_used": { "category": "known-gap", "reason": "common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags" }, - "test_02_storage_instances_cannot_be_created_in_userland": { "category": "known-gap", "reason": "common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags" }, - "test_03_sessionstorage_is_not_persisted": { "category": "known-gap", "reason": "common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags" }, - "test_04_localstorage_throws_without_localstorage_file": { "category": "known-gap", "reason": "common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags" }, + "test_00_storage_instances_cannot_be_created_in_userland": { "category": "known-gap", "reason": "common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags" }, + "test_01_calling_length_getter_on_invalid_this_throws": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_02_sessionstorage_is_not_persisted": { "category": "known-gap", "reason": "common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags" }, + "test_03_localstorage_returns_undefined_and_warns_without_localstorag": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_04_localstorage_is_not_enumerable_without_localstorage_file": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, "test_05_localstorage_is_not_persisted_if_it_is_unused": { "category": "known-gap", "reason": "common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags" }, "test_06_localstorage_is_persisted_if_it_is_used": { "category": "known-gap", "reason": "common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags" }, - "test_07_webstorage_quota_for_localstorage_and_sessionstorage": { "category": "known-gap", "reason": "common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags" } + "test_07_webstorage_quota_for_localstorage_and_sessionstorage": { "category": "known-gap", "reason": "common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags" }, + "test_08_disabled_with_no_webstorage": { "category": "runnable", "reason": "carries 22.14.0 subtest test_00_disabled_without_experimental_webstorage" }, + "test_09_a_malformed_localstorage_file_throws_instead_of_aborting": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" }, + "test_10_a_malformed_localstorage_file_does_not_leak_connections": { "category": "unevaluated", "reason": "newly discovered subtest, not yet evaluated" } } }, "parallel/test-webstream-encoding-inspect.js": { "category": "runnable" }, @@ -9815,7 +9950,7 @@ "parallel/test-whatwg-events-event-constructors.js": { "category": "known-gap", "reason": "node_compat common shim is missing ../common/wpt harness" }, "parallel/test-whatwg-events-eventtarget-this-of-listener.js": { "category": "known-gap", "reason": "node_compat common shim is missing ../common/wpt harness" }, // Keep unsplit: this test has a shared pass counter and one process exit assertion spanning blocks. - "parallel/test-whatwg-readablebytestream-bad-buffers-and-views.js": { "category": "runnable" }, + "parallel/test-whatwg-readablebytestream-bad-buffers-and-views.js": { "category": "runnable", "split": false }, "parallel/test-whatwg-readablebytestream.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated", @@ -9919,8 +10054,9 @@ "block_77_block_77": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/readablestream" }, "block_78_block_78": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/readablestream" }, "block_79_block_79": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/readablestream" }, - "block_80_initial_pull_delay": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/readablestream" }, - "block_81_avoiding_prototype_pollution": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/readablestream" } + "block_80_block_80": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/readablestream" }, + "block_81_initial_pull_delay": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/readablestream" }, + "block_82_avoiding_prototype_pollution": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/readablestream" } } }, "parallel/test-whatwg-transformstream.js": { @@ -10015,7 +10151,9 @@ "block_04_block_04": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, "block_05_block_05": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, "block_06_block_06": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, - "block_07_block_07": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" } + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" } } }, "parallel/test-whatwg-webstreams-adapters-to-readablewritablepair.js": { @@ -10034,7 +10172,8 @@ "block_08_block_08": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, "block_09_block_09": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, "block_10_block_10": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, - "block_11_block_11": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" } + "block_11_block_11": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, + "block_12_block_12": {} } }, "parallel/test-whatwg-webstreams-adapters-to-streamduplex.js": { @@ -10098,7 +10237,10 @@ "block_05_block_05": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, "block_06_block_06": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, "block_07_block_07": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, - "block_08_block_08": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" } + "block_08_block_08": { "category": "node-internals", "reason": "requires --expose-internals and internal/webstreams/adapters" }, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": {} } }, "parallel/test-whatwg-webstreams-compression.js": { "category": "known-gap", "reason": "stream/web compression constructor error codes are not Node-compatible yet" }, @@ -10142,8 +10284,10 @@ "block_02_block_02": { "category": "node-internals", "reason": "requires --expose-internals and internal/worker/js_transferable" }, "block_03_block_03": { "category": "node-internals", "reason": "requires --expose-internals and internal/worker/js_transferable" }, "block_04_block_04": { "category": "node-internals", "reason": "requires --expose-internals and internal/worker/js_transferable" }, - "block_05_block_05": { "category": "node-internals", "reason": "requires --expose-internals and internal/worker/js_transferable" }, - "block_06_block_06": { "category": "node-internals", "reason": "requires --expose-internals and internal/worker/js_transferable" } + "block_05_block_05": {}, + "block_06_block_06": { "category": "node-internals", "reason": "requires --expose-internals and internal/worker/js_transferable" }, + "block_07_block_07": { "category": "node-internals", "reason": "requires --expose-internals and internal/worker/js_transferable" }, + "block_08_block_08": { "category": "node-internals", "reason": "requires --expose-internals and internal/worker/js_transferable" } } }, "parallel/test-windows-abort-exitcode.js": { "category": "wasi-impossible", "reason": "Windows-only abort/exitcode behavior is not available on WASI" }, @@ -10518,7 +10662,13 @@ "test_01_windowbits_should_be_valid": {} } }, - "parallel/test-zlib.js": {}, + "parallel/test-zlib.js": { + "split": true, + "subtests": { + "block_00_block_00": { "category": "known-gap", "reason": "zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented" }, + "block_01_block_01": { "category": "known-gap", "reason": "zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented" } + } + }, "sequential/test-async-wrap-getasyncid.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated", @@ -10568,15 +10718,22 @@ } }, "sequential/test-cpu-prof-kill.js": { "category": "wasi-impossible", "reason": "V8 profiling, not available in WASM" }, - "sequential/test-cpu-prof-name.js": { "category": "wasi-impossible", "reason": "V8 profiling, not available in WASM" }, + "sequential/test-cpu-prof-name.js": { + "category": "wasi-impossible", + "reason": "V8 profiling, not available in WASM", + "split": true, + "subtests": { + "block_00_cpu_prof_name": {}, + "block_01_cpu_prof_name_with_pid_placeholder": {} + } + }, "sequential/test-cpu-prof-worker-argv.js": { "category": "wasi-impossible", "reason": "V8 profiling, not available in WASM" }, "sequential/test-crypto-timing-safe-equal.js": { "category": "runnable", "split": true, "subtests": { "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {} + "block_01_block_01": {} } }, "sequential/test-debug-prompt.js": { "category": "wasi-impossible", "reason": "inspector/debugger is not available in WASM" }, @@ -10668,7 +10825,8 @@ "block_00_block_00": {}, "block_01_block_01": {}, "block_02_block_02": {}, - "block_03_block_03": {} + "block_03_block_03": {}, + "block_04_block_04": {} } }, "sequential/test-init.js": { @@ -10698,7 +10856,10 @@ "subtests": { "block_00_block_00": { "category": "known-gap", "reason": "perf_hooks.monitorEventLoopDelay is not implemented" }, "block_01_block_01": { "category": "known-gap", "reason": "perf_hooks.monitorEventLoopDelay is not implemented" }, - "block_02_block_02": { "category": "known-gap", "reason": "perf_hooks.monitorEventLoopDelay is not implemented" } + "block_02_block_02": { "category": "known-gap", "reason": "perf_hooks.monitorEventLoopDelay is not implemented" }, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {} } }, "sequential/test-pipe.js": { "category": "known-gap", "reason": "isolated P2/P3 runs take about 91-97 seconds; although a per-entry timeout is configurable, enabling this case would add excessive CI wall time, and transport profiling attributes most of the delay outside the socket path" }, @@ -10706,47 +10867,20 @@ "sequential/test-process-warnings.js": {}, "sequential/test-repl-timeout-throw.js": { "category": "known-gap", "reason": "child_process.spawn emulation does not support --interactive REPL sessions" }, "sequential/test-resolution-inspect-brk.js": { "category": "wasi-impossible", "reason": "inspector/debugger is not available in WASM" }, - "sequential/test-single-executable-application-assets-raw.js": { "category": "wasi-impossible", "reason": "Node.js SEA packaging, not available in WASM" }, - "sequential/test-single-executable-application-assets.js": { + "sequential/test-stream2-stderr-sync.js": {}, + "sequential/test-timers-block-eventloop.js": { "category": "node-internals", "reason": "requires internal/util.sleep" }, + "sequential/test-timers-set-interval-excludes-callback-duration.js": { "category": "known-gap", "reason": "setInterval scheduling incorrectly includes callback execution time" }, + "sequential/test-tls-connect.js": { "category": "wasi-impossible", - "reason": "Node.js SEA packaging, not available in WASM", + "reason": "tls is not supported in WebAssembly environment", "split": true, "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {}, - "block_02_block_02": {} - } - }, - "sequential/test-single-executable-application-disable-experimental-sea-warning.js": { "category": "wasi-impossible", "reason": "Node.js SEA packaging, not available in WASM" }, - "sequential/test-single-executable-application-empty.js": { "category": "wasi-impossible", "reason": "Node.js SEA packaging, not available in WASM" }, - "sequential/test-single-executable-application-snapshot-and-code-cache.js": { "category": "wasi-impossible", "reason": "Node.js SEA packaging, not available in WASM" }, - "sequential/test-single-executable-application-snapshot-worker.js": { "category": "wasi-impossible", "reason": "Node.js SEA packaging, not available in WASM" }, - "sequential/test-single-executable-application-snapshot.js": { - "category": "wasi-impossible", - "reason": "Node.js SEA packaging, not available in WASM", - "split": true, - "subtests": { - "block_00_block_00": {}, - "block_01_block_01": {} - } - }, - "sequential/test-single-executable-application-use-code-cache.js": { "category": "wasi-impossible", "reason": "Node.js SEA packaging, not available in WASM" }, - "sequential/test-single-executable-application.js": { "category": "wasi-impossible", "reason": "Node.js SEA packaging, not available in WASM" }, - "sequential/test-stream2-stderr-sync.js": {}, - "sequential/test-timers-block-eventloop.js": { "category": "node-internals", "reason": "requires internal/util.sleep" }, - "sequential/test-timers-set-interval-excludes-callback-duration.js": { "category": "known-gap", "reason": "setInterval scheduling incorrectly includes callback execution time" }, - "sequential/test-tls-connect.js": { - "category": "wasi-impossible", - "reason": "tls is not supported in WebAssembly environment", - "split": true, - "subtests": { - "block_00_uncatchable_exception_on_tls_connection_error": {}, - "block_01_ssl_accept_ssl_connect_error_handling": {} + "block_00_uncatchable_exception_on_tls_connection_error": {}, + "block_01_ssl_accept_ssl_connect_error_handling": {} } }, "sequential/test-tls-lookup.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "sequential/test-tls-psk-client.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, - "sequential/test-tls-securepair-client.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "sequential/test-tls-session-timeout.js": { "category": "wasi-impossible", "reason": "tls/https is not supported in WebAssembly environment" }, "sequential/test-util-debug.js": { "category": "known-gap", "reason": "util.debuglog formatting/callback behavior is not fully Node-compatible" }, "sequential/test-vm-break-on-sigint.js": { "category": "wasi-impossible", "reason": "requires worker_threads, which are unavailable in WASM" }, @@ -10757,6 +10891,6436 @@ "sequential/test-worker-fshandles-open-close-on-termination.js": { "category": "wasi-impossible", "reason": "requires worker_threads which is not available in WASM" }, "sequential/test-worker-heapsnapshot-options.js": { "category": "wasi-impossible", "reason": "worker_threads is not supported in WASM" }, "sequential/test-worker-prof.js": { "category": "wasi-impossible", "reason": "worker_threads is not supported in WASM" }, - "sequential/test-write-heapsnapshot-options.js": { "category": "engine-difference", "reason": "v8.writeHeapSnapshot heap-introspection behavior is V8-specific and unavailable in QuickJS" } + "sequential/test-write-heapsnapshot-options.js": { "category": "engine-difference", "reason": "v8.writeHeapSnapshot heap-introspection behavior is V8-specific and unavailable in QuickJS" }, + + // === newly discovered tests (not yet evaluated) === + "es-module/test-cjs-defer-static-import-eval.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-defer-import-builtin-module.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-defer-import-eval-with-tla.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-defer-import-eval.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-defer-import-json-module.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-defer-import-text-module.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-defer-import-with-module-tree.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-defer-import-with-regular-import.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-import-attributes-identity.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-import-attributes-validation-text.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-import-meta-main-eval.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_import_meta_main_in_evaluated_scripts": {}, + "test_01_import_meta_main_in_typescript_scripts": {} + } + }, + "es-module/test-esm-import-meta-main.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-import-meta-resolve-hooks.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-import-text-disabled.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-import-text.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-in-require-cache-2.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-in-require-cache.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-loader-text-format.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-package-map-basic.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-package-map-boundaries.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-package-map-errors.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-package-map-exports.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-package-map-flag.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-package-map-paths.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-package-map-symlink.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-package-map-version-fork.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-register-deprecation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-require-race-condition.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-tla-syntax-errors-not-recognized-as-tla-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-escape-import-names.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-globals-all-types.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-jitless.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-js-string-builtins.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-load-exports.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-module-instances-warning.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-no-code-injection.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-non-identifier-exports.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-reject-wasm-export-names.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-reject-wasm-import-names.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-reject-wasm-js-export-names.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-reject-wasm-js-import-module.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-reject-wasm-js-import-names.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-source-phase-dynamic.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-source-phase-identity.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-source-phase-no-execute-dynamic.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-source-phase-no-execute.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-source-phase-not-defined-dynamic.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-source-phase-not-defined-static.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-source-phase-static.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-top-level-execution.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-vm-source-phase-dynamic.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-esm-wasm-vm-source-phase-static.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-extensionless-esm-type-commonjs.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-import-cjs-jitless.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-import-module-retry-require-errored.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-import-preload-require-cycle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-import-require-tla-twice.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-require-esm-from-imported-cjs.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-require-module-instantiated.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-require-module-retry-import-errored-2.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-require-module-tla-error-metadata.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-require-module-tla-error-snapshot.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-require-module-tla-execution.js": { "category": "runnable", "reason": "carries 22.14.0 es-module/test-require-module-tla.js (upstream 8d10bc7b09)" }, + "es-module/test-require-module-tla-instantiation-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "es-module/test-require-module-tla-nested.js": { "category": "runnable", "reason": "carries 22.14.0 es-module/test-require-module-tla.js (upstream 8d10bc7b09)" }, + "es-module/test-require-module-tla-print-execution.js": { "category": "known-gap", "reason": "child_process execPath emulation does not implement --experimental-print-required-tla diagnostics output" }, + "es-module/test-require-module-tla-rejected.js": { "category": "runnable", "reason": "carries 22.14.0 es-module/test-require-module-tla.js (upstream 8d10bc7b09)" }, + "es-module/test-require-module-tla-resolved.js": { "category": "runnable", "reason": "carries 22.14.0 es-module/test-require-module-tla.js (upstream 8d10bc7b09)" }, + "es-module/test-require-module-tla-unresolved.js": { "category": "runnable", "reason": "carries 22.14.0 es-module/test-require-module-tla.js (upstream 8d10bc7b09)" }, + "es-module/test-vm-main-context-default-loader-eval.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-abort-controller-any-timeout.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-abortsignal-any-source-gc.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-abortsignal-any.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-abortsignal-drop-settled-signals.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_when_there_is_a_long_lived_signal": {}, + "test_01_does_not_prevent_source_signal_from_being_gced_if_it_is_shor": {}, + "test_02_drops_settled_dependent_signals_when_signal_is_composite": {}, + "test_03_drops_an_observed_composite_of_a_composite_once_its_sources_": {}, + "test_04_drops_settled_signals_even_when_there_are_listeners": {} + } + }, + "parallel/test-als-defaultvalue-original.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-als-defaultvalue.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-assert-class-destructuring.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_assert_class_destructuring_behavior_diff_option": {}, + "test_01_assert_class_destructuring_behavior_strict_option": {}, + "test_02_assert_class_destructuring_behavior_comprehensive_methods": {} + } + }, + "parallel/test-assert-class.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_assert_constructor_requires_new": {}, + "test_01_assert_class_non_strict": {}, + "test_02_assert_class_strict": {}, + "test_03_assert_class_with_invalid_diff_option": {}, + "test_04_assert_class_non_strict_with_full_diff": {}, + "test_05_assert_class_non_strict_with_simple_diff": {} + } + }, + "parallel/test-assert-myers-diff.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-assert-partial-deep-equal.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-assert-objects.js (upstream 096b61131a)" }, + "parallel/test-async-hooks-enabledhooksexits.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-async-hooks-stack-overflow-nested-async.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-async-hooks-stack-overflow-try-catch.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-async-hooks-stack-overflow.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-async-local-storage-enter-with.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-async-local-storage-http-agent.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-async-local-storage-http-parser-leak.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-async-local-storage-isolation.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-async-local-storage-run-scope.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_basic_runscope_with_using": {}, + "block_01_test_runscope_restores_previous_value": {}, + "block_02_test_nested_runscope": {}, + "block_03_test_runscope_with_error_during_usage": {}, + "block_04_test_idempotent_disposal_via_named_dispose_method": {}, + "block_05_test_withscope_without_using_keyword_scope_leaks_until_manua": {}, + "block_06_test_that_dispose_undoes_enterwith_called_inside_scope": {}, + "block_07_test_runscope_with_defaultvalue": {}, + "block_08_test_deeply_nested_runscope": {}, + "block_09_test_runscope_with_multiple_storages": {} + } + }, + "parallel/test-async-local-storage-weak-asyncwrap-leak.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-auto-run.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-cli-ack.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-cli-arguments.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-cli-backpressure.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-bench-cli-lifecycle.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {} + } + }, + "parallel/test-bench-cli-reporters.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {} + } + }, + "parallel/test-bench-cli.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": {} + } + }, + "parallel/test-bench-clock-precision.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-context-control.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-context-errors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-create-runner.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-custom-reporter.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-default-warmup.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-diagnostic-channels.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-diagnostics.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-errors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-filtering.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-harness-errors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-hook-errors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-module.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-reporters.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-run-exit-code.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_code": {}, + "block_01_a_successful_run_through_the_module_level_run_keeps_the_defa": {}, + "block_02_an_exit_code_set_by_the_user_is_preserved_when_the_explicit_": {}, + "block_03_an_exit_code_set_by_the_user_is_preserved_when_an_automatic_": {}, + "block_04_runners_created_with_createrunner_leave_the_exit_code_to_the": {} + } + }, + "parallel/test-bench-run-file.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-run-options.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-run.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-stream.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-validation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-bench-yield-between-samples.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-benchmark-compare.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-blob-stream-gc.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-blocklist-fast-api.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-buffer-alloc-alignment.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_omitting_the_alignment_keeps_the_previous_behaviour": {}, + "block_01_arraybuffer_can_be_created_without_an_explicit_length": {}, + "block_02_buffer_allocunsafeslow_is_never_pooled_even_when_aligned": {}, + "block_03_and_allocates_on_its_own_beyond_that": {}, + "block_04_and_make_sure_every_buffer_keeps_its_own_contents": {} + } + }, + "parallel/test-buffer-alloc-unsafe-is-initialized-with-zero-fill-flag.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-buffer-alloc-unsafe-is-uninitialized.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-buffer-copy-immutable.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_the_read_only_backing_store_the_copy_is_a_no_op_and_reports_": {}, + "block_01_do_not_require_a_writable_backing_store_and_reports_the_byte": {}, + "block_02_target_through_buffer_prototype_copy": {} + } + }, + "parallel/test-buffer-generic-methods.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": {}, + "block_12_block_12": {}, + "block_13_block_13": {}, + "block_14_block_14": {}, + "block_15_block_15": {}, + "block_16_block_16": {}, + "block_17_block_17": {}, + "block_18_block_18": {}, + "block_19_block_19": {}, + "block_20_block_20": {}, + "block_21_block_21": {}, + "block_22_block_22": {}, + "block_23_block_23": {}, + "block_24_block_24": {}, + "block_25_block_25": {}, + "block_26_block_26": {}, + "block_27_block_27": {}, + "block_28_block_28": {}, + "block_29_block_29": {}, + "block_30_block_30": {}, + "block_31_block_31": {}, + "block_32_block_32": {}, + "block_33_block_33": {}, + "block_34_block_34": {}, + "block_35_block_35": {}, + "block_36_block_36": {}, + "block_37_block_37": {}, + "block_38_block_38": {}, + "block_39_block_39": {}, + "block_40_block_40": {}, + "block_41_block_41": {}, + "block_42_block_42": {}, + "block_43_block_43": {}, + "block_44_block_44": {}, + "block_45_block_45": {}, + "block_46_block_46": {}, + "block_47_block_47": {}, + "block_48_block_48": {}, + "block_49_block_49": {}, + "block_50_block_50": {}, + "block_51_block_51": {}, + "block_52_block_52": {}, + "block_53_block_53": {}, + "block_54_block_54": {}, + "block_55_block_55": {}, + "block_56_block_56": {}, + "block_57_block_57": {}, + "block_58_block_58": {}, + "block_59_block_59": {} + } + }, + "parallel/test-buffer-islatin1.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_0xff_must_still_be_reported_as_latin1": {}, + "block_01_cons_strings_results_of_concatenation_with_mixed_representat": {} + } + }, + "parallel/test-buffer-isutf8-isascii-fast.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-buffer-stringlength.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_every_kind_of_input_that_tostring_like_apis_accept": {}, + "block_01_detached_arraybuffers_are_empty": {}, + "block_02_random_byte_soup_checked_against_the_real_decoder": {}, + "block_03_large_inputs_above_the_1_mib_single_pass_threshold_of_the_de": {} + } + }, + "parallel/test-buffer-swap-fast.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-buffer-tostring-4gb.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-buffer-write-utf8-two-byte.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-child-process-advanced-serialization-host-objects.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-child-process-default-env.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_a_user_supplied_env_is_still_passed_through_as_given_not_mer": {}, + "block_01_async_spawn_the_environment_is_captured_at_spawn_time": {}, + "block_02_block_02": {} + } + }, + "parallel/test-child-process-fork-advanced-header-serialization.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-child-process-kill-sigwinch.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-child-process-kill-spawn-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-child-process-send-boundsocket.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-child-process-spawn-args.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-child-process-spawn-timeout-clear-on-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-child-process-spawnsync-non-string-args.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-cli-node-cli-manpage-env-vars.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-cli-node-cli-manpage-options.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-cli-node-print-help-style.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_force_color_1_produces_styled_output": {}, + "block_01_test_no_color_1_produces_plain_output": {}, + "block_02_test_piped_non_tty_no_force_color_produces_plain_output": {}, + "block_03_test_alignment_preservation_stripped_styled_output_matches_p": {} + } + }, + "parallel/test-cli-options-as-flags.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-cli-print-promise.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-common-must-not-mutate-object-deep.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_test_that_passed_functions_keep_working_correctly": {} + } + }, + "parallel/test-common-wpt-allowed-rejections.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-common-wpt-any.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-common-wpt-backends.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-common-wpt-inspect.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-common-wpt-runner.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-common-wpt-script-modifier.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-common-wpt-webworker-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-compile-cache-api-options-portable-env.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-compile-cache-api-portable.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_first_run": {}, + "block_01_so_a_cache_generated_by_one_user_is_found_by_another": {}, + "block_02_second_run_moved_directory_but_same_relative_cache_path": {} + } + }, + "parallel/test-compile-cache-api-readonly.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-compile-cache-portable-esm.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-compile-cache-portable.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-compile-cache-typescript-commonjs.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_check_cache_for_ts_files_that_would_be_run_as_commonjs": {}, + "block_01_check_cache_for_cts_files_that_require_cts_files": {}, + "block_02_check_cache_for_cts_files_that_require_mts_files": {} + } + }, + "parallel/test-compile-cache-typescript-esm.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_check_cache_for_ts_files_that_would_be_run_as_esm": {}, + "block_01_check_cache_for_mts_files_that_import_mts_files": {}, + "block_02_check_cache_for_mts_files_that_import_cts_files": {} + } + }, + "parallel/test-compile-cache-typescript-strip-sourcemaps.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-config-file.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_should_handle_non_existing_json": {}, + "test_01_should_handle_empty_json": {}, + "test_02_should_handle_empty_object_json": {}, + "test_03_runtime_version_checks": {}, + "test_04_should_parse_boolean_flag": {}, + "test_05_should_parse_boolean_flag_defaulted_to_true": {}, + "test_06_should_throw_an_error_when_a_flag_is_declared_twice": {}, + "test_07_should_not_override_env_file": {}, + "test_08_should_not_override_node_options": {}, + "test_09_should_not_override_cli_flags": {}, + "test_10_should_parse_array_flag_correctly": {}, + "test_11_should_validate_invalid_array_flag": {}, + "test_12_should_validate_array_flag_as_string": {}, + "test_13_should_throw_at_unknown_flag": {}, + "test_14_should_throw_at_flag_not_available_in_node_options": {}, + "test_15_unsigned_flag_should_be_parsed_correctly": {}, + "test_16_numeric_flag_should_not_allow_negative_values": {}, + "test_17_v8_flag_should_not_be_allowed_in_config_file": {}, + "test_18_string_flag_should_be_parsed_correctly": {}, + "test_19_host_port_flag_should_be_parsed_correctly": {}, + "test_20_inspect_true_should_be_parsed_correctly": {}, + "test_21_inspect_false_should_be_parsed_correctly": {}, + "test_22_no_op_flag_should_throw": {}, + "test_23_should_not_allow_users_to_sneak_in_a_flag": {}, + "test_24_non_object_root": {}, + "test_25_non_object_node_options": {}, + "test_26_should_throw_correct_error_when_a_json_is_broken": {}, + "test_27_broken_value_in_node_options": {}, + "test_28_should_use_node_config_json_as_default": {}, + "test_29_should_use_node_config_json_when_config_file_has_no_argument": {}, + "test_30_should_not_treat_the_script_path_as_a_config_file_argument": {}, + "test_31_should_treat_a_space_separated_config_file_path_as_the_scrip": {}, + "test_32_config_file_flags_that_are_not_node_js_options": {}, + "test_33_should_read_the_config_file_after_an_option_that_takes_a_sep": {}, + "test_34_should_error_when_config_file_has_empty_argument": {}, + "test_35_should_error_when_experimental_default_config_file_has_an_ex": {}, + "test_36_should_override_node_config_json_when_specified": {}, + "test_37_should_work_with_config_file_path": {}, + "test_38_should_support_the_experimental_config_file_alias": {}, + "test_39_should_use_last_config_file_when_multiple_are_specified": {}, + "test_40_should_use_default_when_next_argument_starts_with_dash": {}, + "test_41_should_throw_an_error_when_the_file_is_non_readable": {}, + "test_42_namespace_scoped_options": {} + } + }, + "parallel/test-config-json-schema.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-console-tty-colors-per-stream.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-cppheap-stats.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-argon2-job.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-argon2-unsupported.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-argon2.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-crypto-boringssl-evp-list.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-cipherbase-options-fast-path.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-cipheriv-cbc-cts.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-cipheriv-xts.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-default-shake-lengths-oneshot.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-default-shake-lengths.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-dep0203.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-dep0204.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-ec-jwk-coordinates.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-ecdh-setpublickey-deprecation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-eddsa-variants.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-encap-decap.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-fips-indicator-strict.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-hash-stream-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-job-error-parity.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_sign_ed25519_with_explicit_digest_openssl_error_at_signinit": {}, + "block_01_sign_context_on_key_that_does_not_support_it_context_unsuppo": {}, + "block_02_sign_rsa_key_too_small_for_digest_openssl_error": {}, + "block_03_sign_illegal_rsa_padding_mode_openssl_error": {}, + "block_04_verify_x25519_key_not_a_signing_key_openssl_error": {}, + "block_05_dh_mismatched_ec_curves_openssl_error": {}, + "block_06_dh_x25519_with_all_zero_public_key_openssl_error": {}, + "block_07_dh_mismatched_dh_group_params_openssl_error": {}, + "block_08_hkdf_invalid_digest_additionalconfig_error_should_throw_in_b": {}, + "block_09_hkdf_keylen_too_large_additionalconfig_error": {}, + "block_10_pbkdf2_invalid_digest_additionalconfig_error": {}, + "block_11_scrypt_invalid_params_additionalconfig_error_sent_to_openssl": {}, + "block_12_block_12": {} + } + }, + "parallel/test-crypto-jwk-raw-validation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-kem-shared-key.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-key-encoding-provider-cipher.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-key-objects-ec-jwk-private.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-key-objects-raw.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_ec_nist_and_openssl_curve_names_are_both_recognized_for_raw_": {}, + "block_01_raw_key_imports_do_not_support_strings": {}, + "block_02_raw_public_keys_cannot_be_imported_as_private_keys": {}, + "block_03_key_types_that_don_t_support_raw_formats": {}, + "block_04_ec_p_256_and_p_384_keys_cannot_be_imported_as_private_public": {}, + "block_05_passphrase_cannot_be_used_with_raw_formats": {}, + "block_06_raw_seed_export_is_rejected_for_key_types_that_do_not_suppor": {}, + "block_07_ec_defaults_to_uncompressed_can_be_switched_to_compressed_bo": {}, + "block_08_compressed_and_uncompressed_are_the_only_recognized_options": {}, + "block_09_none_of_the_raw_types_can_be_used_with_symmetric_key_objects": {}, + "block_10_private_key_objects_created_from_raw_seed_or_raw_private_can": {}, + "block_11_raw_public_ec_keys_that_are_garbage_not_on_curve_are_rejecte": {}, + "block_12_unrecognized_namedcurve_values_are_rejected": {}, + "block_13_x25519_ed25519_x448_and_ed448_cannot_be_used_as_ec_namedcurv": {}, + "block_14_missing_asymmetrickeytype_option": {}, + "block_15_unknown_asymmetrickeytype_value": {}, + "block_16_non_buffer_key_data": {}, + "block_17_missing_namedcurve_for_ec": {} + } + }, + "parallel/test-crypto-key-reuse-concurrent.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-key-store-pkcs11.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-key-store.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {} + } + }, + "parallel/test-crypto-keygen-ec-group-names.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-keygen-raw.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_generatekeypairsync_with_raw_encoding_for_eddsa_ecdh_ke": {}, + "block_01_test_async_generatekeypair_with_raw_encoding_for_eddsa_ecdh_": {}, + "block_02_test_generatekeypairsync_with_raw_encoding_for_ec_keys": {}, + "block_03_test_ec_raw_public_with_compressed_and_uncompressed_point_fo": {}, + "block_04_test_mixed_one_side_raw_other_side_pem": {}, + "block_05_block_05": {}, + "block_06_test_mixed_one_side_raw_other_side_keyobject_no_encoding": {}, + "block_07_test_error_raw_with_rsa": {}, + "block_08_test_error_raw_private_in_publickeyencoding": {}, + "block_09_test_error_raw_seed_in_publickeyencoding": {}, + "block_10_test_error_raw_public_in_privatekeyencoding": {}, + "block_11_test_error_passphrase_with_raw_private_key_encoding": {} + } + }, + "parallel/test-crypto-keyobject-brand-check.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-keyobject-clone-transfer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-keyobject-hidden-slots.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {} + } + }, + "parallel/test-crypto-keyobject-no-own-symbols.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-mac-errors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-mac-unsupported.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-mac-vectors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-mac.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-negative-zero.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {} + } + }, + "parallel/test-crypto-oaep-zero-length.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-oneshot-hash-xof.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-pkcs12.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {} + } + }, + "parallel/test-crypto-pqc-encrypted-pkcs8.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-pqc-key-objects-ml-dsa.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-pqc-key-objects-ml-kem.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-pqc-key-objects-slh-dsa.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-pqc-keygen-ml-dsa.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-pqc-keygen-ml-kem.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-pqc-keygen-slh-dsa.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-pqc-sign-verify-ml-dsa.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-prepare-asymmetric-cryptokey.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-prepare-asymmetric-key.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-crypto-provider-cache-snapshot.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-provider-cache.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-provider-hash-options.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-provider-hashes.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-random-cache-snapshot.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-randomfill-properties.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-randomfillsync-trace-sync-io.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-randomuuidv7.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_timestamp_the_embedded_timestamp_should_approximate_date_now": {}, + "block_04_block_04": {}, + "block_05_ensure_randomuuidv7_takes_no_arguments_or_ignores_them_grace": {}, + "block_06_block_06": {}, + "block_07_block_07": {} + } + }, + "parallel/test-crypto-raw-key-type-validation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-rsa-multiprime-jwk.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-rsa-oaep-mgf1.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_sides_agree_on_the_digests": {}, + "block_01_oaep_digest_sha256_which_is_the_pre_existing_behavior": {}, + "block_02_oaephash_is_equivalent_to_omitting_it": {}, + "block_03_mgf1hash_sha1": {} + } + }, + "parallel/test-crypto-rsa-pkcs1-public-key.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-rsa-pss-default-salt-length.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-rsa-pss-parameters.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-sec-level.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-subtle-cross-realm.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_with_same_realm_arraybuffer": {}, + "block_01_test_with_cross_realm_arraybuffer": {}, + "block_02_cross_realm_sharedarraybuffer_should_be_handled_like_any_sha": {}, + "block_03_test_with_both_typedarray_buffer_methods": {}, + "block_04_test_with_aes_gcm_encryption_decryption_using_cross_realm_ar": {}, + "block_05_test_with_aes_gcm_using_typedarray_view_of_cross_realm_array": {} + } + }, + "parallel/test-crypto-x509-brand-check.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-x509-clone-transfer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-x509-hidden-slots.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-crypto-x509-name-non-string.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-cwd-enoent-improved-message.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-address.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-auto-resume.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-exec-scope.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-extract-function-name.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-help.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-inspect-help-forwarding.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-inspect-help.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-invalid-json.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-debugger-no-inspect-brk.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-activation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-bound-never-hit.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-child-inspect-port-zero.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-cond-invalid.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-cond-max-hit.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-cond-shared.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-cond-throws.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-cond.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-explicit-column.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-expression-throws.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-failure-hang-during-evaluate.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-failure-process-exit.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-failure-resume.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-global-option-order.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-json-preview.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-json-special-values.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-json.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-late-resolution.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-launch.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-max-hit-invalid.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-max-hit-miss.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-max-hit-partial.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-max-hit-shared.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-max-hit-text.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-max-hit.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-miss.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-missing-expr.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-multi-location.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-narrow-suffix.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-no-column-indent.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-requires-separator.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-script-throws.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-startup-disconnect.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-startup-pause.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-target-syntax-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-text-special-values.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-text.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-timeout.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-probe-typescript.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-run-restart-init.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-set-context-line-number.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-wait-for-debugger.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-debugger-watchers.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dgram-bind-error-callback.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dgram-bind-sync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_the_os_assigned_ephemeral_port_when_port_is_0": {}, + "block_01_closing_synchronously_after_bindsync_suppresses_the_deferred": {}, + "block_02_defaults_the_address_to_the_udp4_wildcard_when_omitted": {}, + "block_03_message_events_still_flow_asynchronously_after_a_synchronous": {}, + "block_04_throws_synchronously_on_eaddrinuse": {}, + "block_05_throws_synchronously_on_a_non_numeric_address_no_dns_resolut": {}, + "block_06_rejects_a_non_string_address": {}, + "block_07_a_rejected_argument_leaves_the_socket_unbound_and_reusable": {}, + "block_08_throws_when_already_bound": {}, + "block_09_rejects_a_non_object_options_argument": {} + } + }, + "parallel/test-dgram-connect-sync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_and_remoteaddress_is_valid_immediately": {}, + "block_01_closing_synchronously_after_connectsync_suppresses_the_defer": {}, + "block_02_defaults_the_address_to_the_udp4_loopback_when_omitted": {}, + "block_03_works_on_a_socket_already_bound_with_bindsync": {}, + "block_04_datagrams_flow_to_the_connected_peer_after_a_synchronous_con": {}, + "block_05_disconnect_works_after_a_synchronous_connect_allowing_a_reco": {}, + "block_06_throws_synchronously_on_a_non_numeric_address_no_dns_resolut": {}, + "block_07_rejects_a_non_string_address": {}, + "block_08_a_rejected_argument_leaves_the_socket_unbound_and_reusable": {}, + "block_09_throws_when_already_connected": {}, + "block_10_throws_synchronously_for_a_blocked_address_leaving_the_socke": {}, + "block_11_throws_when_an_asynchronous_bind_is_still_in_progress": {} + } + }, + "parallel/test-dgram-default-lookup-ip.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-bounded-channel-run-transform-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-bounded-channel-run.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_basic_run_functionality": {}, + "block_01_test_run_with_error": {}, + "block_02_test_run_with_thisarg_and_args": {}, + "block_03_test_run_with_asynclocalstorage": {}, + "block_04_test_run_without_subscribers": {} + } + }, + "parallel/test-diagnostics-channel-bounded-channel-scope-error.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_scope_with_thrown_error": {}, + "block_01_test_store_restoration_on_error": {}, + "block_02_test_dispose_during_exception_handling": {} + } + }, + "parallel/test-diagnostics-channel-bounded-channel-scope-nested.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_nested_scopes": {}, + "block_01_test_nested_scopes_with_stores": {}, + "block_02_test_nested_scopes_with_different_channels": {}, + "block_03_test_nested_scopes_with_shared_store": {}, + "block_04_test_deeply_nested_scopes": {}, + "block_05_test_nested_scopes_with_errors": {} + } + }, + "parallel/test-diagnostics-channel-bounded-channel-scope-transform-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-bounded-channel-scope.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_basic_scope_with_using": {}, + "block_01_test_scope_with_result_setter": {}, + "block_02_test_scope_with_error_setter": {}, + "block_03_test_scope_with_asynclocalstorage": {}, + "block_04_test_scope_without_subscribers_no_op": {}, + "block_05_test_manual_dispose_via_symbol_dispose": {}, + "block_06_test_scope_with_store_restore_to_previous_value": {} + } + }, + "parallel/test-diagnostics-channel-bounded-channel.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_boundedchannel_exports": {}, + "block_01_test_basic_boundedchannel_creation_and_properties": {}, + "block_02_test_boundedchannel_with_channel_objects": {}, + "block_03_test_subscribe_unsubscribe": {}, + "block_04_test_partial_subscription": {} + } + }, + "parallel/test-diagnostics-channel-child-process.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-crypto-fips-indicator.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-gc-maintains-subcriptions.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-gc-race-condition.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-body-multiple-buffers-and-strings.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-body-multiple-buffers.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-body-no-chunks.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-body-single-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-body-single-string.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-close-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-close.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-created.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-finish.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-client-stream-start.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-server-stream-close-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-server-stream-close.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-server-stream-created-start-timing.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-server-stream-created.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-server-stream-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-server-stream-finish.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-http2-server-stream-start.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-many-channels.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-net-client-socket-tls.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-run-stores-scope-transform-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-run-stores-scope.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_basic_runstoresscope_with_active_channel": {}, + "block_01_test_runstoresscope_with_inactive_channel_no_op": {}, + "block_02_test_runstoresscope_restores_previous_store_value": {}, + "block_03_test_runstoresscope_with_multiple_stores": {}, + "block_04_test_manual_dispose_via_symbol_dispose": {}, + "block_05_test_nested_runstoresscope": {}, + "block_06_test_runstoresscope_with_error_during_usage": {}, + "block_07_test_runstoresscope_with_inactive_channel_no_stores_or_subsc": {}, + "block_08_test_runstoresscope_with_symbol_dispose": {} + } + }, + "parallel/test-diagnostics-channel-tracing-channel-callback-default-context.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-tracing-channel-context.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-tracing-channel-promise-non-thenable.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-tracing-channel-promise-spoofed-constructor.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-tracing-channel-promise-thenable.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-tracing-channel-promise-unhandled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diagnostics-channel-web-locks.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-diff.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dlopen-binary-image-cleanup.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dlopen-binary.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dns-negative-zero.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dns-resolve-null-bytes.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dns-resolveany-ttl-overflow.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dns-resolver-max-timeout.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dns-resolvesrv-econnrefused.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_1_basic_srv_resolution_should_succeed_not_return_econnr": {}, + "block_01_test_2_multiple_srv_records_common_for_mongodb_atlas_cluster": {}, + "block_02_test_3_callback_based_api_should_also_work": {} + } + }, + "parallel/test-dns-resolvesrv.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-domexception-subclass.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-accessors.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-alpn-validation.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_255_is_the_largest_representable_name_and_must_still_be_acce": {}, + "block_01_a_well_formed_buffer_still_works_so_the_walk_is_not_rejectin": {} + } + }, + "parallel/test-dtls-alpn.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_now_returns_ssl_tlsext_err_alert_fatal_matching_node_tls": {}, + "block_01_finds_no_overlap_declining_the_extension_entirely_is_not_a_f": {}, + "block_02_selection_callback_only_runs_when_the_client_sent_the_extens": {} + } + }, + "parallel/test-dtls-async-dispose.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-authorized-before-handshake.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_server_side_read_both_accessors_at_the_earliest_moment_they_": {}, + "block_01_client_side_readable_between_connect_and_the_handshake_compl": {}, + "block_02_not_simply_pinned_them_to_a_constant": {}, + "block_03_and_after_close_when_the_handle_is_gone": {} + } + }, + "parallel/test-dtls-authorized.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_authorized_even_though_openssl_has_nothing_to_find_fault_wit": {}, + "block_01_a_peer_that_sent_a_chain_the_server_trusts_is_authorized": {} + } + }, + "parallel/test-dtls-basic.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-ciphers.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_case_1_a_specific_cipher_is_negotiated_and_reported_on_both_": {}, + "block_01_case_3_a_valid_ecdh_curve_completes_a_handshake": {} + } + }, + "parallel/test-dtls-client-cert.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_case_1_the_client_presents_a_certificate_the_server_can_veri": {}, + "block_01_rejects_the_handshake": {} + } + }, + "parallel/test-dtls-close.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_1_graceful_close_from_client_side": {}, + "block_01_test_2_forced_destroy": {}, + "block_02_test_3_endpoint_close_closes_all_sessions": {} + } + }, + "parallel/test-dtls-connect-error-cleanup.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-default-ca.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-destroy-in-callback.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_frees_the_session_s_map_entry_while_clearout_is_still_loopin": {}, + "block_01_there_must_not_free_the_session_before_the_pump_finishes_unw": {} + } + }, + "parallel/test-dtls-error-queue.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-errors.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-export-keying-material-validation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-handshake-timeout.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_the_deadline_is_honoured_and_close_to_exactly": {}, + "block_01_endpoint_closes": {}, + "block_02_linger_to_fire_at_an_established_session": {}, + "block_03_limit": {}, + "block_04_mean_waiting_60s_so_this_only_pins_that_it_is_not_something_": {}, + "block_05_through_the_state_machine_but_the_same_session_lifecycle": {}, + "block_06_validation": {} + } + }, + "parallel/test-dtls-ipv6.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_a_full_handshake_and_round_trip_over_ipv6_loopback": {}, + "block_01_ipv4_wildcard_here_is_what_used_to_break_the_send": {}, + "block_02_an_explicit_bindhost_is_still_honoured": {}, + "block_03_ipv4_is_unaffected_the_default_must_not_become_ipv6_for_v4_p": {} + } + }, + "parallel/test-dtls-ipv6only.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_everywhere_else_in_node_js": {}, + "block_01_ipv6only_true_asks_for_the_old_behaviour_back": {}, + "block_02_it_is_a_boolean_checked_like_the_rest": {} + } + }, + "parallel/test-dtls-keylog.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_normally_regardless": {}, + "block_01_returns": {} + } + }, + "parallel/test-dtls-max-sessions.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_though_the_overall_cap_is_far_higher": {} + } + }, + "parallel/test-dtls-message-listener-gate.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-mtu-record-framing.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-mtu.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_a_valid_boundary_mtu_is_accepted": {}, + "block_01_fragmented_across_records_and_the_exchange_still_succeeds": {} + } + }, + "parallel/test-dtls-multiple-clients.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-opened-settles.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_close_before_the_handshake_completes": {}, + "block_01_destroy_with_no_error_before_the_handshake_completes": {}, + "block_02_awaiting_opened_learns_the_same_thing_as_one_awaiting_closed": {}, + "block_03_that_with_a_rejection": {}, + "block_04_not_replace_it_with_the_generic_teardown_error": {}, + "block_05_documentation_says_the_promise_always_settles_and_awaiting_i": {}, + "block_06_endpoint_while_the_sessions_resolve_as_though_nothing_went_w": {}, + "block_07_the_one_the_peer_s_departure_would_settle": {} + } + }, + "parallel/test-dtls-options.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_option_is_a_way_for_a_caller_to_bring_the_process_down_with_": {}, + "block_01_neither_failed_open_so_nothing_was_unsafe_both_were_silent": {}, + "block_02_them_has_misunderstood_the_option_and_now_hears_so": {}, + "block_03_mentioning_the_option_that_had_been_set": {} + } + }, + "parallel/test-dtls-passphrase.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_the_correct_passphrase_decrypts_the_key_and_the_endpoint_ser": {}, + "block_01_a_passphrase_supplied_for_a_key_that_is_not_encrypted_is_ign": {}, + "block_02_connect_takes_it_too_for_client_certificates": {} + } + }, + "parallel/test-dtls-peer-x509-certificate.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_the_client_sees_the_chain_the_server_presented": {}, + "block_01_on_the_server_so_the_wrong_flag_here_silently_drops_or_repea": {}, + "block_02_once_and_keep_the_result": {}, + "block_03_a_peer_that_sent_no_certificate_reports_undefined_rather_tha": {} + } + }, + "parallel/test-dtls-psk.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_a_map_on_the_server_an_identity_on_the_client_no_certificate": {}, + "block_01_than_known_up_front": {}, + "block_02_handshake_at_all": {}, + "block_03_with_an_empty_key": {}, + "block_04_wait_below_is_only_to_observe_the_stall_not_to_wait_one_out": {}, + "block_05_a_callback_returning_nothing_is_a_refusal_not_an_error": {}, + "block_06_validation_the_endpoint_s_dos_protection_depends_on": {}, + "block_07_this_so_it_is_pinned_here": {}, + "block_08_the_key_can_decrypt_recorded_traffic": {}, + "block_09_of_the_implicit_cipher_list": {}, + "block_10_reaches_the_client_s_callback": {}, + "block_11_callback_should_not_take_a_server_down": {}, + "block_12_validation": {}, + "block_13_error_rather_than_a_server_that_can_never_complete_a_handsha": {}, + "block_14_caught_on_the_way_back_into_openssl": {}, + "block_15_at_a_context_with_no_psk_configuration_and_every_psk_handsha": {}, + "block_16_endpoint_s_and_a_psk_configured_on_an_sni_identity_is_never_": {}, + "block_17_for_all_of_them_naming_nothing_the_caller_had_done": {} + } + }, + "parallel/test-dtls-reject-unauthorized.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_this_test_s_ca": {}, + "block_01_case_2_the_same_untrusted_certificate_is_accepted_when_verif": {} + } + }, + "parallel/test-dtls-request-cert.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-resumption-reject-unauthorized.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_connection_through": {}, + "block_01_resumed_handshake_inherits_it": {}, + "block_02_either_way": {} + } + }, + "parallel/test-dtls-robustness.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-secure-context.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_the_context_reports_which_side_it_was_built_for": {}, + "block_01_serves_connections_to_all_of_them": {}, + "block_02_against_different_peer_names_and_still_rejects_the_wrong_one": {}, + "block_03_listen_does_not_demand_cert_and_key_when_the_context_already": {}, + "block_04_picks_the_openssl_method_when_the_context_is_built": {}, + "block_05_being_silently_ignored": {} + } + }, + "parallel/test-dtls-send-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-send.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_the_number_of_bytes_written_and_the_message_is_delivered_who": {}, + "block_01_names_both_the_size_given_and_the_limit_rather_than_just_fai": {}, + "block_02_fragments_it_getting_this_wrong_would_make_send_reject_valid": {}, + "block_03_or_handshake_errors_above": {}, + "block_04_bytes_they_cover_not_the_bytes_of_the_buffer_behind_them": {} + } + }, + "parallel/test-dtls-server-handshake-error.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_session_and_the_session_is_handed_over_in_time_for_a_listene": {}, + "block_01_to": {}, + "block_02_the_handshake_proceed_on_a_session_that_is_already_gone": {}, + "block_03_a_handshake_that_succeeds_is_unaffected": {} + } + }, + "parallel/test-dtls-servername-invalid.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-servername-validation.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_non_string_used_to_skip": {}, + "block_01_the_right_name_is_accepted_so_the_check_is_not_simply_refusi": {}, + "block_02_identity_falls_back_to_the_host": {}, + "block_03_omitting_it_entirely_also_falls_back_to_the_host": {} + } + }, + "parallel/test-dtls-session-id-context.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_an_explicit_context_is_accepted_and_does_not_disturb_the_han": {}, + "block_01_the_default_is_applied_when_none_is_given_and_handshakes_sti": {}, + "block_02_arrived_as_failed_to_set_session_id_context_which_does_not_s": {} + } + }, + "parallel/test-dtls-session-properties.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-session-resumption.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_a_session_can_be_carried_from_one_connection_to_the_next": {}, + "block_01_resumption_skips_the_certificate_flight_which_is_the_point_o": {}, + "block_02_protection_depends_on": {}, + "block_03_between_connections": {}, + "block_04_an_unusable_session_falls_back_to_a_full_handshake_rather_th": {}, + "block_05_them_survive_a_restart_or_work_across_a_cluster": {}, + "block_06_error_reports_what_it_asked_for": {}, + "block_07_a_server_session_has_no_identity_to_bind_a_blob_to_so_it_off": {}, + "block_08_means_the_type_was_right_and_the_contents_were_wrong": {} + } + }, + "parallel/test-dtls-session-table-cleanup.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_case_1_the_server_closes_its_own_session_removed_from_the_ta": {}, + "block_01_removes_the_session_from_the_table": {} + } + }, + "parallel/test-dtls-sni-binding.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_fails_by_aborting_not_by_asserting_if_the_holding_goes_back_": {}, + "block_01_only_the_names_in_it_are_served_and_a_leftover_callback_answ": {} + } + }, + "parallel/test-dtls-sni.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_or_a_dtlssecurecontext": {}, + "block_01_to_the_endpoint_s_own_certificate": {}, + "block_02_refused_when_there_is_none": {}, + "block_03_the_endpoint_itself_trusts_ca1": {}, + "block_04_validation": {}, + "block_05_rather_than_enumerated_it_returns_the_same_two_things_a_map_": {}, + "block_06_tell_apart_from_one": {}, + "block_07_exercise_callback_built_contexts_not_as_proof_of_the_retenti": {}, + "block_08_an_uncaught_exception": {}, + "block_09_entry_is": {}, + "block_10_reinterpreted_as_a_context_and_its_ssl_ctx_read_out_of_whate": {}, + "block_11_refused_rather_than_silently_reconfiguring_a_shared_context": {} + } + }, + "parallel/test-dtls-socket-options.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_is_spread_over_several_processes": {}, + "block_01_loosened_on_the_way_past": {}, + "block_02_does_not_have": {}, + "block_03_ranges": {} + } + }, + "parallel/test-dtls-srtp.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-stats.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_and_stopped_moving_and_isconnected_went_on_saying_they_were_": {}, + "block_01_destroy_reaches_them_too_not_only_the_graceful_path": {} + } + }, + "parallel/test-dtls-unhandled-rejection.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-dtls-verify-identity.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_server_observes_the_sni_the_client_sent_proving_it_is_in_the": {}, + "block_01_the_handshake_even_though_the_certificate_chain_is_otherwise": {} + } + }, + "parallel/test-duplex-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-error-value-type-detection.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-eslint-func-name-matching.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-eslint-iterator-result-done-first.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-eslint-must-call-assert.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-eslint-no-crypto-class-instanceof.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-eslint-no-cryptokey-public-accessors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-eslint-no-keyobject-public-accessors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-eslint-prefer-abort-signal-abort.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-eventtarget-custom-inspect-does-not-throw.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-external-memory-reasonable-size.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fastutf8stream-destroy.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-fastutf8stream-end.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fastutf8stream-flush-mocks.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fastutf8stream-flush-sync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_which_stays_open_until_the_new_file_is_ready": {}, + "block_02_block_02": {} + } + }, + "parallel/test-fastutf8stream-flush.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_still_opening_async_mode_only_sync_mode_writes_synchronously": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {} + } + }, + "parallel/test-fastutf8stream-fsync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-fastutf8stream-full-write-utf8.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fastutf8stream-minlength.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-fastutf8stream-mode.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fastutf8stream-partial-write-utf8.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fastutf8stream-periodicflush.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fastutf8stream-reopen.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fastutf8stream-retry.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {} + } + }, + "parallel/test-fastutf8stream-sync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {} + } + }, + "parallel/test-fastutf8stream-write-arraybufferview.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fastutf8stream-write-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fastutf8stream-write.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_never_write_the_overflowing_chunk_see_sonicboom_write_tests": {}, + "block_04_block_04": {} + } + }, + "parallel/test-ffi-missing-build.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {} + } + }, + "parallel/test-filehandle-autoclose.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-fileurltopathbuffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-chown-negative-one.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_1_for_uid_and_gid_means_don_t_change_the_value": {}, + "block_01_block_01": {} + } + }, + "parallel/test-fs-cp-async-async-filter-function.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-copy-non-directory-symlink.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-dereference-force-false-silent-fail.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-dereference-symlink.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-dest-symlink-points-to-src-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-destination-appears-late.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-dir-exists-error-on-exist.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-dir-to-file.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-error-on-exist.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-file-modes.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-file-to-dir.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-file-to-file.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-file-url.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-filter-child-folder.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-filter-function.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-identical-src-dest.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-invalid-mode-range.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-invalid-options-type.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-nested-files-folders.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-no-errors-force-false.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-no-recursive.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-overwrites-force-true.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-preserve-timestamps-dir.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-preserve-timestamps-readonly-file.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-preserve-timestamps.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-same-dir-twice.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-skip-validation-when-filtered.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-socket.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-special-files-in-tree.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-fs-cp-async-subdirectory-of-self.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-symlink-dest-points-to-src.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-symlink-over-file.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-symlink-points-to-dest.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-symlink-targets.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-verbatim-dir-symlinks-with-filter.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-async-with-mode-flags.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-promises-async-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-promises-file-url.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-promises-invalid-mode.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-promises-mode-flags.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-promises-nested-folder-recursive.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-promises-options-validation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-apply-filter-function.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-async-filter-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-copy-directory-to-file-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-copy-directory-without-recursive-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-copy-file-to-directory-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-copy-file-to-file-path.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-copy-socket-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-copy-symlink-not-pointing-to-folder.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-copy-symlink-over-file-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-copy-symlinks-to-existing-symlinks.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-copy-to-subdirectory-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-dereference-directory.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-dereference-file.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-dereference-nested-symlink.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_the_copy_out_of_the_native_walker": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_file_is_left_as_it_was": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {} + } + }, + "parallel/test-fs-cp-sync-dereference-twice.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-dereference.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-dest-name-prefix-match.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-dest-parent-name-prefix-match.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-dir-exists-error-on-exist.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-directory-mode.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-directory-not-exist-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-error-on-exist.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-file-url.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-filename-too-long-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-incompatible-options-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-mode-flags.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-mode-invalid.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-nested-files-folders.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-no-overwrite-force-false.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-options-invalid-type-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-overwrite-force-true.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-parent-symlink-dest-points-to-src-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-preserve-timestamps-dir.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-preserve-timestamps-force-false.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-preserve-timestamps-readonly.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-preserve-timestamps.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-resolve-relative-symlinks-default.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-resolve-relative-symlinks-false.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-src-dest-identical-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-src-parent-of-dest-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-symlink-dest-points-to-src-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-symlink-points-to-dest-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-unicode-dest.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-unicode-folder-names.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-verbatim-dir-symlinks-with-filter.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-verbatim-symlinks-invalid.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-sync-verbatim-symlinks-true.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-cp-unreadable-directory.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-existssync-memleak-longpath.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-fs-fchown-negative-one.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_test_sync_fchown_with_1_values": {} + } + }, + "parallel/test-fs-glob-no-follow-symlink-globstar.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-glob-throw.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-glob.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_glob": {}, + "test_01_globsync": {}, + "test_02_fspromises_glob": {}, + "test_03_glob_with_file_url_as_cwd": {}, + "test_04_globsync_with_file_url_as_cwd": {}, + "test_05_fspromises_glob_with_file_url_as_cwd": {}, + "test_06_glob_withfiletypes": {}, + "test_07_globsync_withfiletypes": {}, + "test_08_fspromises_glob_withfiletypes": {}, + "test_09_globsync_exclude": {}, + "test_10_glob_exclude": {}, + "test_11_fspromises_glob_exclude": {}, + "test_12_glob_forwards_maxdepth": {}, + "test_13_async_glob_does_not_use_synchronous_path_identity_calls": {}, + "test_14_globsync_maxdepth_traversal": {}, + "test_15_globsync_validates_maxdepth": {}, + "test_16_glob_followsymlinks": {}, + "test_17_globsync_followsymlinks": {}, + "test_18_fspromises_glob_followsymlinks": {}, + "test_19_glob_with_restricted_directory": {}, + "test_20_globsync_enotdir": {}, + "test_21_glob_seen_cache": {}, + "test_22_glob_exclude_case_insensitive_consistency": {} + } + }, + "parallel/test-fs-internal-assertencoding.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-lchown-negative-one.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_1_for_uid_and_gid_means_don_t_change_the_value": {}, + "block_01_block_01": {} + } + }, + "parallel/test-fs-mkdir-recursive-enoent.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-mkdtempDisposableSync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_basic_usage": {}, + "block_01_usage_with_symbol_dispose": {} + } + }, + "parallel/test-fs-negative-zero.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-openAsBlobSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-appendfile.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-fs-promises-writefile-typedarray.js (upstream 3ac95f2d0c); parallel/test-fs-promises-writefile-with-fd.js (upstream 3ac95f2d0c)" }, + "parallel/test-fs-promises-file-handle-pull.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-file-handle-pullsync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-file-handle-readLines.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-file-handle-writer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-mkdtempDisposable.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-readfile-buffer-option.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-statfs-validate-path.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-watch-ignore-function.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-watch-ignore-glob.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-watch-ignore-invalid.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-watch-ignore-mixed.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-watch-ignore-regexp.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-promises-watch-iterator.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-read-position-validation.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-fs-read-promises-position-validation.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-fs-readSync-position-validation.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-fs-readdir-promise-recursive-with-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-readdir-recursive-permission.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-readdir-recursive-tree.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_mutating_the_options_object_after_the_call_must_not_affect_t": {}, + "block_01_path_as_given_for_the_top_level_and_a_joined_path_below_it": {}, + "block_02_buffer_encodings_and_buffer_paths": {}, + "block_03_errors_carry_the_directory_that_failed_for_the_root_and_belo": {} + } + }, + "parallel/test-fs-readdir-recursive-with-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-readdir-sync-recursive-with-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-readfile-buffer-option.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-readfile-one-roundtrip.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-readfile-utf8-fast-path.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-readfilesync-utf8-sizes.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-realpath-async-stale-stat-values.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-realpath-namespaced-drive-win.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_fs_realpathsync_resolves_a_namespaced_drive_path": {}, + "test_01_fs_realpathsync_reports_enoent_for_a_missing_namespaced_driv": {}, + "test_02_fs_realpathsync_resolves_a_namespaced_path_through_a_junctio": {}, + "test_03_fs_realpath_resolves_a_namespaced_drive_path": {}, + "test_04_fs_realpath_resolves_a_namespaced_path_through_a_junction": {} + } + }, + "parallel/test-fs-realpath-stale-stat-values.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-rmSync-eperm-retries.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-rmSync-special-char-additional-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-rmSync-special-char.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-rmdir-recursive-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-rmdir-throws-not-found.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-fs-rmdir-throws-on-file.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-fs-stat-abort-test.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_fs_stat_aborts_when_signal_is_already_aborted": {}, + "test_01_fs_stat_aborts_in_flight_when_signal_aborts_after_the_call": {}, + "test_02_fs_stat_throws_err_invalid_arg_type_for_invalid_signal": {}, + "test_03_fs_lstat_aborts_in_flight_when_signal_aborts_after_the_call": {}, + "test_04_fs_fstat_aborts_in_flight_when_signal_aborts_after_the_call": {}, + "test_05_fspromises_stat_rejects_when_signal_is_already_aborted": {}, + "test_06_fspromises_stat_rejects_in_flight_when_signal_aborts_after_t": {}, + "test_07_fspromises_stat_rejects_with_err_invalid_arg_type_for_invali": {}, + "test_08_fspromises_lstat_rejects_in_flight_when_signal_aborts_after_": {}, + "test_09_filehandle_stat_rejects_in_flight_when_signal_aborts_after_t": {} + } + }, + "parallel/test-fs-stat-cancel-inflight.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-stat-date.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-stat-temporal.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-stream-windows-handle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-ignore-function.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-ignore-glob.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-ignore-invalid.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-ignore-mixed.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-ignore-recursive-glob-subdirectories.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-ignore-recursive-glob.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-ignore-recursive-mixed.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-ignore-recursive-regexp.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-ignore-regexp.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-recursive-aix-preserve-watch-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-recursive-delete-race.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-recursive-linux-directory-watchers.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-recursive-prefix-sibling.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-recursive-retry-directory-disappears-before-read.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-recursive-retry-directory-disappears-before-watch.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-recursive-root-disappears-before-read.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-recursive-root-disappears-before-watch-no-throw.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-recursive-root-disappears-before-watch.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-watch-recursive-watch-before-read.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-write-stream-eagain.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-writefile-one-roundtrip.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-fs-writesync-crash.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-hash-seed.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-heap-embedder-graph.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-heapdump-fs-mkdir-recursive.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-http-agent-free-socket-data-guard.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-agent-free-socket-pending-read.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_a_socket_taken_from_the_free_pool": {}, + "block_01_a_released_socket_handed_directly_to_a_queued_request": {} + } + }, + "parallel/test-http-agent-highwatermark-reuse.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-agent-keep-alive-timeout-buffer.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_ensure_agentkeepalivetimeoutbuffer_option_sets_the_correct_v": {}, + "block_01_integration_test_with_server_sending_keep_alive_timeout_head": {} + } + }, + "parallel/test-http-agent-keylog-existing-sockets.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-client-abort-completed-keepalive.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-client-highwatermark.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-client-leaky-with-double-response.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-client-null-prototype-options.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-client-path-toctou.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-client-request-listeners-leak.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-connect-default-host-header.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-expect-continue-reuse-race.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-get-raw-header-names.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-header-value-relaxed.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_test_10b_same_inbound_header_without_insecurehttpparser_pars": {}, + "block_10_block_10": {}, + "block_11_block_11": {}, + "block_12_block_12": {}, + "block_13_block_13": {}, + "block_14_block_14": {}, + "block_15_block_15": {}, + "block_16_block_16": {}, + "block_17_block_17": {} + } + }, + "parallel/test-http-headers-distinct-proto.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-is-valid-header.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_isvalidheadername": {}, + "block_01_isvalidheadervalue": {} + } + }, + "parallel/test-http-keep-alive-empty-line.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-keep-alive-timeout-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-max-headers-count-overflow.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-odd-hex-write.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_1_has_no_complete_bytes_in_hex_encoding_so_the_request_body_": {}, + "block_01_dropped_1_1_hex_char_decodes_to_0_bytes": {}, + "block_02_exercises_the_writev_path_directly_at_the_net_layer": {} + } + }, + "parallel/test-http-outgoing-drain-writable-length.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-outgoing-flush-drain.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-parser-cached-callbacks.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-parser-freed-during-execute.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-parser-max-header-pairs-cache.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_observe_a_fresh_value": {}, + "block_01_preserve_the_existing_exception_behavior_for_the_first_prope": {} + } + }, + "parallel/test-http-pipeline-outgoing-destroy.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-request-connect-path.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-http-request-lookup-error-catchable.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-request-signal.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_1_req_signal_is_an_abortsignal_and_aborts_on_socket_clo": {}, + "block_01_test_2_req_signal_is_not_aborted_when_a_request_body_complet": {}, + "block_02_test_3_req_signal_is_aborted_if_accessed_after_destroy": {}, + "block_03_test_4_multiple_accesses_return_the_same_signal": {}, + "block_04_test_5_res_signal_on_a_client_side_http_request_response_inc": {}, + "block_05_test_6_res_signal_is_not_aborted_when_a_response_body_comple": {}, + "block_06_test_7_client_cancels_a_pending_request": {} + } + }, + "parallel/test-http-response-drain-cork.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-response-socket-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-server-close-idle-connections-pre-request.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-server-connection-list-when-close-deferred.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-server-drop-connections-in-cluster.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-server-invalid-headers-timeout-no-abort.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-server-optimize-empty-requests.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-server-raw-header-lookup.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-upgrade-server-callback.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-upgrade-server-with-body-and-extras.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-upgrade-server-with-body-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-upgrade-server-with-body.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-upgrade-server-with-large-body-unread.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-upgrade-server-with-large-body.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-websocket-mask-fast.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http-websocket-mask-immutable.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_to_the_read_only_backing_store_whatever_the_view_type_offset": {}, + "block_01_do_not_require_a_writable_backing_store": {}, + "block_02_the_mask_itself_may_be_backed_by_an_immutable_arraybuffer": {}, + "block_03_the_optimized_fast_api_path_also_rejects_immutable_targets": {} + } + }, + "parallel/test-http-websocket-mask.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_masking_twice_with_the_same_key_is_the_identity_websocketmas": {}, + "block_01_the_offset_and_length_arguments": {}, + "block_02_the_mask_may_alias_the_output": {}, + "block_03_any_arraybufferview_works_and_is_treated_as_bytes": {}, + "block_04_views_backed_by_a_sharedarraybuffer": {}, + "block_05_empty_and_detached_inputs": {}, + "block_06_argument_validation": {} + } + }, + "parallel/test-http-write-information.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_client_s_information_event": {}, + "block_01_headers_argument_is_optional_nullable": {}, + "block_02_error_cases": {} + } + }, + "parallel/test-http2-allow-http1-upgrade-ws.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-bidirectional-write-deadlock.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-client-session-close-before-stream-close.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-compat-get-headers.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-compat-write-early-hints-invalid-header.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-compat-write-head-after-close.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-compat-write-information.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_error_cases": {} + } + }, + "parallel/test-http2-connection-window-size-option.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-file-reset-pending-write.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-graceful-close.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-max-session-memory-stalled-data.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-max-session-memory-stalled-headers.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-origin-set-max-size.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-raw-headers-defaults.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-raw-headers.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-removed-stream-headers-outlive-session.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-reset-buffered-read.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-reset-pending-write.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-respond-file-fd-leak.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-respond-with-file-cancelled-crash.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-rst-stream-reentrancy.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-server-close-idle-connection.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-server-rfc-9113-client.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-server-rfc-9113-server.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-session-cleanup-on-nghttp2-goaway-after-peer-goaway.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-session-cleanup-on-nghttp2-goaway.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-session-destroy-stream-handler.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-session-graceful-close.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-session-reuse-different-authority.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-single-headers-validation-disabled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-single-headers-validation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-socket-proxy-destroy.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-stream-backpressure-unread-peer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-http2-window-update-overflow.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-https-agent-checkserveridentity-reuse.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-https-agent-pfx-object-array-reuse.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-https-agent-tls-policy-reuse.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-https-empty-write-nested-parser-execute.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-https-expect-continue-reuse-race.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-https-response-tls-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-https-session-reuse-different-servername.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-https-snicallback-override.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-close-terminate-connections.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-debug-async-hook.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-dom-storage-malformed.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-dom-storage.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-emit-protocol-event-errors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-host-warning.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-invalid-protocol.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-network-arbitrary-data.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-network-content-type.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-network-data-received.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_should_stream_network_datareceived_with_data_chunks": {}, + "test_01_network_streamresourcecontent_should_send_all_buffered_chunk": {}, + "test_02_network_streamresourcecontent_should_reject_if_request_id_no": {}, + "test_03_network_getresponsebody_should_send_all_buffered_binary_data": {}, + "test_04_network_getresponsebody_should_send_all_buffered_text_data": {} + } + }, + "parallel/test-inspector-network-data-sent.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_network_getrequestpostdata_should_send_all_buffered_text_dat": {}, + "test_01_network_getrequestpostdata_does_not_support_binary_data": {}, + "test_02_network_getrequestpostdata_should_reject_if_request_id_not_f": {} + } + }, + "parallel/test-inspector-network-http2.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-network-websocket.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-wait.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-inspector-worker-target.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-internal-async-context-frame-disable.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-internal-async-context-frame-enabled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-internal-net-isLoopback.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-internal-util-construct-sab.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-internal-util-getCIDR.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-internal-util-isinsidenodemodules.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-internal-webidl-buffer-source.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_buffersource_accepts_arraybuffer": {}, + "test_01_buffersource_accepts_all_typedarray_kinds": {}, + "test_02_buffersource_accepts_buffer": {}, + "test_03_buffersource_accepts_dataview": {}, + "test_04_buffersource_accepts_cross_realm_buffer_sources": {}, + "test_05_buffersource_accepts_arraybuffer_subclass_instance": {}, + "test_06_buffersource_accepts_typedarray_with_null_prototype": {}, + "test_07_buffersource_accepts_dataview_with_null_prototype": {}, + "test_08_buffersource_accepts_arraybuffer_with_null_prototype": {}, + "test_09_buffersource_rejects_sharedarraybuffer": {}, + "test_10_buffersource_rejects_sab_backed_typedarray": {}, + "test_11_buffersource_rejects_sab_backed_dataview": {}, + "test_12_buffersource_rejects_sab_view_whose_buffer_prototype_was_rea": {}, + "test_13_buffersource_accepts_a_detached_arraybuffer": {}, + "test_14_buffersource_rejects_resizable_arraybuffer_by_default": {}, + "test_15_buffersource_handles_resizable_backed_views_with_explicit_op": {}, + "test_16_buffersource_rejects_sab_backed_views_with_explicit_options": {}, + "test_17_allowsharedbuffersource_accepts_arraybuffer_and_sharedarrayb": {}, + "test_18_allowsharedbuffersource_accepts_cross_realm_buffers": {}, + "test_19_allowsharedbuffersource_accepts_arraybuffer_and_sharedarrayb": {}, + "test_20_allowsharedbuffersource_handles_resizable_buffers_with_expli": {}, + "test_21_test_21": {}, + "test_22_shared_buffer_growability_checks_do_not_read_javascript_prop": {}, + "test_23_shared_webassembly_buffer_growability_is_checked_per_buffer": {}, + "test_24_buffersource_rejects_objects_with_a_forged_tostringtag": {} + } + }, + "parallel/test-internal-webidl-dictionary.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-internal-webidl.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": {}, + "block_12_block_12": {}, + "block_13_block_13": {}, + "block_14_block_14": {}, + "block_15_block_15": {}, + "block_16_block_16": {}, + "block_17_block_17": {}, + "block_18_block_18": {}, + "block_19_block_19": {}, + "block_20_block_20": {}, + "block_21_block_21": {}, + "block_22_block_22": {}, + "block_23_block_23": {} + } + }, + "parallel/test-is-internal-thread.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-mark-promise-handled.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-max-old-space-size-percentage.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-messaging-string-tag.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-mock-timers-abortsignal-timeout.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-module-builtin-experimental.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-module-builtin-policies.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_validate_every_declared_policy_before_testing_its_behavior": {}, + "block_01_callers_must_not_be_able_to_change_the_loader_s_policy_throu": {}, + "block_02_test_option_gated_builtins_in_workers_without_changing_the_p": {} + } + }, + "parallel/test-module-nearest-parent-package-json-cache.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-module-relative-resolve-cache.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_same_for_resolutions_that_throw": {}, + "block_01_a_successful_load_populates_the_cache_and_the_second_load_hi": {} + } + }, + "parallel/test-module-subpath-import-long-path.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-module-unreadable-package-json.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-net-allow-half-open-async-iter-destroy.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-net-allow-half-open-async-iter.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-net-boundsocket-transfer-worker.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-net-boundsocket.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_resolved_address_including_the_os_assigned_ephemeral_port_wh": {}, + "block_01_defaults_the_host_to_the_ipv4_wildcard_when_omitted": {}, + "block_02_no_arguments_reserves_an_os_assigned_ephemeral_port_on_the_i": {}, + "block_03_binds_to_the_same_port_instead_coexist_since_libuv_sets_so_r": {}, + "block_04_throws_synchronously_on_a_non_numeric_host_no_dns_resolution": {}, + "block_05_rejects_a_non_string_host_and_a_non_object_options_argument": {}, + "block_06_test_net_1_rfc_5737_and_is_never_assigned_to_a_local_interfa": {}, + "block_07_immediately_re_bindable": {}, + "block_08_server_adoption_server_listen_boundsocket_then_a_client_roun": {}, + "block_09_the_bound_source_port_and_round_trips": {}, + "block_10_handle_already_owns_the_local_endpoint": {}, + "block_11_resolve_to_the_concrete_source_in_tick_before_the_connect_ev": {}, + "block_12_address_family_mismatch": {}, + "block_13_is_platform_dependent_so_probe_first": {}, + "block_14_block_14": {}, + "block_15_bind_to_the_same_path_throws_eaddrinuse_in_the_constructor": {}, + "block_16_net_connect_path_round_trips_and_the_connection_is_a_pipe": {} + } + }, + "parallel/test-net-connect-custom-lookup-non-string-address.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_when_family_is_ipv4": {}, + "test_01_when_family_is_ipv6": {} + } + }, + "parallel/test-net-keepalive-interval-count.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_four_values_converting_milliseconds_to_seconds_for_the_delay": {}, + "block_01_libuv_defaults_1s_interval_10_probes": {}, + "block_02_form_forwarding_enable_initialdelay_interval_count_to_the_ha": {}, + "block_03_omitted_options_properties_behave_like_omitted_positional_ar": {} + } + }, + "parallel/test-net-negative-zero.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-net-pipe-with-long-path.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-net-server-transfer-worker.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-net-socket-tos.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-net-socket-transfer-worker-http.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-net-socket-transfer-worker.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-net-socket-unref-timer-parent-chain.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-net-transfer-guards.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_event_loops": {}, + "block_01_a_server_that_is_not_listening_no_handle_cannot_be_transferr": {}, + "block_02_a_closed_boundsocket_no_longer_owns_a_handle_and_cannot_be_t": {}, + "block_03_an_adopted_boundsocket_no_longer_owns_a_handle_and_cannot_be": {}, + "block_04_buffered_data_would_be_lost_on_the_sending_side": {} + } + }, + "parallel/test-net-unref-timer-parent-undefined.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-node-output-console.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-node-output-errors.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-node-output-eval.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-node-output-sourcemaps.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-node-output-vm.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-openssl-unreadable-config.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-os-constants-signals.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-os-fast.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-package-map-cli.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-parse-args.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_when_short_option_used_as_flag_then_stored_as_flag": {}, + "test_01_when_short_option_used_as_flag_before_positional_then_stored": {}, + "test_02_when_short_option_type_string_used_with_value_then_stored_as": {}, + "test_03_when_short_option_listed_in_short_used_as_flag_then_long_opt": {}, + "test_04_test_04": {}, + "test_05_when_short_option_type_string_used_without_value_then_stored": {}, + "test_06_short_option_group_behaves_like_multiple_short_options": {}, + "test_07_short_option_group_does_not_consume_subsequent_positional": {}, + "test_08_if_terminal_of_short_option_group_configured_type_string_sub": {}, + "test_09_handles_short_option_groups_in_conjunction_with_long_options": {}, + "test_10_handles_short_option_groups_with_short_alias_configured": {}, + "test_11_handles_short_option_followed_by_its_value": {}, + "test_12_everything_after_a_bare_is_considered_a_positional_argument": {}, + "test_13_args_are_true": {}, + "test_14_arg_is_true_and_positional_is_identified": {}, + "test_15_args_equals_are_passed_type_string": {}, + "test_16_when_args_include_single_dash_then_result_stores_dash_as_pos": {}, + "test_17_zero_config_args_equals_are_parsed_as_if_type_string": {}, + "test_18_same_arg_is_passed_twice_type_string_and_last_value_is_recor": {}, + "test_19_args_equals_pass_string_including_more_equals": {}, + "test_20_first_arg_passed_for_type_string_and_multiple_is_in_array": {}, + "test_21_args_are_passed_type_string_and_multiple": {}, + "test_22_test_22": {}, + "test_23_order_of_option_and_positional_does_not_matter_per_readme": {}, + "test_24_correct_default_args": {}, + "test_25_excess_leading_dashes_on_options_are_retained": {}, + "test_26_positional_arguments_are_allowed_by_default_in_strict_false": {}, + "test_27_positional_arguments_may_be_explicitly_disallowed_in_strict_": {}, + "test_28_invalid_argument_passed_for_options": {}, + "test_29_type_property_missing_for_option_then_throw": {}, + "test_30_boolean_passed_to_type_option": {}, + "test_31_invalid_union_value_passed_to_type_option": {}, + "test_32_unknown_long_option_bar": {}, + "test_33_unknown_short_option_b": {}, + "test_34_unknown_option_r_in_short_option_group_bar": {}, + "test_35_unknown_option_with_explicit_value": {}, + "test_36_unexpected_positional": {}, + "test_37_unexpected_positional_after": {}, + "test_38_by_itself_is_not_a_positional": {}, + "test_39_string_option_used_as_boolean": {}, + "test_40_boolean_option_used_with_value": {}, + "test_41_invalid_short_option_length": {}, + "test_42_null_prototype_when_no_options_then_values_tostring_is_undef": {}, + "test_43_null_prototype_when_tostring_then_values_tostring_is_true": {}, + "test_44_strict_when_candidate_option_value_is_plain_text_then_does_n": {}, + "test_45_strict_when_candidate_option_value_is_then_does_not_throw": {}, + "test_46_strict_when_candidate_option_value_is_then_throws": {}, + "test_47_strict_when_candidate_option_value_is_short_option_then_thro": {}, + "test_48_strict_when_candidate_option_value_is_short_option_digit_the": {}, + "test_49_strict_when_candidate_option_value_is_long_option_then_throw": {}, + "test_50_strict_when_short_option_and_suspect_value_then_throws_with_": {}, + "test_51_strict_when_long_option_and_suspect_value_then_throws_with_l": {}, + "test_52_strict_when_short_option_and_suspect_value_then_throws_with_": {}, + "test_53_strict_when_long_option_and_suspect_value_then_throws_with_w": {}, + "test_54_tokens_positional": {}, + "test_55_tokens_followed_by_option_like": {}, + "test_56_tokens_strict_true_boolean_short": {}, + "test_57_tokens_strict_true_boolean_long": {}, + "test_58_tokens_strict_false_boolean_short": {}, + "test_59_tokens_strict_false_boolean_long": {}, + "test_60_tokens_strict_false_boolean_option_group": {}, + "test_61_tokens_strict_false_boolean_option_group_with_repeated_optio": {}, + "test_62_tokens_strict_true_string_short_with_value_after_space": {}, + "test_63_tokens_strict_true_string_short_with_value_inline": {}, + "test_64_tokens_strict_false_string_short_missing_value": {}, + "test_65_tokens_strict_true_string_long_with_value_after_space": {}, + "test_66_tokens_strict_true_string_long_with_value_inline": {}, + "test_67_tokens_strict_false_string_long_with_value_inline": {}, + "test_68_tokens_strict_false_string_long_missing_value": {}, + "test_69_tokens_strict_true_complex_option_group_with_value_after_spa": {}, + "test_70_tokens_strict_true_complex_option_group_with_inline_value": {}, + "test_71_tokens_strict_false_with_single_dashes": {}, + "test_72_tokens_strict_false_with": {}, + "test_73_default_must_be_a_boolean_when_option_type_is_boolean": {}, + "test_74_default_must_accept_undefined_value": {}, + "test_75_default_must_be_a_boolean_array_when_option_type_is_boolean_": {}, + "test_76_default_must_be_a_boolean_array_when_option_type_is_string_a": {}, + "test_77_default_must_be_a_string_when_option_type_is_string": {}, + "test_78_default_must_be_an_array_when_option_type_is_string_and_mult": {}, + "test_79_default_must_be_a_string_array_when_option_type_is_string_an": {}, + "test_80_default_accepted_input_when_multiple_is_true": {}, + "test_81_when_default_is_set_the_option_must_be_added_as_result": {}, + "test_82_when_default_is_set_the_args_value_takes_precedence": {}, + "test_83_tokens_should_not_include_the_default_options": {}, + "test_84_tokens_true_should_not_include_the_default_options_after_the": {}, + "test_85_proto_as_default_value_must_be_ignored": {}, + "test_86_multiple_as_false_should_expect_a_string": {}, + "test_87_disable_negative_options_and_args_are_started_with_no_prefix": {}, + "test_88_args_are_passed_type_string_and_allow_negative_options": {}, + "test_89_args_are_passed_type_boolean_and_allow_negative_options": {}, + "test_90_args_are_passed_default_true_and_allow_negative_options": {}, + "test_91_args_are_passed_default_false_and_allow_negative_options": {}, + "test_92_allow_negative_options_and_multiple_as_true": {}, + "test_93_allow_negative_options_and_passed_multiple_arguments": {}, + "test_94_auto_detect_no_foo_as_negated_when_strict_false_and_allowneg": {} + } + }, + "parallel/test-parse-test-envs.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-parse-test-only-envs.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-path-win32-normalize-device-names.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-eventlooputilization.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-histogram-analysis.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": {}, + "block_12_block_12": {}, + "block_13_block_13": {}, + "block_14_block_14": {} + } + }, + "parallel/test-perf-hooks-histogram-diff.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-perf-hooks-histogram-external-memory.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-histogram-fast-calls.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-histogram-import.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {} + } + }, + "parallel/test-perf-hooks-histogram-qrde-oracle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-histogram-qrde-worker.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-histogram-qrde.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-histogram-record-zero.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {} + } + }, + "parallel/test-perf-hooks-histogram-snapshot.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-perf-hooks-histogram-stats.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": {}, + "block_12_block_12": {} + } + }, + "parallel/test-perf-hooks-monitor-event-loop-delay-fast-calls.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-monitor-event-loop-delay-options.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-perf-hooks-monitor-event-loop-delay-resolution.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-resourcetiming-attributes.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_default_values_when_no_optional_timing_or_body_metadata_is_p": {}, + "block_01_responsestart_falls_back_to_the_final_response_when_no_inter": {}, + "block_02_values_reflected_from_timing_info_and_body_info": {} + } + }, + "parallel/test-perf-hooks-resourcetiming-fetch.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-sliding-window-histogram-fast-calls.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-sliding-window-histogram.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-perf-hooks-timerify-basic.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-timerify-constructor.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-timerify-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-timerify-histogram-async.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-timerify-histogram-sync.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-timerify-invalid-args.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-timerify-multiple-wrapping.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-perf-hooks-timerify-return-value.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-performance-gc-minor-ms.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-performance-many-marks.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-performance-nodetiming-uvmetricsinfo-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-performance-nodetiming-uvmetricsinfo-worker.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-performance-timeline.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-performanceobserver-observer-counts.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-permission-allow-fs-vfs-flags.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-allow-inspector.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-audit-addons-does-not-deny.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_audit_mode_reaches_the_real_dlopen_and_logs_the_denial": {}, + "test_01_enforce_mode_still_disables_dlopen_upfront": {} + } + }, + "parallel/test-permission-audit-child-process-inherit-flags.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_child_should_inherit_permission_audit_and_the_allow_flags_vi": {}, + "block_02_child_spawned_with_explicit_permission_should_use_its_own_fl": {}, + "block_03_child_spawned_with_explicit_permission_audit_should_use_its_": {}, + "block_04_block_04": {} + } + }, + "parallel/test-permission-audit-fs-does-not-deny.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_permission_audit_logs_fs_denial_without_throwing": {}, + "test_01_permission_audit_logs_fs_denial_without_throwing_eval": {} + } + }, + "parallel/test-permission-audit-fs-lstat-symlink-does-not-deny.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-audit-fs-realpath.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-audit-net-does-not-deny.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_permission_audit_logs_net_denial_without_blocking_connect": {}, + "test_01_permission_audit_logs_net_denial_without_blocking_connect_ev": {} + } + }, + "parallel/test-permission-child-process-inherit-flags-substring.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_still_gets_its_own_flags_honored_regression_test_for_existin": {}, + "block_01_block_01": {} + } + }, + "parallel/test-permission-child-process-inherit-flags.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_it_should_not_override_when_permission_is_passed": {}, + "block_04_it_should_not_override_when_node_options_with_permission_is_": {}, + "block_05_block_05": {} + } + }, + "parallel/test-permission-config-file.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-diagnostics-channel.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-dlopen-binary.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_both_permissions_granted_the_addon_loads": {}, + "block_01_bytes_are_never_materialized": {}, + "block_02_the_same_as_any_other_dlopen_under_the_permission_model": {}, + "block_03_without_the_permission_model_neither_check_applies": {}, + "block_04_mounted_vfs_mounting_one_under_the_permission_model_needs_al": {} + } + }, + "parallel/test-permission-drop-addons.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-drop-child-process.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-permission-drop-diagnostics-channel.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-drop-errors.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-permission-drop-fs-all.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-permission-drop-fs-granted-path.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_grant_a_directory_try_to_drop_a_file_inside_it_should_be_a_n": {}, + "block_01_grant_a_directory_drop_the_same_directory_should_revoke_all_": {}, + "block_02_grant_two_directories_drop_one_the_other_remains_accessible": {}, + "block_03_the_directory_grant_still_covers_everything_including_that_f": {}, + "block_04_drop_entire_scope_without_reference_revokes_everything": {} + } + }, + "parallel/test-permission-drop-fs-read.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-permission-drop-fs-scope.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-permission-drop-fs-specific-path.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-drop-fs-write.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-permission-drop-net.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-permission-drop-not-enabled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-drop-worker.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-permission-fs-filehandle-sync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-fs-filehandle-utimes.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-fs-read-entrypoint.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-fs-watch-recursive.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-fs-write-trace-events.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-has-fast-api.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-has-reference-types.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-linked-binding-drop.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-linked-binding.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-net-allowed.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-net-cluster.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-net-dns.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {} + } + }, + "parallel/test-permission-net-dtls.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_connect_should_throw_err_access_denied": {}, + "block_01_test_listen_should_throw_err_access_denied": {}, + "block_02_time_but_bind_requires_net_permission": {} + } + }, + "parallel/test-permission-net-fetch.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-net-http.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-net-https.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-net-quic.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_connect_should_reject_with_err_access_denied": {}, + "block_01_test_listen_should_throw_err_access_denied": {}, + "block_02_since_no_network_i_o_occurs_at_construction_time": {} + } + }, + "parallel/test-permission-net-socket-fd.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_a_listening_tcp_socket": {}, + "block_01_the_standard_streams_are_adopted_without_allow_net": {}, + "block_02_child_with_an_ipc_channel_still_require_it": {} + } + }, + "parallel/test-permission-net-tcp.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-net-udp-handle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-net-udp.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-net-uds.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-permission-net-warning.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-net-websocket.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-permission-openssl-store.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_denied_by_default_when_the_flag_is_not_provided": {}, + "block_01_fs_read_is_not_granted": {}, + "block_02_openssl_tries_the_file_loader_before_the_loader_identified_b": {} + } + }, + "parallel/test-process-execve-no-args.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-execve-on-exit.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-execve-permission-fail.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-execve-permission-granted.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-execve-socket.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-execve-throws.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-execve-validation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-execve-worker-threads.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-execve.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-exit-after-fetch-throw.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-finalization.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_register_is_different_per_thread": {}, + "test_01_should_throw_when_register_undefined_value": {} + } + }, + "parallel/test-process-threadCpuUsage-main-thread.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-threadCpuUsage-worker-threads.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-timeout-blocked.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-process-timeout-coverage.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-timeout-inspector.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-timeout-options.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-process-timeout.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {} + } + }, + "parallel/test-process-warnings.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-promise-race-memory-leak.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-promise-unhandled-error-with-reading-file.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-address-validation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-alpn-h3.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-alpn-mismatch.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-alpn.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-blocklist.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_deny_mode_block_127_0_0_1": {}, + "block_01_allow_mode_only_allow_127_0_0_1": {} + } + }, + "parallel/test-quic-callback-error-onblocked.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-ondatagram-async.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-ondatagram.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-ondatagramstatus.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-onerror-option.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-onerror-validation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-onerror.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_first_client_destroy_with_error_onerror_fires": {}, + "block_01_second_client_destroy_without_error_onerror_should_not_fire": {} + } + }, + "parallel/test-quic-callback-error-onhandshake.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-onnewtoken.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-onpathvalidation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-onreset.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-onsessionticket.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-onstream-async.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-onstream.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-stream-onerror.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_it_and_can_close_cleanly": {} + } + }, + "parallel/test-quic-callback-error-suppressed-async.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-callback-error-suppressed.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-cc-algorithm.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-certificate-compression.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-connection-concurrent.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-connection-limits.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram-abandoned.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram-drop-newest.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram-drop-oldest.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram-echo.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram-edge-cases.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_dgram_08_dgimp_08_zero_length_datagram_returns_0n": {}, + "block_01_dgc_01_dgimp_09_maxdatagramframesize_0_disables_datagrams": {}, + "block_02_dgram_11_no_ondatagram_callback_no_crash": {} + } + }, + "parallel/test-quic-datagram-frame-size-validation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram-multiple.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram-no-detach.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram-size-limits.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram-sources.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_dgimp_01_string_with_custom_encoding": {}, + "block_01_dgimp_02_promise_input": {}, + "block_02_dgimp_03_promise_input_session_closes_during_await": {}, + "block_03_dgimp_04_sharedarraybuffer": {}, + "block_04_dgimp_05_pooled_buffer_partial_view": {}, + "block_05_dgimp_06_dataview": {} + } + }, + "parallel/test-quic-datagram-status.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram-utf8.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-datagram.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-default-stream-limits.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-diagnostics-channel-busy.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-diagnostics-channel-datagram-status.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-diagnostics-channel-datagram.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-diagnostics-channel-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-diagnostics-channel-path.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-diagnostics-channel-session.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-diagnostics-channel-stream.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-diagnostics-channel-token.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-diagnostics-channel.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-draining-period.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_after_server_closes_not_after_the_full_idle_timeout": {}, + "block_01_test_2_custom_drainingperiodmultiplier_is_accepted": {}, + "block_02_test_3_values_below_3_are_rejected_by_js_validation": {}, + "block_03_test_4_invalid_types_are_rejected": {} + } + }, + "parallel/test-quic-early-selection-order.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_delivered_already_in_the_first_flight_delivery_must_be_defer": {}, + "block_01_key_share_for_x25519_the_so_an_automatic_hrr_is_required": {} + } + }, + "parallel/test-quic-edge-closing-ops.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-edge-concurrent-close.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-edge-destroyed-ops.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-edge-endpoint-destroy-active.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-edge-idempotent.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-edge-session-close-immediate.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-edge-session-destroy-immediate.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-enable-early-data.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-endpoint-async-dispose.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-endpoint-bind-failure.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-endpoint-bind.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-endpoint-busy.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-endpoint-close-destroy.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-endpoint-destroy-after-close.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-endpoint-destroy-cascade-close-frame.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-endpoint-idle-timeout.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_udp_handle_is_unref_d_so_it_won_t_block_process_exit": {}, + "block_01_test_2_idletimeout_0_endpoint_stays_alive_briefly": {} + } + }, + "parallel/test-quic-endpoint-onsession-throws.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-quic-endpoint-reuse.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_1_connect_reuses_endpoints_by_default": {}, + "block_01_test_2_reuseendpoint_false_creates_separate_endpoints": {}, + "block_02_test_3_connect_to_a_listening_endpoint_s_address_is_not_reus": {} + } + }, + "parallel/test-quic-endpoint-state-transitions.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_binding_to_0_0_0_0": {} + } + }, + "parallel/test-quic-error-class.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_1_bigint_errorcode_default_type_default_node_code": {}, + "block_01_2_number_errorcode_coerced_to_bigint": {}, + "block_02_3_boundary_0n_is_allowed": {}, + "block_03_4_boundary_2_62_1_is_allowed_largest_valid_62_bit_varint": {}, + "block_04_5_explicit_type_transport": {}, + "block_05_6_explicit_type_application_default": {}, + "block_06_7_custom_node_js_error_code_string_via_options_code": {}, + "block_07_prototype": {} + } + }, + "parallel/test-quic-error-destroy-rejects-promises.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_first_client_destroy_before_the_handshake_completes": {}, + "block_01_second_client_destroy_after_the_handshake_completes": {} + } + }, + "parallel/test-quic-exports-constants.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-exports.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-flow-control-bidi-simultaneous-volume.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-flow-control-blob.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-flow-control-block-resume.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-flow-control-concurrent-volume.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-flow-control-credit-reclaim.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-flow-control-large-constrained.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_bidirectional_client_sends_a_large_body_server_verifies_it": {}, + "block_01_different_transport_parameters_and_a_different_stream_type": {} + } + }, + "parallel/test-quic-flow-control-params.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-flow-control-slow-consumer-volume.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-flow-control-uni.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-callback-errors.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_sync_throw_in_onheaders_callback_destroys_the_stream": {}, + "block_01_async_rejection_in_onheaders_callback_destroys_the_stream": {}, + "block_02_sync_throw_in_ontrailers_callback_destroys_the_stream": {}, + "block_03_sync_throw_in_onorigin_callback_destroys_the_session": {}, + "block_04_the_thrown_error": {} + } + }, + "parallel/test-quic-h3-close-behavior.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-concurrent-requests.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-datagram.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_datagrams_work_alongside_h3_request_response": {}, + "block_01_h3_datagrams": {} + } + }, + "parallel/test-quic-h3-error-codes.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_client_s_session_closed_rejects_with_the_error": {}, + "block_01_which_is_treated_as_a_clean_shutdown_not_an_error": {} + } + }, + "parallel/test-quic-h3-flow-control-volume.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-goaway-non-h3.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-goaway.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-handshake-failure.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-header-interest.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-header-validation.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_lowercased_buildngheaderstring_lowercases_before_passing_to_": {}, + "block_01_verify_multiple_pseudo_header_combinations_work_correctly": {} + } + }, + "parallel/test-quic-h3-headers-support.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-informational-headers.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-maxstreamdata-external-buffer-failure.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-origin.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_wildcard_entries_are_excluded": {}, + "block_01_authoritative_true_default_included_in_origin_frame": {} + } + }, + "parallel/test-quic-h3-pending-stream.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-post-filehandle.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-post-request.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-priority.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_on_the_control_stream_has_been_processed_by_nghttp3_internal": {} + } + }, + "parallel/test-quic-h3-qpack-settings.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_table_is_not_used_verifies_the_option_is_passed_through_to_n": {}, + "block_01_verifies_large_dynamic_table_capacity_is_accepted": {} + } + }, + "parallel/test-quic-h3-request-rejected.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-request-response.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-settings.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_2_custom_headers_6_pairs_the_6th_pair_is_silently_dropped": {}, + "block_01_pushes_the_total_over_the_limit": {}, + "block_02_verify_these_options_are_accepted_and_h3_sessions_work_with_": {} + } + }, + "parallel/test-quic-h3-status-code-type.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-stream-credit.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-stream-destroy-no-resurrect.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-stream-destroy-with-headers.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-stream-idle-timeout.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_h3_stream_destroyed_after_idle_timeout": {}, + "block_01_h3_stream_with_ongoing_data_is_not_destroyed": {}, + "block_02_disabled_when_set_to_0": {} + } + }, + "parallel/test-quic-h3-stream-without-onstream.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_an_h3_request_completes_with_only_session_level_stream_callb": {}, + "block_01_warning_the_h3_block_above_must_not_trigger_that_warning": {}, + "block_02_consumer_accepts_it_in_quicsession_hasstreamconsumer": {} + } + }, + "parallel/test-quic-h3-trailing-headers.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-uni-stream-limit-start-failure.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-uni-stream-teardown.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-zero-rtt-bogus-ticket.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-h3-zero-rtt-rejected-settings.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_enable_connect_protocol_disabled": {}, + "block_01_enable_datagrams_disabled": {}, + "block_02_max_field_section_size_decreased": {} + } + }, + "parallel/test-quic-h3-zero-rtt.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-handshake-ipv6-only.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-handshake-timeout.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-handshake.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-internal-endpoint-listen-defaults.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-internal-endpoint-options.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-internal-endpoint-stats-state.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {} + } + }, + "parallel/test-quic-internal-setcallbacks.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-keepalive.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_pingrecv_stat_should_be_0": {}, + "block_01_without_keepalive_default_no_additional_pings_after_handshak": {} + } + }, + "parallel/test-quic-key-update-peer.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-key-update.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-list-endpoints.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_created_endpoints_appear_in_the_list": {}, + "block_01_destroyed_endpoints_are_excluded_by_active_filter": {}, + "block_02_busy_endpoints_are_excluded_by_the_active_filter": {} + } + }, + "parallel/test-quic-max-payload-size.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-max-window.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_maxstreamwindow_limits_per_stream_window": {}, + "block_01_maxwindow_limits_session_level_window": {} + } + }, + "parallel/test-quic-maxstreamdata-external-buffer-failure.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-module-exports.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-multipacket-clienthello.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-new-token.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-perf-hooks.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-preferred-address-ignore.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-qlog.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-reject-unauthorized.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_the_validation_error_is_available_in_the_info_object": {}, + "block_01_the_session_opened_promise_rejects_when_the_cert_is_invalid": {}, + "block_02_the_tls_handshake_itself_fails_the_session_opened_promise_re": {} + } + }, + "parallel/test-quic-session-application-options.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-close-error-code.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_err_quic_application_error_with_the_exact_code_and_reason": {}, + "block_01_err_quic_transport_error_with_the_exact_code": {}, + "block_02_the_peer_receives_the_quic_application_error": {}, + "block_03_verify_the_default_close_sends_no_error_and_the_peer_closes_": {} + } + }, + "parallel/test-quic-session-close-graceful.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-quic-session-close-sends-frame.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-close.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-quic-session-destroy-reentrant.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-quic-session-destroy-validate-options.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-destroy.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-quic-session-emit-ordering.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-idle-timeout.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-initial-rtt.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-opened-early-destroy.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-quic-session-opened-info.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-opened-validation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-preferred-address-ignore.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-preferred-address-ipv6.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-preferred-address.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-properties.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-stats-datagram.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-stats-detailed.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-stats.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-stream-lifecycle.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-transport-params.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-session-unobserved-error-close.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-shared-endpoint-stream-close.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-sni-mismatch.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-sni-multi-entry.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_client_1_connects_with_servername_host1_example_com": {}, + "block_01_client_2_connects_with_servername_host2_example_com": {}, + "block_02_client_3_connects_with_servername_unknown_example_com_wildca": {} + } + }, + "parallel/test-quic-sni-setcontexts.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_first_connection_uses_agent1_cert": {}, + "block_01_second_connection_should_use_agent2_cert": {} + } + }, + "parallel/test-quic-sni.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stateless-reset.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_stateless_reset_received_closes_session": {}, + "block_01_disablestatelessreset_prevents_the_server_from_sending_reset": {}, + "block_02_with_burst_1_and_rate_0_only_one_reset_can_be_sent": {} + } + }, + "parallel/test-quic-stats-tojson-inspect.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-bidi-basic.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-bidi-concurrent.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-bidi-echo.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-bidi-halfclose.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-bidi-large.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-bidi-server-initiated.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-bidi-setbody.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-bidi-varchunklen.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-bidi-writer.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-body-async-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-body-async-iterable.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-body-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-body-filehandle.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_filehandle_as_body_in_createbidirectionalstream": {}, + "block_01_filehandle_as_body_in_setbody": {}, + "block_02_locked_filehandle_rejects_on_second_use": {} + } + }, + "parallel/test-quic-stream-body-pooled-buffer.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-body-promise-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-body-promise-invalid.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-body-promise-reject.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-body-promise.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_promise_string": {}, + "block_01_promise_null": {} + } + }, + "parallel/test-quic-stream-body-readable-stream.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_web_readablestream_as_body_source": {}, + "block_01_node_js_stream_readable_as_body_source": {} + } + }, + "parallel/test-quic-stream-body-sources.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_1_arraybuffer_body": {}, + "block_01_test_2_arraybufferview_with_non_zero_byteoffset": {}, + "block_02_test_3_sharedarraybuffer_body": {}, + "block_03_test_4_blob_body": {} + } + }, + "parallel/test-quic-stream-body-state.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_setbody_after_writer_accessed_throws": {}, + "block_01_writer_after_setbody_throws": {}, + "block_02_setbody_on_destroyed_stream_throws": {} + } + }, + "parallel/test-quic-stream-body-string-shorthand.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_string_body_in_createbidirectionalstream_options": {}, + "block_01_string_body_with_setbody": {}, + "block_02_utf_8_multi_byte_characters_preserved_correctly": {} + } + }, + "parallel/test-quic-stream-body-string.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-body-sync-iterable.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-closed-promise.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-closed-rejects.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-destroy-emits-reset.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-destroy-emits-stop-sending.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-destroy-no-resurrect.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-destroy-options-code.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-destroy-options-validate.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-error-graceful-close.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-id-ordering.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-idle-timeout.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_stream_destroyed_after_idle_timeout": {}, + "block_01_stream_with_data_is_not_destroyed": {}, + "block_02_disabled_when_set_to_0": {} + } + }, + "parallel/test-quic-stream-iteration-batching.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-iteration-break.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-iteration-double.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-iteration-nonreadable.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-iteration-pipeto.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-iteration-pull.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-iteration.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-limits-pending.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-limits-uni.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-many-rapid.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-onblocked.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-pending.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-priority.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_setpriority_throws_because_the_session_doesn_t_support_prior": {}, + "block_01_test_2_validation_of_createstream_priority_incremental_optio": {}, + "block_02_test_3_setpriority_throws_on_non_h3_sessions_regardless_of_a": {} + } + }, + "parallel/test-quic-stream-read-after-blocked.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-read-after-fin.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-recv-coalescing.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-reset-after-data.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-reset-before-data.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-reset-mid-transfer.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-reset-stop.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-setbody-errors.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_1_setbody_after_setbody_throws": {}, + "block_01_test_2_setbody_after_writer_accessed_throws": {} + } + }, + "parallel/test-quic-stream-slow-consumer.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-stats.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-stop-sending-buffered.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-stop-sending-callback.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-stop-sending-interaction.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-truncated-reads-destroy.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_object": {}, + "block_01_truncation_reported_as_aborted_under_the_default_policy": {}, + "block_02_end": {}, + "block_03_reports_the_truncation_the_same_way_with_closed_resolving_cl": {} + } + }, + "parallel/test-quic-stream-truncated-reads-timeout.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-quic-stream-truncated-reads.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_rule_3_the_default_reports_it_ignore_treats_it_as_a_clean_en": {}, + "block_01_block_01": {}, + "block_02_carrying_the_peer_s_code_it_also_rejects_the_closed_promise_": {}, + "block_03_block_03": {}, + "block_04_default_policy_reports_it_and_ignore_does_not": {}, + "block_05_block_05": {}, + "block_06_policy_s_promise_the_incomplete_stream_never_looks_complete": {}, + "block_07_check_the_option_in_the_server_case_as_well": {} + } + }, + "parallel/test-quic-stream-uni-basic.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-uni-no-onstream.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-uni-server-initiated.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-write-partial-view.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-writer-api.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_write_async": {}, + "block_01_writevsync_vectored_write": {}, + "block_02_writev_async_vectored_write": {}, + "block_03_end_async_close": {}, + "block_04_web_idl_writer_argument_conversion": {}, + "block_05_block_05": {}, + "block_06_return_null_when_errored": {} + } + }, + "parallel/test-quic-stream-writer-dispose.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-writer-drain-unhandled-rejection.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-stream-writer-fail-error-code.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_1_plain_error_session_internalerrorcode_0x1n_for_non_h3": {}, + "block_01_2_quicerror_with_explicit_code_peer_sees_that_exact_code": {} + } + }, + "parallel/test-quic-stream-zero-length.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-test-client.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-test-server.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-tls-ca.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-tls-crl.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_non_revoked_agent3_with_original_crl_doesn_t_list_agent3": {}, + "block_01_revoked_agent3_with_crl_that_revokes_agent3": {} + } + }, + "parallel/test-quic-tls-keylog.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-tls-options.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_custom_ciphers_use_a_specific_tls_1_3_cipher_suite": {}, + "block_01_custom_groups_use_a_specific_key_exchange_group": {}, + "block_02_default_ciphers_groups_are_non_empty_strings_from_constants": {} + } + }, + "parallel/test-quic-tls-trace.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-tls-verify-client.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_tls_03_client_provides_a_certificate_handshake_succeeds": {}, + "block_01_closes_both_sides_with_a_transport_error": {} + } + }, + "parallel/test-quic-token-distinct.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-token-expired.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-token-reuse.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-token-secret.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-transport-params-validation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-version-negotiation-oversized-cid.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-version-negotiation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-version.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-worker-terminate.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-writer-abort-signal.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-writer-async-dispose-ended.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-writer-backpressure.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-writer-write-rejects.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-zero-rtt-datagram.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-zero-rtt-disabled-client.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-zero-rtt-disabled-server.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-zero-rtt-rejected-settings.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quic-zero-rtt.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-quotaexceedederror.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_prototype_chain": {}, + "block_01_default_properties": {}, + "block_02_custom_message": {}, + "block_03_options_with_quota_and_requested": {}, + "block_04_options_with_only_quota": {}, + "block_05_options_with_only_requested": {}, + "block_06_options_with_zero_values": {}, + "block_07_equal_quota_and_requested_is_valid": {}, + "block_08_numeric_string_coercion": {}, + "block_09_null_undefined_options_are_allowed": {}, + "block_10_still_works_and_returns_code_22_but_is_not_instanceof_quotae": {}, + "block_11_symboltostringtag": {}, + "block_12_property_descriptors_for_quota_requested_are_enumerable_and_": {}, + "block_13_getter_throws_on_invalid_this": {}, + "block_14_structuredclone_preserves_properties": {}, + "block_15_structuredclone_with_null_quota_requested": {} + } + }, + "parallel/test-readline-line-separators.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-readline-promises-csi.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {} + } + }, + "parallel/test-repl-async-iife.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-close.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-completion-on-getters-disabled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-custom-eval-previews.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-custom-eval.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-eval-error-after-close.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-highlight.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-history-dedup-multiline.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-history-init-fail-leak.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-history-load-preserves-pending-entries.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-load-multiline-from-history.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-multiline-navigation-while-adding.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {} + } + }, + "parallel/test-repl-multiline-navigation.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-repl-multiple-instances-async-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-no-terminal-restore-process-listeners.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-preview-timeout.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-programmatic-history-setup-history.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-save-load-editor-mode.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-save-load-invalid-save.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-save-load-load-dir.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-save-load-load-non-existent.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-save-load-load-without-name.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-save-load-save-without-name.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-tab-complete-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-tab-complete-computed-props.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-tab-complete-custom-completer.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_sync_mode": {}, + "block_01_async_mode": {} + } + }, + "parallel/test-repl-tab-complete-files.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-tab-complete-new-expression.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-tab-complete-nosideeffects.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-tab-complete-require.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_tab_completion_on_require_on_builtin_modules_works": {}, + "block_01_tab_completion_on_require_on_builtin_modules_works_with_extr": {}, + "block_02_tab_completion_on_require_on_external_modules_works": {}, + "block_03_block_03": {}, + "block_04_test_tab_completion_for_require_relative_to_the_current_dire": {} + } + }, + "parallel/test-repl-tab-complete-unary-expressions.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-uncaught-exception-after-input-ended.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-repl-user-error-handler.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-require-package-map.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-require-resolve-invalid-paths.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-aftereach-runtime-skip.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_normal_test": {}, + "test_01_runtime_skip": {}, + "test_02_static_skip": {} + } + }, + "parallel/test-runner-cli-randomize.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-complex-dependencies.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-coverage-default-exclusion.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-coverage-isolation-none-api.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-diagnostics-channel.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_suite_end_ordering": {}, + "test_01_passing_test_fires_start_and_end": {}, + "test_02_test_02": {}, + "test_03_bindstore_value_is_isolated_between_tests": {}, + "test_04_nested_tests_fire_events_with_correct_names": {}, + "test_05_describe_block_with_tests": {}, + "test_06_context_is_available_in_async_operations_within_test": {}, + "test_07_bindstore_propagates_store_to_end_and_error_subscribers": {}, + "test_08_error_events_fire_for_failing_tests_in_fixture": {} + } + }, + "parallel/test-runner-enqueue-file-syntax-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-entry-file.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-execution-ordered-bypass.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-expect-error-but-pass.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-expect-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-flag-propagation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-get-test-context.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_gettestcontext_returns_current_context_inside_test": {}, + "test_01_gettestcontext_works_in_nested_test": {}, + "test_02_gettestcontext_works_in_describe_it": {}, + "test_03_gettestcontext_returns_suitecontext_in_suite": {}, + "test_04_gettestcontext_inside_hooks": {}, + "test_05_gettestcontext_inside_test_level_hooks_returns_the_parent_te": {}, + "test_06_gettestcontext_works_in_test_body_during_async_operations": {} + } + }, + "parallel/test-runner-global-setup-teardown.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-global-setup-watch-mode.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-inspect.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_outputs_coverage_when_event_loop_is_drained_with_no_async_lo": {} + } + }, + "parallel/test-runner-log.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_t_log_validates_its_arguments": {}, + "test_01_built_in_reporters_render_test_log_like_diagnostics": {}, + "test_02_test_log_is_emitted_immediately_with_the_expected_payload": {} + } + }, + "parallel/test-runner-mock-dual-package.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-mock-timers-with-timeout.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-no-isolation-different-cwd.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-no-isolation-hooks.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_use_import_cjs_to_define_global_hooks": {}, + "test_01_use_import_esm_to_define_global_hooks": {}, + "test_02_use_require_to_define_global_hooks": {} + } + }, + "parallel/test-runner-no-isolation-load-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-no-isolation.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-option-precedence.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-plan.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_input_validation": {}, + "test_01_test_planning": {} + } + }, + "parallel/test-runner-randomize-first-draw.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-run-coverage.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-run-files-undefined.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-run-global-hooks.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-run.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_require_node_test_run": {}, + "test_01_env": {}, + "test_02_forceexit": {}, + "test_03_with_isolation_none": {} + } + }, + "parallel/test-runner-seeded-generator.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-tag-filter-cli.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_no_filter_every_test_runs": {}, + "test_01_single_filter_db": {}, + "test_02_filter_is_case_insensitive": {}, + "test_03_untagged_parent_runs_only_the_matching_tagged_child": {}, + "test_04_not_x_also_includes_untagged_tests": {}, + "test_05_repeated_experimental_test_tag_filter_ands_together": {}, + "test_06_bare_matches_any_tagged_test_excludes_untagged": {}, + "test_07_wildcard_prefix_db_matches_db_db_postgres_etc": {}, + "test_08_boolean_composition_unit_slow": {}, + "test_09_isolation_none_produces_identical_filtered_set": {}, + "test_10_combined_with_test_skip_pattern_pure_and": {}, + "test_11_malformed_expression_unbalanced_parenthesis_errors_at_startu": {}, + "test_12_malformed_expression_dangling_operator_errors_at_startup": {}, + "test_13_empty_experimental_test_tag_filter_is_rejected_by_argv_parse": {}, + "test_14_reserved_word_as_tag_value_errors_at_registration": {} + } + }, + "parallel/test-runner-tag-filter-parser.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_single_identifier": {}, + "test_01_case_insensitive_match": {}, + "test_02_and_have_higher_precedence_than_or": {}, + "test_03_not_has_higher_precedence_than_and": {}, + "test_04_not_has_higher_precedence_than_or": {}, + "test_05_parentheses_override_precedence": {}, + "test_06_double_negation": {}, + "test_07_mixing_word_and_punctuation_forms_in_one_expression": {}, + "test_08_mixed_forms_inside_parentheses_word_and_punct_equivalence": {}, + "test_09_nested_parentheses_and_wildcards_mixed_with_word_forms": {}, + "test_10_notslow_is_one_identifier_not_slow_is_two_tokens": {}, + "test_11_punctuation_does_not_need_whitespace_separation": {}, + "test_12_wildcard_expands_across_allowed_alphabet": {}, + "test_13_bare_matches_any_tagged_test": {}, + "test_14_wildcard_in_middle_and_at_start": {}, + "test_15_regex_metacharacters_in_tags_are_escaped": {}, + "test_16_wildcard_case_folding_matches_literal_tag_case_folding_for_n": {}, + "test_17_untagged_test_fails_any_include_expression": {}, + "test_18_not_x_against_an_untagged_test_is_true": {}, + "test_19_multiple_filters_and_together": {}, + "test_20_empty_filter_list_always_passes": {}, + "test_21_rejects_empty_whitespace_only_expressions": {}, + "test_22_rejects_unbalanced_parentheses": {}, + "test_23_rejects_dangling_operators": {}, + "test_24_rejects_two_adjacent_identifiers": {}, + "test_25_rejects_single_and_single": {}, + "test_26_rejects_empty_parentheses": {}, + "test_27_rejects_non_string_expressions": {} + } + }, + "parallel/test-runner-tags-events.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-tags-experimental-warning.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_the_warning_fires_once_per_process_for_tag_registration": {}, + "test_01_experimental_test_tag_filter_fires_the_warning": {}, + "test_02_programmatic_testtagfilters_fires_the_warning": {}, + "test_03_tags_does_not_fire_the_warning": {}, + "test_04_multiple_triggers_in_one_process_emit_the_warning_once": {} + } + }, + "parallel/test-runner-tags-inheritance.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_child_inherits_parent_suite_tags": {}, + "test_01_child_unions_own_tags_with_parent": {}, + "test_02_parent_tags_appear_before_child_tags_parent_first_order": {}, + "test_03_union_dedupes_across_parent_and_child": {}, + "test_04_multi_level_nesting_flattens_by_union": {}, + "test_05_child_without_own_tags_inherits_parent_set_unchanged": {}, + "test_06_tagged_child_under_untagged_parent_shows_only_own_tags": {}, + "test_07_untagged_child_under_untagged_parent_has_empty_tags": {}, + "test_08_tags_yields_an_empty_array_not_undefined": {}, + "test_09_tags_on_a_child_still_inherits_parent_tags_not_an_opt_out": {}, + "test_10_t_tags_returns_a_frozen_view": {}, + "test_11_successive_t_tags_reads_return_equivalent_arrays": {}, + "test_12_beforeeach_and_aftereach_see_the_flattened_tags_of_the_curre": {}, + "test_13_context_test_accepts_and_inherits_tags": {} + } + }, + "parallel/test-runner-tags-validation.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_non_array_tags_throws_err_invalid_arg_type": {}, + "test_01_non_string_element_throws_err_invalid_arg_type": {}, + "test_02_empty_string_tag_throws_err_invalid_arg_value": {}, + "test_03_forbidden_characters_throw_err_invalid_arg_value": {}, + "test_04_reserved_words_throw_err_invalid_arg_value_in_any_casing": {}, + "test_05_unicode_and_most_punctuation_are_allowed": {}, + "test_06_tags_is_a_no_op_does_not_throw": {}, + "test_07_case_dedup_db_db_db_collapses_to_single_canonical_entry": {}, + "test_08_declaration_order_is_preserved_on_dedup": {}, + "test_09_hooks_silently_ignore_the_tags_option": {}, + "test_10_suite_and_describe_validate_tags_identically": {}, + "test_11_it_validates_tags_identically_to_test": {}, + "test_12_it_validates_tags_identically_to_test": {}, + "test_13_run_rejects_non_string_testtagfilters_values": {}, + "test_14_run_accepts_a_bare_string_testtagfilters_and_normalizes_it": {}, + "test_15_run_treats_an_empty_testtagfilters_array_as_a_no_op": {} + } + }, + "parallel/test-runner-test-id.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-test-rerun-failures.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_test_should_pass_on_third_rerun": {}, + "test_01_test_should_pass_on_third_rerun_with_test": {}, + "test_02_failing_test_is_not_swallowed_when_siblings_share_its_source": {}, + "test_03_rerun_preserves_the_original_duration_on_the_replayed_pass": {}, + "test_04_using_run_api": {}, + "test_05_failing_todo_test_is_rerun_even_when_its_parent_suite_passed": {} + } + }, + "parallel/test-runner-todo-suite-hook-failure.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-v8-deserializer.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-watch-mode-complex.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-runner-worker-id.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_node_test_worker_id_is_set_for_concurrent_test_files": {}, + "test_01_node_test_worker_id_is_set_with_explicit_concurrency": {}, + "test_02_node_test_worker_id_is_1_with_concurrency_1": {}, + "test_03_node_test_worker_id_with_explicit_isolation_process": {}, + "test_04_node_test_worker_id_is_1_with_isolation_none": {}, + "test_05_context_workerid_matches_node_test_worker_id": {}, + "test_06_worker_ids_are_reused_when_more_tests_than_concurrency": {}, + "test_07_worker_ids_are_exclusive_to_concurrently_running_test_files": {} + } + }, + "parallel/test-runner-xfail.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-sea-assets-not-in-sea.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-sea-get-asset-keys.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-snapshot-invalid-blob.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-snapshot-perf-hooks-gc-observer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-source-map-invalid-url.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-sqlite-aggregate-function.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_database_prototype_aggregate": {}, + "test_01_varargs": {}, + "test_02_directonly": {}, + "test_03_start": {}, + "test_04_step": {}, + "test_05_result": {}, + "test_06_throws_an_error_when_trying_to_use_as_windown_function_but_d": {} + } + }, + "parallel/test-sqlite-authz.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_database_prototype_setauthorizer": {}, + "test_01_authorizer_callback_reentrancy": {} + } + }, + "parallel/test-sqlite-backup.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_backup": {}, + "test_01_database_backup": {}, + "test_02_backup_database_using_location_as_url": {}, + "test_03_backup_database_using_location_as_buffer": {}, + "test_04_database_backup_in_a_single_call": {}, + "test_05_throws_exception_when_trying_to_start_backup_from_a_closed_d": {}, + "test_06_throws_if_url_is_not_file_scheme": {}, + "test_07_throws_if_the_url_like_path_has_an_unparsable_href": {}, + "test_08_database_backup_fails_when_dest_file_is_not_writable": {}, + "test_09_backup_fails_when_progress_function_throws": {}, + "test_10_backup_fails_when_source_db_is_invalid": {}, + "test_11_backup_fails_when_path_cannot_be_opened": {}, + "test_12_backup_has_correct_name_and_length": {}, + "test_13_source_database_is_kept_alive_while_a_backup_is_in_flight": {}, + "test_14_backup_promise_settles_when_the_backup_is_the_last_active_re": {} + } + }, + "parallel/test-sqlite-config.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_by_default_defensive_mode_is_on": {}, + "test_01_when_passing_defensive_true_as_config_defensive_mode_is_on": {}, + "test_02_when_passing_defensive_false_as_config_defensive_mode_is_off": {}, + "test_03_defensive_mode_on_after_calling_db_enabledefensive_true": {}, + "test_04_defensive_mode_off_after_calling_db_enabledefensive_false": {}, + "test_05_db_enabledefensive_true_persists_across_close_and_open": {}, + "test_06_db_enabledefensive_false_persists_across_close_and_open": {}, + "test_07_throws_if_options_defensive_is_provided_but_is_not_a_boolean": {}, + "test_08_enableloadextension_throws_if_database_is_not_open": {} + } + }, + "parallel/test-sqlite-database.js": { + "category": "runnable", + "reason": "carries 22.14.0 parallel/test-sqlite-database-sync.js (upstream f2b698f1cf); parallel/test-sqlite-statement-sync.js (upstream f2b698f1cf)", + "split": true, + "subtests": { + "test_00_database_constructor": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_01_database_prototype_open": {}, + "test_02_database_prototype_close": {}, + "test_03_database_prototype_prepare": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_04_database_prototype_exec": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_05_database_prototype_istransaction": {}, + "test_06_database_prototype_location": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_07_database_prototype_symbol_dispose": {} + } + }, + "parallel/test-sqlite-diagnostic-channel.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-sqlite-limits.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-sqlite-options-getter-reentry.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_closing_the_database_from_an_options_getter": {}, + "test_01_options_getters_do_not_run_on_an_already_closed_database": {}, + "test_02_resizing_a_deserialize_buffer_from_an_options_getter": {} + } + }, + "parallel/test-sqlite-serialize.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_database_prototype_serialize": {}, + "test_01_database_prototype_deserialize": {} + } + }, + "parallel/test-sqlite-statement-binding-reentry.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-sqlite-statement-columns.js": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "parallel/test-sqlite-statement.js": { + "category": "runnable", + "reason": "carries 22.14.0 parallel/test-sqlite-database-sync.js (upstream f2b698f1cf); parallel/test-sqlite-statement-sync.js (upstream f2b698f1cf)", + "split": true, + "subtests": { + "test_00_statement_constructor": {}, + "test_01_statement_prototype_get": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_02_statement_prototype_all": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_03_statement_prototype_iterate": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_04_statement_prototype_run": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_05_statement_prototype_sourcesql": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_06_statement_prototype_expandedsql": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_07_statement_prototype_stat": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_08_statement_prototype_resetstats": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_09_statement_prototype_setreadbigints": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_10_statement_prototype_setreturnarrays": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_11_statement_prototype_get_with_array_output": {}, + "test_12_statement_prototype_all_with_array_output": {}, + "test_13_statement_prototype_iterate_with_array_output": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_14_statement_prototype_setallowbarenamedparameters": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_15_options_readbigints": { "category": "runnable" }, + "test_16_options_returnarrays": { "category": "runnable" }, + "test_17_options_allowbarenamedparameters": { "category": "runnable" }, + "test_18_statement_prototype_close": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_19_statement_prototype_symbol_dispose": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_20_options_persistent": { "category": "known-gap", "reason": "Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet" }, + "test_21_values_larger_than_the_maximum_string_length": {} + } + }, + "parallel/test-sqlite-template-tag.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_throws_error_if_database_is_not_open": {}, + "test_01_sql_run_inserts_data": {}, + "test_02_sql_get_retrieves_a_single_row": {}, + "test_03_sql_all_retrieves_all_rows": {}, + "test_04_sql_iterate_retrieves_rows_via_iterator": {}, + "test_05_queries_with_no_results": {}, + "test_06_rejects_parameters_outside_of_template_expressions": {}, + "test_07_tagstore_capacity_size_and_clear": {}, + "test_08_iterator_is_invalidated_when_the_cached_statement_is_reset": {}, + "test_09_a_stale_iterator_cannot_replay_a_victim_bound_write": {}, + "test_10_a_finished_iterator_stays_done_and_does_not_restart": {}, + "test_11_createtagstore_throws_on_invalid_maxsize": {}, + "test_12_sql_db_returns_the_associated_database_instance": {}, + "test_13_sql_error_messages_are_descriptive": {}, + "test_14_rejects_sql_that_contains_no_statements": {}, + "test_15_a_tag_store_keeps_the_database_alive_by_itself": {}, + "test_16_tag_store_prevents_circular_reference_leaks": {}, + "test_17_cached_statements_are_finalized_when_the_database_is_closed": {} + } + }, + "parallel/test-sqlite-timeout.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_waits_to_acquire_lock": {}, + "test_01_throws_if_the_lock_cannot_be_acquired_before_timeout": {} + } + }, + "parallel/test-sqlite-udf-close.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-sqlite-virtual-table.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-startup-empty-regexp-statics.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-finished-async-local-storage.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-finished-bindAsyncResource-path.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-finished-default-path.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-broadcast-backpressure.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-broadcast-basic.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-broadcast-coverage.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-broadcast-from.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-broadcast-waiter-cleanup.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-consumers-bytes.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-consumers-dump.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-consumers-merge.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-consumers-tap.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-consumers-text.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-cross-realm.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-disabled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-duplex.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-factory-signal.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-from-async.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-from-coverage.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-from-sync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-from-writable-cache-options.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-from-writable-lifecycle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-namespace.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-pipeto-edge.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-pipeto-signal.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-pipeto-writev.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-pipeto.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-property-access.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-pull-async.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-pull-sync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-push-backpressure.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-push-basic.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-push-writer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-readable-interop-disabled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-readable-interop.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-reason-propagation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-resizable-buffers.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-share-async.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-share-coverage.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-share-from.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-share-sync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-sharedarraybuffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-to-readable.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-transform-buffering.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-transform-compat.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-transform-coverage.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-transform-errors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-transform-output.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-transform-params.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-transform-roundtrip.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-transform-sync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-validation.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_writer_options_signal_must_be_abortsignal": {}, + "block_01_writer_writev_requires_array": {}, + "block_02_writer_chunks_use_the_web_idl_uint8array_or_usvstring_conver": {}, + "block_03_max_safe_integer_is_accepted": {}, + "block_04_per_direction_overrides": {}, + "block_05_small_explicit_budgets_are_accepted": {}, + "block_06_max_safe_integer_is_accepted": {}, + "block_07_not_leave_a_consumer_registered": {}, + "block_08_broadcastwriter_options_signal_must_be_abortsignal": {}, + "block_09_broadcastwriter_writev_requires_array": {}, + "block_10_duck_typed_readables_must_provide_each_of_the_required_metho": {}, + "block_11_fromwritable_writer_options_signal_must_be_abortsignal": {}, + "block_12_leave_a_consumer_registered": {}, + "block_13_push_with_valid_options": {}, + "block_14_duplex_with_valid_options": {}, + "block_15_broadcast_with_valid_options": {}, + "block_16_share_with_valid_options": {}, + "block_17_compression_with_valid_options": {}, + "block_18_brotli_with_valid_params": {} + } + }, + "parallel/test-stream-iter-webidl.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-writable-from.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-writable-interop.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-iter-writer-reentrancy.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-pipe-multiple-destinations-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-pipe-objectmode-to-non-objectmode.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_an_error_and_catch_by_the_consumer": {}, + "block_01_the_writable_stream_is_in_non_object_mode_and_the_data_is_st": {}, + "block_02_the_writable_stream_is_in_non_object_mode_and_the_data_is_bu": {} + } + }, + "parallel/test-stream-readable-async-iter-half-open-duplex.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-readable-compose.js": { + "category": "runnable", + "reason": "carries 22.14.0 parallel/test-stream-compose-operator.js (upstream 5e677d6e7e)", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {} + } + }, + "parallel/test-stream-readable-readable-one.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-readable-to-web-byob.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-readable-to-web-termination-byob.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-readable-to-web.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream-readable-unobserved-eof-readable.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {} + } + }, + "parallel/test-stream-some-find-every.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {} + } + }, + "parallel/test-stream2-read-correct-num-bytes-in-utf8.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-stream2-readable-wrap-proxy-methods.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-string-decoder-utf8-large.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_end_is_buffered_by_the_decoder_and_flushed_as_u_fffd_by_end": {}, + "block_01_block_01": {} + } + }, + "parallel/test-structuredClone-domexception.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-temporal-with-zoneinfo.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-temporal.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-testpy-env-var-via-comment.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-throw-error-with-getter-throw-traced.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-throw-undefined-or-null-traced.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-timers-async-store-leak.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_refresh_can_reactivate_the_timer": {}, + "block_01_firing": {}, + "block_02_callback_or_arguments_after_it_is_cleared": {}, + "block_03_callback_or_arguments_after_firing": {}, + "block_04_firing": {}, + "block_05_test_that_the_async_store_reference_is_cleaned_up_and_can_be": {} + } + }, + "parallel/test-timers-fast-calls.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-timers-invalid-clear.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-timers-nan-duration-emit-once-per-process.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-timers-nan-duration-warning-promises.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-timers-nan-duration-warning.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-timers-negative-duration-warning-emit-once-per-process.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-timers-negative-duration-warning.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-timers-not-emit-duration-zero.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-tls-alpn-callback-sync-end-newsession.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-alpn-callback-sync-end.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-alpn-callback-sync-write.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-alpn-protocols-validation.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_empty_array_means_skip_alpn_allowed": {}, + "block_01_empty_buffer_means_skip_alpn_allowed_same_as": {}, + "block_02_empty_uint8array_means_skip_alpn": {}, + "block_03_valid_inputs_should_not_throw": {}, + "block_04_block_04": {} + } + }, + "parallel/test-tls-certcb-sync-write.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-certificate-compression.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-client-cert-resumption.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-client-hello-fragmented.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-clienthello-sync-write.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-connect-keepalive-nodelay.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_keepalive_keepaliveinitialdelay_and_nodelay": {}, + "block_01_test_defaults_options_not_set": {} + } + }, + "parallel/test-tls-connect-non-canonical-ip.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-connect-single-use-context.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-connect-sync-lookup.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-crl-bundle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-dhparam-auto-boringssl.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-bundled-subset.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-bundled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-default.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-extra-empty.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-extra-subset.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-extra.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-node-use-system-ca.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-system-without-flag.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-system.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-worker-no-use-system-ca.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-get-ca-certificates-worker-use-system-ca.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-ip-servername-forbidden.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-keylog-sync-write.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-name-constraints-cn.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-off-thread-cert-loading-disabled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-off-thread-cert-loading-system.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-off-thread-cert-loading.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-peer-certificate-repeated-reads.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-psk-alpn-callback-exception-handling.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-renegotiate-servername.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-resume-no-session-id-context.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-resume-servername.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-server-destroyed-before-deferred-callbacks.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-session-reuse-different-servername.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-session-timeout-errors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-append-fetch.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-append-https-request.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-array-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-basic.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-error.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-extra-override.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-mixed-types.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_mixed_array_with_string_and_buffer": {}, + "block_01_test_mixed_array_with_string_and_uint8array": {}, + "block_02_test_mixed_array_with_string_and_dataview": {}, + "block_03_test_mixed_array_with_buffer_and_uint8array": {} + } + }, + "parallel/test-tls-set-default-ca-certificates-precedence-bundled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-precedence-empty.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-recovery.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-reset-fetch.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-set-default-ca-certificates-reset-https-request.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-sni-case-insensitive.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-sni-context-ca-only.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-sni-context-renegotiate.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-tls-spki-blocklist.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_spki_blocklist_on_the_server_certificate": {}, + "test_01_spki_blocklist_on_certificates_outside_the_verified_chain": {}, + "test_02_spki_blocklist_on_the_client_certificate": {} + } + }, + "parallel/test-trace-events-perfetto-pftrace.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-trace-sigint-in-worker.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-uncaught-exception-handler-stack-overflow-on-stack-overflow.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-uncaught-exception-handler-stack-overflow.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-url-invalid-file-url-path-input.js": { "category": "runnable" }, + "parallel/test-url-parse-deprecation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-urlpattern-invalidthis.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-urlpattern-types.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_per_webidl_ignorecase_is_coerced_to_boolean_not_type_checked": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_constructor_undefined_input_should_be_treated_as_empty_init": {}, + "block_04_constructor_null_input_should_be_treated_as_empty_init_union": {}, + "block_05_constructor_2_arg_with_undefined_null_uses_overload_2_option": {}, + "block_06_constructor_valid_input_with_undefined_null_options": {}, + "block_07_constructor_3_arg_with_valid_baseurl_and_null_options_uses_d": {}, + "block_08_exec_and_test_undefined_input_should_be_treated_as_empty_ini": {}, + "block_09_exec_and_test_null_input_should_be_treated_as_empty_init": {}, + "block_10_with_dict_input_providing_baseurl_with_a_dict_throws_per_spe": {}, + "block_11_exec_and_test_valid_input_with_undefined_baseurl": {} + } + }, + "parallel/test-urlpattern.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-util-convert-signal-to-exit-code.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-util-debounce.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-util-exception-with-host-port.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_address_and_port_are_included_in_the_message": {}, + "block_01_port_0_omits_host_port_detail_port_property_is_not_set": {}, + "block_02_additional_is_appended_as_local": {}, + "block_03_no_address_or_port": {}, + "block_04_different_syscall_and_error_code": {}, + "block_05_stack_trace_should_not_include_exceptionwithhostport_itself": {} + } + }, + "parallel/test-util-getcallsites-preparestacktrace.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-util-getcallsites-sourcemap.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_registered_for_the_current_file": {}, + "block_01_enable_source_maps_is_active_and_a_source_map_is_found": {}, + "block_02_a_source_map_may_omit_names_so_preserve_the_function_name_fr": {}, + "block_03_without_enable_source_maps_the_generated_file_path_is_preser": {} + } + }, + "parallel/test-util-inspect-regexp.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-util-isPartialDeepStrictEqual.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_util_ispartialdeepstrictequal_returns_true_with_expected_pro": {}, + "test_01_util_ispartialdeepstrictequal_returns_false_with_unexpected_": {} + } + }, + "parallel/test-util-promisify-custom-names.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-util-styletext-hex.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-util-throttle-timing.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-util-throttle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-v8-collect-gc-profile-minor-ms.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-v8-collect-gc-profile-using.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-v8-cpu-profile.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-v8-heap-profile.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_default_params": {}, + "block_01_custom_params_with_all_flags": {}, + "block_02_block_02": {}, + "block_03_second_stop_returns_undefined": {}, + "block_04_profile_and_snapshot_near_heap_limit_callbacks_coexist": {} + } + }, + "parallel/test-v8-string-is-one-byte-representation.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-vfs-access-modes.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-addon.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-append-write.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-bigint-position.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-callback-api.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-composable-provider.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-copyfile-mode.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_copyfilesync_with_copyfile_excl_throws_when_destination_exis": {}, + "block_01_copyfilesync_without_copyfile_excl_succeeds_and_overwrites": {} + } + }, + "parallel/test-vfs-create.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_vfs_create_with_no_arguments_uses_the_default_memoryprovider": {}, + "block_01_vfs_create_with_first_arg_as_options_object_no_provider": {}, + "block_02_vfs_create_with_explicit_provider": {}, + "block_03_new_virtualfilesystem_options_directly": {}, + "block_04_emitexperimentalwarning_option_must_be_a_boolean": {}, + "block_05_existssync_swallows_all_errors_from_the_provider_not_just_en": {}, + "block_06_walking_a_path_through_a_regular_file_parent_throws_enotdir": {}, + "block_07_statsync_returns_the_root_directory": {} + } + }, + "parallel/test-vfs-ctime-update.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_that_writefilesync_updates_both_mtime_and_ctime": {}, + "block_01_test_that_writesync_via_file_handle_updates_ctime": {}, + "block_02_test_that_truncatesync_updates_ctime": {} + } + }, + "parallel/test-vfs-destructuring.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {} + } + }, + "parallel/test-vfs-dir-handle.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_readsync_iteration": {}, + "block_01_using_explicit_resource_management": {}, + "block_02_read_callback_on_a_closed_dir_delivers_err_dir_closed": {}, + "block_03_opendirsync_without_options_object": {} + } + }, + "parallel/test-vfs-fd.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_opensync_and_closesync": {}, + "block_01_test_opensync_with_non_existent_file": {}, + "block_02_test_opensync_with_directory": {}, + "block_03_test_closesync_with_invalid_fd": {}, + "block_04_test_readsync": {}, + "block_05_test_readsync_with_position_tracking": {}, + "block_06_test_readsync_with_node_s_current_position_sentinel": {}, + "block_07_test_readsync_with_explicit_position": {}, + "block_08_test_readsync_at_end_of_file": {}, + "block_09_test_readsync_with_invalid_fd": {}, + "block_10_test_fstatsync": {}, + "block_11_test_fstatsync_with_invalid_fd": {}, + "block_12_test_async_open_and_close": {}, + "block_13_test_async_open_with_error": {}, + "block_14_test_async_close_with_invalid_fd": {}, + "block_15_test_async_read": {}, + "block_16_test_async_read_with_position_tracking": {}, + "block_17_test_async_read_with_invalid_fd": {}, + "block_18_test_async_fstat": {}, + "block_19_test_async_fstat_with_invalid_fd": {}, + "block_20_test_that_separate_vfs_instances_have_separate_fd_spaces": {}, + "block_21_test_multiple_opens_of_same_file": {} + } + }, + "parallel/test-vfs-file-handle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-flag.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_without_the_flag_requiring_node_vfs_throws_err_unknown_built": {}, + "block_01_without_the_flag_importing_node_vfs_throws_err_unknown_built": {}, + "block_02_with_the_flag_node_vfs_loads_and_works": {}, + "block_03_bare_vfs_no_node_scheme_is_always_blocked": {} + } + }, + "parallel/test-vfs-fs-accessSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-callback-error-paths.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_fs_access_on_missing_file_inside_a_mount": {}, + "block_01_lstat_passes_err_only_on_the_error_path_so_expectserror_work": {}, + "block_02_fs_open_on_a_path_whose_parent_directory_does_not_exist": {}, + "block_03_single_argument_expectserror_contract_does_not_match_use_mus": {}, + "block_04_rationale_as_fs_read_above": {}, + "block_05_fs_fstat_on_a_vfs_fd_that_has_been_closed_ebadf_through_call": {} + } + }, + "parallel/test-vfs-fs-chmod-callback.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-chmodSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-copyFileSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-createReadStream.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_whole_file_read": {}, + "block_01_slice_with_start_end_inclusive": {}, + "block_02_open_event_fires_with_a_vfs_fd": {} + } + }, + "parallel/test-vfs-fs-createWriteStream.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_basic_write": {}, + "block_01_path_getter_open_event_with_a_vfs_fd": {} + } + }, + "parallel/test-vfs-fs-existsSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-fchmod-callback.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-linkSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-matches-real-fs.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_watchfile_on_a_mounted_path_installs_a_stat_watcher": {}, + "test_01_fs_promises_watch_on_a_mounted_directory_yields_events": {}, + "test_02_watch_on_a_missing_mounted_path_throws_enoent": {}, + "test_03_utimessync_accepts_numeric_strings_as_seconds": {}, + "test_04_utimessync_rejects_an_invalid_time_argument": {}, + "test_05_readdirsync_rejects_an_invalid_encoding": {}, + "test_06_futimessync_updates_the_timestamps_through_a_descriptor": {}, + "test_07_fchmodsync_changes_the_mode_through_a_descriptor": {}, + "test_08_mkdtempsync_with_a_trailing_separator_creates_the_directory_": {}, + "test_09_mkdirsync_recursive_true_returns_the_first_directory_created": {}, + "test_10_a_closed_dir_can_be_disposed_asynchronously": {} + } + }, + "parallel/test-vfs-fs-mkdir-callback.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_mkdir_cb": {}, + "block_01_rmdir_cb": {}, + "block_02_rm_cb": {}, + "block_03_unlink_cb": {} + } + }, + "parallel/test-vfs-fs-mkdirSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-mkdtempSync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_string_result": {}, + "block_01_buffer_result": {} + } + }, + "parallel/test-vfs-fs-open-callback.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_open_fstat_read_close": {}, + "block_01_open_write_close": {}, + "block_02_ftruncate_cb": {} + } + }, + "parallel/test-vfs-fs-openAsBlob.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-openSync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_opensync_fstatsync_readsync_closesync": {}, + "block_01_readsync_with_position_null_uses_and_advances_the_current_fi": {}, + "block_02_opensync_writesync_buffer_closesync": {}, + "block_03_writesync_with_string_encoding": {}, + "block_04_ftruncatesync": {}, + "block_05_fchmodsync_fchownsync_futimessync_fdatasyncsync_fsyncsync_ar": {}, + "block_06_readvsync_writevsync": {} + } + }, + "parallel/test-vfs-fs-opendir-callback.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_readsync_iteration": {}, + "block_01_for_await_of_iteration": {} + } + }, + "parallel/test-vfs-fs-opendirSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-promises-buffer-encoding.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-promises-stat-no-throw.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-promises.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-readFile-callback.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_readfile_cb": {}, + "block_01_readdir_cb": {}, + "block_02_realpath_cb": {}, + "block_03_access_cb": {}, + "block_04_exists_cb_signature_is_exists_not_err_exists_use_mustcall": {} + } + }, + "parallel/test-vfs-fs-readFileSync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_default_buffer_result": {}, + "block_01_readfilesync_via_a_vfs_fd": {}, + "block_02_is_renamed": {} + } + }, + "parallel/test-vfs-fs-readdirSync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_default_utf8_string_array": {}, + "block_01_withfiletypes_true_dirent_array": {}, + "block_02_encoding_buffer_buffer_entries": {} + } + }, + "parallel/test-vfs-fs-realpathSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-rename-callback.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_rename_cb": {}, + "block_01_copyfile_cb": {} + } + }, + "parallel/test-vfs-fs-renameSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-rmSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-stat-callback.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_stat_cb": {}, + "block_01_lstat_cb": {} + } + }, + "parallel/test-vfs-fs-statSync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_statsync_on_a_regular_file": {}, + "block_01_lstatsync_on_a_regular_file": {}, + "block_02_statfssync_returns_number_typed_values_by_default": {}, + "block_03_statfssync_with_bigint_true_returns_bigint_fields": {} + } + }, + "parallel/test-vfs-fs-symlink-callback.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-symlinkSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-truncate-callback.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-truncateSync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-watch-dispatch.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-fs-writeFile-callback.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_writefile_cb": {}, + "block_01_appendfile_cb": {} + } + }, + "parallel/test-vfs-fs-writeFileSync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_writefilesync_via_a_vfs_fd_writes_through_the_open_descripto": {}, + "block_01_appendfilesync_via_a_vfs_fd_follows_normal_fd_write_semantic": {}, + "block_02_after_the_backing_path_is_renamed": {} + } + }, + "parallel/test-vfs-handle-semantics.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-hardlink-nlink.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-import.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_importing_a_simple_virtual_es_module": {}, + "block_01_test_importing_a_virtual_module_with_default_export": {}, + "block_02_mount_first_so_the_embedded_absolute_specifier_can_use_the_m": {}, + "block_03_test_importing_with_relative_paths": {}, + "block_04_test_importing_json_from_vfs_with_import_assertion": {}, + "block_05_test_that_real_modules_still_work_when_vfs_is_mounted": {}, + "block_06_test_mixed_cjs_and_esm_esm_importing_from_vfs_while_cjs_also": {}, + "block_07_test_esm_bare_specifier_resolution_from_vfs_node_modules": {} + } + }, + "parallel/test-vfs-invalid-package-json.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_matches_native_cjs_behavior_after_nodejs_node_48606": {}, + "block_01_valid_package_json_still_works": {}, + "block_02_missing_package_json_enoent_still_falls_through_to_index_js": {}, + "block_03_err_invalid_package_config_for_both_cjs_and_esm": {} + } + }, + "parallel/test-vfs-layer-tag-prefix.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-lchown-symlink.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-link.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_linking_to_a_directory_throws_einval": {}, + "block_01_linking_to_an_existing_target_throws_eexist": {} + } + }, + "parallel/test-vfs-load.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_a_directory_source_the_entry_point_runs_and_require_resolves": {}, + "block_01_a_provider_registered_by_a_r_commonjs_preload_backs_a_custom": {}, + "block_02_because_mounting_is_deferred_until_after_the_import_loop_has": {}, + "block_03_not_by_extension": {}, + "block_04_addressed_here_via_the_entry_s_own_dirname_resolves_and_runs": {}, + "block_05_the_real_file_system_above_the_reserved_mount_point": {}, + "block_06_point_in_both_threads_and_a_worker_path_the_parent_built_sti": {}, + "block_07_mount_cannot_be_its_entry_point": {}, + "block_08_vfs_load_names_the_source_it_loads_so_it_always_takes_a_valu": {}, + "block_09_the_value_may_also_be_given_as_a_separate_argument": {}, + "block_10_there": {}, + "block_11_replace_the_first": {}, + "block_12_from_argv_2_onward_and_argv_1_reports_the_mounted_source": {} + } + }, + "parallel/test-vfs-memory-file-handle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-memory-provider-dynamic.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_lazy_populated_directory": {}, + "block_01_dynamic_content_provider_returning_a_buffer": {}, + "block_02_async_only_content_provider_sync_api_throws_err_invalid_stat": {}, + "block_03_renaming_over_a_lazy_directory_does_not_discard_its_entries": {} + } + }, + "parallel/test-vfs-memory-provider-flags.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-memory-provider.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_memoryprovider_can_be_instantiated_directly": {}, + "block_01_test_creating_vfs_with_memoryprovider_default": {}, + "block_02_test_creating_vfs_with_explicit_memoryprovider": {}, + "block_03_test_reading_and_writing_files": {}, + "block_04_test_appendfile": {}, + "block_05_test_stat_operations": {}, + "block_06_test_lstatsync_same_as_statsync_for_memory_provider_since_no": {}, + "block_07_test_readdirsync": {}, + "block_08_test_mkdir_and_rmdir": {}, + "block_09_test_recursive_mkdir": {}, + "block_10_test_unlink": {}, + "block_11_test_rename": {}, + "block_12_test_copyfile": {}, + "block_13_test_realpathsync": {}, + "block_14_test_existssync": {}, + "block_15_test_accesssync": {}, + "block_16_test_file_handle_operations_via_opensync": {}, + "block_17_test_file_handle_write_operations": {}, + "block_18_test_file_handle_readfile_and_writefile": {}, + "block_19_test_symlink_operations": {}, + "block_20_test_reading_directory_as_file_should_fail": {}, + "block_21_test_that_readfilesync_returns_independent_buffer_copies": {}, + "block_22_test_memoryprovider_readonly_mode": {} + } + }, + "parallel/test-vfs-mkdir.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_created_directory_when_some_parents_already_exist": {}, + "block_01_path_of_the_first_created_directory_as_requested_by_the_call": {}, + "block_02_resolved_parent_directory": {}, + "block_03_intermediate_targets": {}, + "block_04_block_04": {}, + "block_05_mkdirsync_with_explicit_mode_non_recursive": {}, + "block_06_mkdirsync_with_explicit_mode_recursive": {}, + "block_07_recursive_mkdir_through_a_regular_file_blocker_throws_enotdi": {}, + "block_08_rmdir_on_a_non_empty_directory_throws_enotempty": {} + } + }, + "parallel/test-vfs-mkdtemp.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_mkdtempsync_returns_the_created_directory_path_with_random_s": {}, + "block_01_mkdtemp_callback_variant_success": {}, + "block_02_mkdtemp_callback_variant_with_options_object": {}, + "block_03_mkdtemp_callback_variant_error_path_parent_doesn_t_exist": {} + } + }, + "parallel/test-vfs-module-hooks-cleanup.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_after_a_full_deregister_a_fresh_register_re_installs_hooks_c": {}, + "block_01_after_the_last_vfs_is_removed_real_fs_require_still_works": {}, + "block_02_matches_the_native_binding_s_throw_invalid_package_config_pa": {}, + "block_03_use_value_get_string_in_src_node_modules_cc": {}, + "block_04_vfs_fully_functional": {}, + "block_05_reuses_the_same_mount_point_so_a_stale_entry_would_be_revive": {} + } + }, + "parallel/test-vfs-module-hooks.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_cjs_bare_specifier_resolution_with_exports_string_short": {}, + "block_01_test_conditional_exports_with_import_require_default_conditi": {}, + "block_02_test_subpath_exports_map": {}, + "block_03_test_subpath_exports_with_conditional_object_target": {}, + "block_04_test_nested_conditional_exports_e_g_node_import_require": {}, + "block_05_test_package_without_exports_using_main_field": {}, + "block_06_test_package_without_exports_main_fallback_to_index_js": {}, + "block_07_test_extension_resolution_require_without_file_extension": {}, + "block_08_test_extension_resolution_with_json": {}, + "block_09_test_scoped_package_resolution_scope_pkg": {}, + "block_10_test_scoped_package_with_subpath": {}, + "block_11_test_js_file_with_type_module_in_package_json_esm_format": {}, + "block_12_test_cjs_always_treated_as_commonjs_regardless_of_package_ty": {}, + "block_13_test_file_url_specifier": {}, + "block_14_test_package_with_main_field_requiring_extension_resolution": {}, + "block_15_test_bare_specifier_with_package_subpath_no_exports_direct_f": {}, + "block_16_test_bare_specifier_subpath_with_extension_resolution": {}, + "block_17_test_bare_specifier_main_field_with_extension_resolution": {}, + "block_18_test_exports_with_array_value_fallback_array": {}, + "block_19_test_exports_with_default_condition": {}, + "block_20_test_package_json_type_commonjs_explicitly_set_for_js": {}, + "block_21_test_js_file_with_no_package_json_defaults_to_commonjs": {}, + "block_22_test_package_json_type_walk_stops_at_node_modules_boundary": {}, + "block_23_test_invalid_package_json_in_directory_resolution": {}, + "block_24_test_invalid_package_json_in_type_walk_up": {}, + "block_25_test_scoped_package_without_slash_just_scope_name": {}, + "block_26_test_node_builtin_passthrough": {}, + "block_27_test_json_import_with_type_assertion": {}, + "block_28_test_file_with_unknown_extension_defaults_to_commonjs": {} + } + }, + "parallel/test-vfs-module-paths.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_mount_root": {}, + "block_01_system_root": {}, + "block_02_the_vfs_for_both_require_and_import": {}, + "block_03_test_a_bare_specifier_that_exists_nowhere_fails_for_both_loa": {}, + "block_04_inside_a_vfs_a_node_path_directory_provides_the_fallback": {} + } + }, + "parallel/test-vfs-mount-errors.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_exdev_rename_across_two_different_vfs_instances": {}, + "block_01_exdev_copyfilesync_across_two_different_vfs_instances": {}, + "block_02_exdev_linksync_across_two_different_vfs_instances": {}, + "block_03_exdev_rename_from_vfs_to_a_real_fs_path": {}, + "block_04_handler_cleanup_after_last_unmount_vfsstate_handlers_returns": {}, + "block_05_two_parallel_mounts_both_register_last_out_clears_handlers": {}, + "block_06_namespace_is_not_served_by_other_active_layers": {}, + "block_07_double_mount_of_same_instance_rejected": {} + } + }, + "parallel/test-vfs-mount-point-url.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_null_while_not_mounted": {}, + "block_01_after_unmounting": {}, + "block_02_test_the_url_is_usable_to_address_files_in_the_mounted_vfs": {} + } + }, + "parallel/test-vfs-mount.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_mounted_mountpoint_getters_mount_returns_a_path_under_o": {}, + "block_01_test_double_mount_throws": {}, + "block_02_test_two_instances_get_distinct_mount_points_in_their_own_la": {}, + "block_03_test_fs_readfilesync_intercepted": {}, + "block_04_test_fs_existssync_intercepted": {}, + "block_05_test_fs_statsync_intercepted": {}, + "block_06_test_fs_readdirsync_intercepted": {}, + "block_07_test_fs_writefilesync_intercepted": {}, + "block_08_test_fs_callback_api": {}, + "block_09_test_fs_promises_api": {}, + "block_10_test_streams": {}, + "block_11_test_opensync_readsync_closesync_via_public_fs": {}, + "block_12_test_enoent_thrown_for_missing_path_under_mount": {}, + "block_13_test_paths_outside_the_mount_point_go_to_the_real_fs_no_inte": {}, + "block_14_test_symbol_dispose_unmounts": {} + } + }, + "parallel/test-vfs-multi-mount.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-package-json-cache.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-package-json.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_read_reads_package_json_from_vfs": {}, + "block_01_getnearestparentpackagejson_walks_up_vfs_directories": {}, + "block_02_getpackagescopeconfig_returns_correct_scope_from_vfs": {}, + "block_03_getpackagetype_returns_correct_type_from_vfs": {}, + "block_04_end_to_end_cjs_require_with_package_json_type_detection": {}, + "block_05_end_to_end_esm_import_with_vfs_package_type": {} + } + }, + "parallel/test-vfs-parent-timestamps.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-promises-open.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-promises.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_callback_based_readfile": {}, + "block_01_test_callback_based_readfile_with_non_existent_file": {}, + "block_02_test_callback_based_readfile_with_directory": {}, + "block_03_test_callback_based_stat": {}, + "block_04_test_callback_based_lstat_same_as_stat_for_vfs": {}, + "block_05_test_callback_based_readdir": {}, + "block_06_test_callback_based_realpath": {}, + "block_07_test_callback_based_access": {}, + "block_08_test_callback_based_writefile": {}, + "block_09_test_callback_based_readlink": {}, + "block_10_test_callback_based_open_read_fstat_close": {} + } + }, + "parallel/test-vfs-readdir-symlink-recursive.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_recursive_readdir_avoids_following_symlink_cycles_indefinite": {}, + "block_01_recursive_readdir_avoids_cycles_through_multiple_symlinks": {}, + "block_02_stringified_relative_path": {}, + "block_03_non_recursive_readdir_with_withfiletypes_returns_mixed_entry": {}, + "block_04_without_recursion_so_this_should_complete_without_a_rangeerr": {} + } + }, + "parallel/test-vfs-readfile-async.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-readfile-encoding.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-readfile-flag.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_readfilesync_with_flag_w_truncates_existing_file": {}, + "block_01_test_readfilesync_with_flag_a_on_new_file": {}, + "block_02_test_async_readfile_with_flag_w_truncates_existing_file": {} + } + }, + "parallel/test-vfs-real-provider-handle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-real-provider-promises.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-real-provider-symlinks.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-real-provider-watch.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_fs_watch_wrapper": {}, + "block_01_watchfile_unwatchfile": {} + } + }, + "parallel/test-vfs-real-provider.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_capability_flags_construction": {}, + "block_01_invalid_rootpath": {}, + "block_02_vfs_create_provider_wires_it_up": {}, + "block_03_readfile_writefile_sync": {}, + "block_04_statsync_lstatsync": {}, + "block_05_readdirsync": {}, + "block_06_mkdir_rmdir_recursive_mkdir": {}, + "block_07_unlink": {}, + "block_08_rename": {}, + "block_09_copyfile": {}, + "block_10_realpathsync_non_symlink": {} + } + }, + "parallel/test-vfs-rename-symlink-descendant.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-rename.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_renaming_a_file_onto_a_directory_throws_eisdir": {}, + "block_01_renaming_a_directory_onto_a_file_throws_enotdir": {}, + "block_02_renaming_a_file_onto_another_file_overwrites": {}, + "block_03_renaming_within_the_same_parent_directory": {}, + "block_04_renaming_a_directory_into_its_own_descendant_throws_einval": {}, + "block_05_renaming_a_directory_onto_a_non_empty_directory_throws_enote": {}, + "block_06_renaming_a_directory_onto_an_empty_directory_succeeds": {}, + "block_07_overwriting_a_file_drops_one_of_its_links": {}, + "block_08_renaming_a_path_onto_itself_is_a_no_op": {}, + "block_09_renaming_a_hard_link_onto_another_link_to_the_same_file_is_a": {} + } + }, + "parallel/test-vfs-require.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_requiring_a_simple_virtual_module": {}, + "block_01_test_requiring_a_virtual_module_that_exports_an_object": {}, + "block_02_mount_first_so_the_embedded_absolute_specifier_can_use_the_m": {}, + "block_03_test_requiring_a_json_file_from_vfs": {}, + "block_04_test_virtual_package_json_resolution": {}, + "block_05_test_that_real_modules_still_work_when_vfs_is_mounted": {}, + "block_06_test_require_with_relative_paths_inside_vfs_module": {}, + "block_07_test_fs_readfilesync_interception_when_vfs_is_active": {}, + "block_08_test_requiring_an_esm_mjs_module_from_vfs": {}, + "block_09_test_requiring_an_esm_mjs_module_with_default_export_from_vf": {}, + "block_10_test_require_esm_js_file_detected_as_esm_via_vfs_package_jso": {}, + "block_11_test_require_esm_nested_js_walks_up_to_parent_package_json_i": {}, + "block_12_test_require_esm_js_without_type_field_stays_cjs": {}, + "block_13_test_require_esm_esm_js_that_imports_another_esm_js_in_vfs": {}, + "block_14_test_require_esm_mjs_without_any_package_json_loads_as_esm": {}, + "block_15_test_require_esm_mjs_with_package_json_that_has_no_type_fiel": {}, + "block_16_test_require_esm_mjs_in_type_commonjs_package_still_loads_as": {}, + "block_17_test_cjs_package_with_main_field_resolves_through_vfs": {}, + "block_18_test_cjs_package_with_no_main_field_resolves_index_js": {}, + "block_19_test_esm_legacymainresolve_import_a_vfs_package_with_main_no": {}, + "block_20_test_esm_legacymainresolve_import_a_vfs_package_with_no_main": {}, + "block_21_test_getformatofextensionlessfile_extensionless_js_file_in_t": {}, + "block_22_test_that_unmounting_stops_interception": {} + } + }, + "parallel/test-vfs-reserved-root-unowned.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-reserved-root.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_the_root_lists_every_layer_by_id": {}, + "block_01_a_recursive_listing_descends_into_the_layers": {}, + "block_02_the_root_is_a_directory_and_so_is_each_mount_point_in_it": {}, + "block_03_anything_else_under_the_root_does_not_exist": {}, + "block_04_the_root_is_read_only_the_file_systems_in_it_are_not": {}, + "block_05_a_mount_point_cannot_be_removed_or_renamed_nor_replaced_by_a": {} + } + }, + "parallel/test-vfs-rm-edge-cases.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_rmsync_on_a_directory_without_recursive_true_must_throw_eisd": {}, + "block_01_into_the_target_directory": {}, + "block_02_rmsync_with_force_true_ignores_enoent": {}, + "block_03_rmsync_without_force_on_missing_path_throws_enoent": {} + } + }, + "parallel/test-vfs-rmdir-symlink.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-router.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-scoped-cache-purge.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-stats-bigint.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_bigint_stats_for_directories": {}, + "block_01_bigint_stats_for_symlinks_via_lstat": {} + } + }, + "parallel/test-vfs-stats-helpers.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_all_defaults_no_options_object_at_all": {}, + "block_01_empty_options_object_exercises_the_default_right_hand_side": {}, + "block_02_bigint_variant_of_zero_stats": {}, + "block_03_non_bigint_zero_stats_with_no_options": {}, + "block_04_we_stub_the_optional_methods_to_simulate_their_absence": {} + } + }, + "parallel/test-vfs-stats-ino-dev.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-stream-errors.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_read_of_a_nonexistent_file_emits_error": {}, + "block_01_read_on_a_stream_whose_fd_has_been_pre_closed_ebadf_on_first": {}, + "block_02_close_error_swallow_path_inside_the_stream_s_close": {}, + "block_03_writestream_synchronously_failing_to_open_destroys_on_next_t": {}, + "block_04_in_write": {}, + "block_05_write_errors_when_writesync_throws_closed_fd": {} + } + }, + "parallel/test-vfs-stream-explicit-fd.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-stream-properties.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_readstream_bytesread_and_pending": {}, + "block_01_writestream_byteswritten_and_pending": {} + } + }, + "parallel/test-vfs-stream-validation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-streams.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_basic_createreadstream": {}, + "block_01_test_createreadstream_with_encoding": {}, + "block_02_test_createreadstream_with_start_and_end": {}, + "block_03_test_createreadstream_with_start_only": {}, + "block_04_test_createreadstream_with_non_existent_file": {}, + "block_05_test_createreadstream_path_property": {}, + "block_06_test_createreadstream_with_small_highwatermark": {}, + "block_07_test_createreadstream_destroy": {}, + "block_08_test_createreadstream_with_large_file": {}, + "block_09_test_createreadstream_pipe_to_another_stream": {}, + "block_10_test_autoclose_false": {}, + "block_11_slicing_read_stream_with_start_end": {}, + "block_12_start_beyond_file_size_empty_stream": {}, + "block_13_empty_file_end_immediately": {}, + "block_14_path_getter": {}, + "block_15_destroy_before_any_data_triggers_destroy_close_cleanup": {} + } + }, + "parallel/test-vfs-symlinks.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_direct_symlink_loop_a_b_a": {}, + "block_01_symlink_loop_in_an_intermediate_path_component": {}, + "block_02_absolute_symlink_target_inside_the_vfs": {}, + "block_03_symlinked_parent_directory_transparently_follows_on_read_wri": {}, + "block_04_symlink_onto_an_existing_path_throws_eexist": {} + } + }, + "parallel/test-vfs-truncate-negative.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-utimes.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-virtual-file-handle.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_close_closesync_dispose": {}, + "block_01_truncatesync_default_len_0_path_requires_close_check_too": {} + } + }, + "parallel/test-vfs-virtual-provider.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_bare_base_provider_every_primitive_throws_err_method_not_imp": {}, + "block_01_read_only_provider_write_primitives_throw_erofs_instead_of_n": {}, + "block_02_default_access_realpath_copyfile_delegate_to_stat_read_write": {} + } + }, + "parallel/test-vfs-watch-abort-signal.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-watch-directory.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-watch-encoding.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-watch-promises.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-watch-recursive.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-watch.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-watchfile.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_if_the_timer_leaks_the_process_would_hang": {}, + "block_01_default_options_no_interval_option_provided": {}, + "block_02_double_unwatch_is_a_no_op": {}, + "block_03_zero_stats_for_a_missing_file_prev_isfile_is_false_and_prev_": {}, + "block_04_bigint_true_on_a_missing_file_emits_bigint_prev_size_0n": {} + } + }, + "parallel/test-vfs-write-options.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_writefilesync_promises_writefile_with_explicit_flag_and_mode": {}, + "block_01_appendfilesync_promises_appendfile_with_explicit_flag_and_mo": {} + } + }, + "parallel/test-vfs-zip-provider-commit.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_opening_an_existing_file_with_w_truncates_it_even_without_a_": {}, + "test_01_opening_a_new_file_with_w_creates_it_even_without_a_write": {}, + "test_02_opening_a_new_file_with_a_creates_it_even_without_a_write": {}, + "test_03_appending_keeps_the_entry_mode": {}, + "test_04_an_in_place_write_keeps_the_entry_mode": {}, + "test_05_a_new_file_gets_the_mode_passed_to_open": {}, + "test_06_fstat_reports_the_entry_mode_not_the_open_mode_argument": {}, + "test_07_fstat_reports_the_entry_modification_time": {}, + "test_08_renaming_a_file_onto_an_existing_directory_fails_with_eisdir": {} + } + }, + "parallel/test-vfs-zip-provider-dispose.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-zip-provider-handle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-zip-provider-readdir-recursive.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vfs-zip-provider.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-global-contextual-store.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-global-restricted-property.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-module-after-evaluate.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-module-dynamic-import-promise.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-module-evaluate-source-text-module.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_synchronous_error_during_evaluation_results_in_a_synchronous": {}, + "block_01_promise_synchronously_resolved_to_undefined": {}, + "block_02_block_02": {}, + "block_03_that_is_fulfilled_asynchronously_with_undefined": {}, + "block_04_rejected_asynchronously_with_the_same_reason": {} + } + }, + "parallel/test-vm-module-evaluate-synthethic-module-rejection.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-module-evaluate-synthethic-module.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_resolved_to_undefined": {}, + "block_01_synchronously_resolved_to_undefined": {}, + "block_02_in_a_synchronously_rejected_promise": {} + } + }, + "parallel/test-vm-module-evaluate-while-evaluating.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-vm-module-hasasyncgraph.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_module_is_not_instantiated_yet": {}, + "test_01_simple_module_with_top_level_await": {}, + "test_02_simple_module_with_non_top_level_await": {}, + "test_03_module_with_a_dependency_containing_top_level_await": {} + } + }, + "parallel/test-vm-module-hastoplevelawait.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_simple_module": {}, + "test_01_simple_module_with_top_level_await": {}, + "test_02_simple_module_with_non_top_level_await": {}, + "test_03_module_with_a_dependency_containing_top_level_await": {} + } + }, + "parallel/test-vm-module-instantiate.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_simple_module": {}, + "test_01_linkrequests_can_not_be_skipped": {}, + "test_02_re_export_simple_name": {}, + "test_03_re_export_star": {}, + "test_04_deep_re_export_star": {}, + "test_05_should_throw_if_the_module_is_not_linked": {} + } + }, + "parallel/test-vm-module-link-shared-deps.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-module-linkmodulerequests-circular.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_basic_circular_linking": {}, + "test_01_circular_linking_graph": {} + } + }, + "parallel/test-vm-module-linkmodulerequests-deep.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-module-linkmodulerequests.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_simple_graph": {}, + "test_01_invalid_link_values": {}, + "test_02_mismatch_linkage": {}, + "test_03_instantiate_error_should_hint_about_module_identifier": {} + } + }, + "parallel/test-vm-module-modulerequests.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_sourcetextmodule_modulerequests_should_return_module_request": {}, + "test_01_sourcetextmodule_modulerequests_items_are_frozen": {} + } + }, + "parallel/test-vm-property-definer-interception.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-property-definer-partial-update.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-proxy-sandbox-property-query.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-script-after-evaluate.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-vm-util-lazy-properties.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-warn-tls-common-deprecation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-warn-tls-wrap-deprecation.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-wasm.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-watch-file-shared-dependency.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-watch-mode-files_watcher-clear.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-watch-mode-files_watcher.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-watch-mode-kill-signal-default.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-watch-mode-kill-signal-invalid.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-watch-mode-kill-signal-override.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-web-locks-no-livelock.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-web-locks-query.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-web-locks.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webapi-sharedarraybuffer-rejection.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_readablestreambyobreader_read_rejects_sab_backed_uint8array": {}, + "test_01_readablestreambyobreader_read_rejects_sab_backed_dataview": {}, + "test_02_readablestreambyobreader_read_accepts_regular_view": {}, + "test_03_readablebytestreamcontroller_enqueue_rejects_sab_backed_uint": {}, + "test_04_readablebytestreamcontroller_enqueue_rejects_sab_backed_data": {}, + "test_05_webidl_converters_buffersource_rejects_sharedarraybuffer": {}, + "test_06_webidl_converters_buffersource_rejects_sab_backed_uint8array": {}, + "test_07_webidl_converters_buffersource_rejects_sab_backed_dataview": {}, + "test_08_webidl_converters_buffersource_accepts_arraybuffer": {}, + "test_09_webidl_converters_buffersource_accepts_regular_typedarray": {}, + "test_10_webidl_converters_uint8array_rejects_sab_backed_uint8array": {}, + "test_11_webidl_converters_uint8array_rejects_dataview": {}, + "test_12_webidl_converters_uint8array_rejects_non_view": {}, + "test_13_webidl_converters_uint8array_accepts_regular_uint8array": {} + } + }, + "parallel/test-webcrypto-aead-decrypt-detached-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-aes-gcm-iv-length.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-aes-kw-short-input.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-algorithm-name-ascii.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-cipher-unrelated-errors.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-crypto-job-mode.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-cryptokey-brand-check.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-cryptokey-clone-transfer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-cryptokey-hidden-slots.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-cryptokey-no-own-symbols.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-deduplicate-usages.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_exported_jwk_key_ops_must_also_be_de_duplicated": {} + } + }, + "parallel/test-webcrypto-derivebits-argon2.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-derived-bits-species.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-detached-parameters.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-digest-turboshake-rfc.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-digest-turboshake.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-ec-pkcs8-public-key.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-encap-decap-ml-kem.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-encrypt-decrypt-chacha20-poly1305.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "parallel/test-webcrypto-enforce-range.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-export-import-ml-dsa.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-export-import-ml-kem.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-fips-exceptions.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-fips-refresh.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-get-public-key.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-getrandomvalues-properties.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-hash-normalization.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-hybrid-kem-species.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-import-union.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-internal-slots.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-keccak-byte-alignment.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-kem-hybrids.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-key-ops-duplicates.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-key-prototype.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-keygen-kmac.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-kmac-empty-output.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-methods-not-async.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-normalization-boundary.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-parameter-species.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-pbkdf2-iteration-limits.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-promise-prototype-pollution.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-prototype-pollution.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_fails_with_operationerror_hence_the_message_assertion": {}, + "block_01_validatemaxbufferlength": {}, + "block_02_ecdhderivebits_bounds_the_request_by_the_native_job_s_arrayb": {}, + "block_03_simplealgorithmdictionaries_relies_on_a_miss_returning_undef": {}, + "block_04_createdictionaryconverter_reads_optional_member_descriptor_k": {}, + "block_05_conversion_options_are_read_by_key_by_the_web_idl_converters": {}, + "block_06_enforcerangeoptions_enforcerange_uses_integerpart_not_round_": {}, + "block_07_keydetail_is_filled_in_by_c_with_an_ordinary_set": {}, + "block_08_block_08": {}, + "block_09_webcrypto_s_own_re_iteration_of_that_array_sees_the_poison": {}, + "block_10_block_10": {} + } + }, + "parallel/test-webcrypto-random-backing-buffer.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-raw-format-aliases.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-rsa-exponent-length.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-rsa-jwk-sha3-alg.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-rsa-modulus-length.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-rsa-shared-key.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-seedless-jwk-export.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-sign-verify-kmac.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-sign-verify-ml-dsa.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-supports-fips.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-supports-overloads.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-supports-receiver.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-supports.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-usages-species.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webcrypto-webidl-brand.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webstorage-without-sqlite.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webstream-structured-clone-no-leftovers.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webstreams-adapters-sync-write-error.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_writablestream_from_node_js_stream_handles_sync_write_throw": {}, + "test_01_duplex_backed_pair_does_not_destroy_on_sync_write_throw": {}, + "test_02_writablestream_from_node_js_stream_valid_writes_still_work": {} + } + }, + "parallel/test-webstreams-adapters-writable-buffer-sources.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_underlying_writable": {}, + "test_01_underlying_duplex": {} + } + }, + "parallel/test-webstreams-compression-bad-chunks.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webstreams-compression-buffer-source.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_decompressionstream_accepts_arraybuffer_chunks": {}, + "test_01_compressionstream_round_trip_with_arraybuffer_input": {} + } + }, + "parallel/test-webstreams-decompression-reject-trailing.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webstreams-duplex-fromweb-writev-unhandled-rejection.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_after_the_fix_stream_closes_cleanly_with_no_unhandled_reject": {}, + "block_01_same_bug_in_writable_fromweb_newstreamwritablefromwritablest": {}, + "block_02_verifies_that_done_correctly_signals_success_via_callback": {} + } + }, + "parallel/test-webstreams-pipeto-write-request.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {} + } + }, + "parallel/test-webstreams-queue-wraparound.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webstreams-writer-closed-abort-pending.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webworker-blob-module-url.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webworker-importscripts-conversion.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webworker-postmessage-lifecycle.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_a_failed_script_fetch_still_leaves_an_outside_port_that_seri": {}, + "block_01_serialization_is_required_even_after_the_backing_thread_has_": {}, + "block_02_queue_messages_before_terminating_so_the_test_does_not_depen": {} + } + }, + "parallel/test-webworker-postmessage-overloads.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webworker-ref-unref.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webworker-typescript-disabled.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-webworker-typescript.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-whatwg-encoding-singlebyte.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_single_byte_encodings_are_supersets_of_ascii": {}, + "test_01_single_byte_encodings_index": {}, + "test_02_x_user_defined": {} + } + }, + "parallel/test-whatwg-headers.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": {}, + "block_12_block_12": {}, + "block_13_block_13": {}, + "block_14_block_14": {}, + "block_15_block_15": {}, + "block_16_block_16": {}, + "block_17_block_17": {}, + "block_18_block_18": {} + } + }, + "parallel/test-whatwg-readablestream-async-iterator-shape.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-whatwg-readablestream-byob-read-min.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-whatwg-readablestream-tee-cancel-settle.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-whatwg-readablestream.mjs": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {} + } + }, + "parallel/test-whatwg-transformstream-cancel-write-race.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-whatwg-transformstream-parked-write-error.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_readable_cancel_rejects_a_parked_write_with_the_cancel_reaso": {}, + "test_01_controller_error_rejects_a_parked_write_with_the_stored_erro": {}, + "test_02_controller_terminate_rejects_a_parked_write": {} + } + }, + "parallel/test-whatwg-url-parse-fast-path.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_special_scheme_urls_with_an_empty_path_gain_a_trailing_slash": {}, + "block_01_dot_segment_normalization_must_still_rewrite_the_path": {}, + "block_02_relative_resolution_against_a_base_url": {}, + "block_03_non_string_input_is_still_stringified": {}, + "block_04_invalid_input_still_throws_from_the_constructor_and_is_null_": {}, + "block_05_unpaired_surrogates_must_not_be_returned_as_is_from_href": {}, + "block_06_setters_re_parse_the_existing_href_keep_component_updates_co": {} + } + }, + "parallel/test-whatwg-url-searchparams-fast-path.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": {}, + "block_12_block_12": {}, + "block_13_block_13": {} + } + }, + "parallel/test-whatwg-webstreams-transform-stream-members.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-whatwg-writablestream-close.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-cpu-profile.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-cpu-usage.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-cwd-race-condition.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-dispose.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-error-primitive.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-heap-profile.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-heap-statistics.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-internal-modules.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-message-port-transfer-filehandle-fd0.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-messageerror-listener-cleanup.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-spec-differences.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {} + } + }, + "parallel/test-worker-thread-name.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker-unsupported-eval-on-url.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-worker.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-brotli-dictionary.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_test_with_streaming_api": {}, + "block_01_test_that_dictionary_improves_compression_ratio": {}, + "block_02_test_that_decompression_without_matching_dictionary_fails": {}, + "block_03_test_that_decompression_with_wrong_dictionary_fails": {}, + "block_04_test_that_dictionary_works_with_arraybuffer_converted_to_buf": {}, + "block_05_test_that_dictionary_works_with_typedarray_uint8array": {}, + "block_06_test_with_streaming_api_and_wrong_dictionary_emits_error_eve": {} + } + }, + "parallel/test-zlib-brotli-flush-invalid-kind.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-brotli-reset.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_brotlicompress_reset_preserves_its_initial_options": {}, + "test_01_brotlidecompress_reset_preserves_its_dictionary": {} + } + }, + "parallel/test-zlib-decode-strings.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-negative-zero.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-reject-garbage-after-end.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_zstd_decompresses_concatenated_frames_regardless_of_chunking": {}, + "test_01_zstd_trailing_junk_handling_is_independent_of_chunking": {}, + "test_02_zstd_handles_incomplete_trailing_frame_identifiers_as_junk": {}, + "test_03_zstd_reports_errors_in_subsequent_frames": {}, + "test_04_zstd_decompresses_multiple_frames_across_output_buffers": {}, + "test_05_rejectgarbageafterend_must_be_a_boolean": {} + } + }, + "parallel/test-zlib-reset-during-write.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-reset-incomplete-output.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_gzip_reset_throws_when_write_has_emitted_wrapper_output": {}, + "test_01_gzip_reset_throws_when_flush_has_emitted_incomplete_output": {}, + "test_02_gzip_flush_followed_by_end_still_produces_a_valid_stream": {}, + "test_03_gzip_reset_before_any_write_still_works": {}, + "test_04_deflate_reset_after_flush_still_works_when_first_output_is_d": {}, + "test_05_deflateraw_reset_after_write_without_emitted_output_still_wo": {}, + "test_06_deflateraw_flush_followed_by_reset_still_concatenates": {} + } + }, + "parallel/test-zlib-type-error.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_decompressionstream_deflate_emits_typeerror_on_trailing_data": {}, + "test_01_decompressionstream_gzip_emits_typeerror_on_trailing_data": {}, + "test_02_decompressionstream_brotli_emits_typeerror_on_trailing_data": {}, + "test_03_zlib_sync_decompression_honors_rejectgarbageafterend": {} + } + }, + "parallel/test-zlib-zip-coverage.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_a_zeroed_dos_date_time_field_decodes_to_the_1980_01_01_epoch": {}, + "test_01_serializing_an_entry_with_an_invalid_modified_date_is_reject": {}, + "test_02_a_well_formed_minimal_zip64_archive_round_trips_its_comment": {}, + "test_03_a_zip64_locator_declaring_more_than_one_disk_is_rejected": {}, + "test_04_a_zip64_locator_pointing_at_another_disk_is_rejected": {}, + "test_05_a_zip64_record_on_another_disk_is_rejected": {}, + "test_06_a_zip64_record_with_inconsistent_disk_record_counts_is_rejec": {}, + "test_07_a_zip64_record_is_found_by_scanning_backward_when_data_was_p": {}, + "test_08_a_required_zip64_record_that_cannot_be_found_anywhere_is_rej": {}, + "test_09_a_missing_zip64_record_falls_back_to_valid_classic_eocd_fiel": {}, + "test_10_a_foreign_zip64_extra_field_naming_only_the_fields_it_needs_": {}, + "test_11_a_foreign_zip64_extra_field_carrying_every_field_regardless_": {}, + "test_12_a_zip64_extra_field_value_beyond_number_max_safe_integer_is_": {}, + "test_13_a_zip64_extra_field_tlv_whose_declared_size_overflows_the_ex": {}, + "test_14_a_zip64_extra_field_tlv_too_short_for_the_field_it_claims_to": {}, + "test_15_create_accepts_a_dataview_a_non_uint8array_typedarray_and_an": {}, + "test_16_create_validates_comment_length_modified_type_and_method_val": {}, + "test_17_a_directory_entry_must_have_empty_content_for_create_creates": {}, + "test_18_createziparchive_createziparchivesync_validate_the_archive_c": {}, + "test_19_a_pending_streaming_entry_rejects_size_crc32_compressedsize_": {}, + "test_20_a_spent_serialized_but_unpromoted_streaming_entry_rejects_re": {}, + "test_21_a_streaming_entry_can_only_be_serialized_once": {}, + "test_22_a_streaming_entry_rejects_a_non_uint8array_chunk_from_its_so": {}, + "test_23_a_streaming_entry_can_use_zstd_compression_end_to_end": {}, + "test_24_an_error_from_a_streaming_entry_s_source_propagates_and_clea": {}, + "test_25_contentiterator_enforces_the_same_guards_as_content_and_cont": {}, + "test_26_content_and_contentsync_enforce_maxsize_and_detect_corruptio": {}, + "test_27_zipfile_getsync_contentsync_enforces_the_same_guards_via_dec": {}, + "test_28_contentiterator_rejects_an_entry_that_inflates_to_less_than_": {}, + "test_29_zipbuffer_exposes_map_like_foreach_values_entries_iteration_": {}, + "test_30_zipfile_exposes_the_same_iteration_protocol_plus_its_sync_co": {}, + "test_31_zipfile_open_opensync_reject_a_file_with_no_end_of_central_d": {}, + "test_32_zipfile_get_getsync_stream_reject_a_missing_entry_name": {}, + "test_33_a_local_file_header_offset_pointing_into_the_central_directo": {}, + "test_34_a_declared_compressed_size_reaching_past_the_end_of_the_file": {}, + "test_35_a_zip64_declared_compressed_size_of_kmaxlength_is_rejected_a": {}, + "test_36_createziparchivesync_also_switches_to_zip64_structures_at_0x": {}, + "test_37_createziparchive_returns_a_pipeable_async_iterable_non_objec": {}, + "test_38_createziparchive_createziparchivesync_take_a_plain_string_as": {}, + "test_39_createziparchive_createziparchivesync_take_an_comment_baseof": {}, + "test_40_createziparchive_createziparchivesync_reject_a_non_string_no": {}, + "test_41_createziparchive_createziparchivesync_validate_options_baseo": {}, + "test_42_test_42": {}, + "test_43_zipbuffer_tobuffer_tobuffersync_forward_the_same_string_opti": {}, + "test_44_a_non_unix_version_made_by_host_survives_re_serialization": {}, + "test_45_content_contentsync_of_a_stored_in_memory_entry_return_calle": {}, + "test_46_a_plain_uint8array_is_accepted_anywhere_binary_input_is_and_": {}, + "test_47_foreach_passes_thisarg_through_on_zipbuffer_and_zipfile": {}, + "test_48_freshly_created_entries_expose_their_metadata_before_seriali": {}, + "test_49_a_unicode_path_extra_field_with_an_unknown_version_is_ignore": {}, + "test_50_malformed_or_empty_timestamp_extra_fields_fall_back_to_the_d": {}, + "test_51_a_preserved_timestamp_extra_survives_re_serialization_withou": {}, + "test_52_modified_falls_back_to_the_central_directory_when_the_local_": {}, + "test_53_a_file_that_shrinks_after_open_is_rejected_as_unexpected_eof": {}, + "test_54_a_failed_streaming_addentry_restores_the_archive_and_the_que": {}, + "test_55_opening_a_missing_archive_surfaces_the_file_system_error": {}, + "test_56_using_a_zipfile_after_close_is_rejected_cleanly": {}, + "test_57_an_entry_starting_beyond_4_gib_records_its_offset_in_a_zip64": {}, + "test_58_extra_fields_that_no_longer_fit_their_16_bit_length_field_ar": {}, + "test_59_a_zip64_eocd_record_pushed_out_of_the_tail_by_its_data_secto": {}, + "test_60_a_locator_offset_beyond_the_safe_integer_range_falls_back_to": {}, + "test_61_zipfile_rejects_a_central_header_on_another_disk": {}, + "test_62_zipfiles_keeps_a_directory_mapping_name_that_already_ends_in": {}, + "test_63_a_streamed_entry_with_the_store_method_round_trips": {}, + "test_64_createsync_honors_an_explicit_store_method": {} + } + }, + "parallel/test-zlib-zip-edgecases.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_the_central_directory_is_authoritative_when_the_local_header": {}, + "test_01_duplicate_central_directory_names_read_yields_all_get_takes_": {}, + "test_02_path_unsafe_names_are_surfaced_verbatim_never_normalized_or_": {}, + "test_03_data_prepended_before_the_archive_sfx_stub_is_tolerated_via_": {}, + "test_04_an_empty_archive_eocd_only_reads_as_zero_entries": {}, + "test_05_directory_entries_and_zero_byte_file_entries_round_trip": {}, + "test_06_an_archive_comment_at_the_maximum_length_65535_bytes_round_t": {}, + "test_07_a_traditional_encrypted_entry_bit_0_is_rejected": {}, + "test_08_a_winzip_aes_entry_method_99_bit_0_0x9901_extra_is_rejected_": {}, + "test_09_a_zip64_sentinel_size_with_no_zip64_extra_field_is_rejected": {} + } + }, + "parallel/test-zlib-zip-encoding.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_a_bit_11_clear_name_is_decoded_as_cp437_not_mangled_as_utf_8": {}, + "test_01_a_bit_11_set_name_is_decoded_as_utf_8_with_raw_bytes_on_name": {}, + "test_02_a_valid_unicode_path_extra_field_0x7075_overrides_the_cp437_": {}, + "test_03_a_unicode_path_extra_field_with_a_stale_crc_is_ignored_falls": {}, + "test_04_zipbuffer_get_keys_by_the_decoded_cp437_name": {}, + "test_05_setuid_setgid_sticky_bits_round_trip_through_a_read": {}, + "test_06_a_symlink_entry_is_reported_as_a_symlink_not_a_file": {}, + "test_07_external_attributes_from_a_non_unix_host_expose_no_mode_and_": {}, + "test_08_the_extended_timestamp_extra_field_0x5455_sets_the_modificat": {}, + "test_09_the_ntfs_extra_field_0x000a_sets_a_high_resolution_modificat": {}, + "test_10_the_info_zip_unix_extra_field_0x5855_sets_the_modification_t": {}, + "test_11_ntfs_time_is_preferred_over_the_extended_timestamp_when_both": {}, + "test_12_with_no_timestamp_extra_field_the_dos_date_time_is_used": {} + } + }, + "parallel/test-zlib-zip-experimental-warning.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_importing_node_zlib_esm_does_not_emit_the_zip_experimental_w": {}, + "test_01_requiring_node_zlib_and_only_reading_zip_exports_does_not_wa": {}, + "test_02_using_a_zip_export_emits_the_experimental_warning_cjs": {}, + "test_03_using_a_zip_export_emits_the_experimental_warning_esm": {}, + "test_04_instanceof_against_the_public_zip_classes_still_matches_real": {} + } + }, + "parallel/test-zlib-zip-file-lifecycle.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_close_waits_for_an_in_flight_read_instead_of_closing_under_i": {}, + "test_01_close_resolves_with_a_paused_contentiterator": {}, + "test_02_a_failed_directory_rewrite_during_addentrysync_is_rolled_bac": {} + } + }, + "parallel/test-zlib-zip-files.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_zipfiles_archives_files_directories_contents_and_unix_mode_f": {}, + "test_01_zipfiles_accepts_any_iterable_of_path_name_array_map_object_": {}, + "test_02_zipfiles_preserves_a_sub_second_modification_time_via_an_ext": {}, + "test_03_zipfiles_follows_symlinks_by_default_or_stores_them_when_dis": {}, + "test_04_zipfiles_rejects_when_a_listed_path_does_not_exist": {}, + "test_05_an_abandoned_createziparchive_destroys_the_sources_of_entrie": {}, + "test_06_a_fully_consumed_archive_leaves_a_valid_result_and_ends_ever": {}, + "test_07_zipentry_disposal_destroys_a_streaming_source_sync_and_async": {}, + "test_08_disposing_an_in_memory_or_file_backed_entry_is_a_harmless_no": {}, + "test_09_createziparchivesync_throws_on_a_streaming_entry_and_dispose": {} + } + }, + "parallel/test-zlib-zip-fuzz.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-zip-hardening.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_an_empty_or_tiny_buffer_is_rejected_as_an_invalid_archive": {}, + "test_01_garbage_or_truncated_data_is_rejected": {}, + "test_02_an_eocd_looking_signature_inside_a_trailing_comment_is_not_m": {}, + "test_03_multiple_plausible_eocd_records_describing_different_archive": {}, + "test_04_an_exact_eocd_embedded_in_a_genuine_comment_is_rejected_as_a": {}, + "test_05_multiple_padded_eocd_records_are_rejected_as_ambiguous": {}, + "test_06_a_declared_size_mismatch_is_rejected_as_corrupt": {}, + "test_07_crc_32_verification_catches_a_single_flipped_byte_and_can_be": {}, + "test_08_content_enforces_maxsize_before_allocating": {}, + "test_09_a_forged_small_header_whose_content_inflates_past_its_declar": {}, + "test_10_getmaxzipcontentsize_setmaxzipcontentsize_control_the_defaul": {}, + "test_11_streaming_a_partially_consumed_entry_does_not_hang_or_leak": {}, + "test_12_an_overlong_file_name_is_rejected": {}, + "test_13_an_empty_file_name_is_rejected": {}, + "test_14_a_multi_disk_archive_is_rejected": {}, + "test_15_an_encrypted_entry_is_rejected": {}, + "test_16_an_entry_using_an_unsupported_compression_method_is_rejected": {}, + "test_17_every_possible_truncation_of_an_archive_is_rejected_determin": {}, + "test_18_trailing_padding_after_the_eocd_is_tolerated": {}, + "test_19_a_maximum_length_comment_followed_by_block_padding_is_tolera": {}, + "test_20_junk_appended_past_a_declared_comment_is_tolerated_and_the_c": {}, + "test_21_an_eocd_comment_length_overrunning_the_end_of_the_file_is_re": {}, + "test_22_a_central_directory_that_cannot_fit_before_the_eocd_is_rejec": {}, + "test_23_a_record_count_inconsistent_with_the_directory_size_is_rejec": {}, + "test_24_a_corrupted_or_overrunning_central_directory_header_is_rejec": {}, + "test_25_short_or_overrunning_extra_field_records_do_not_make_an_entr": {}, + "test_26_two_central_records_quoting_the_same_data_are_rejected_as_a_": {}, + "test_27_a_member_whose_data_crosses_into_the_central_directory_is_re": {}, + "test_28_a_zip64_eocd_record_size_field_lie_is_tolerated_when_the_loc": {}, + "test_29_a_nul_byte_inside_an_entry_name_is_preserved_verbatim": {} + } + }, + "parallel/test-zlib-zip-internals.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_readsafeuint64_rejects_a_field_extending_past_the_buffer": {}, + "test_01_parsezip64extra_returns_nothing_when_no_field_is_wanted": {}, + "test_02_localfileheader_length_reports_0_when_the_fixed_part_does_no": {}, + "test_03_decodemembersync_bounds_output_by_the_declared_size_without_": {} + } + }, + "parallel/test-zlib-zip-interop.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_an_archive_written_by_createziparchive_is_readable_by_unzip_": {}, + "test_01_an_archive_written_by_python_s_zipfile_module_is_readable_by": {} + } + }, + "parallel/test-zlib-zip-metadata.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_modification_time_round_trips_at_2_second_resolution": {}, + "test_01_a_sub_second_modification_time_is_preserved_to_the_second_vi": {}, + "test_02_an_odd_whole_second_modification_time_is_preserved_via_an_ex": {}, + "test_03_a_date_before_1980_is_clamped_to_the_dos_epoch": {}, + "test_04_a_date_after_2107_is_clamped_to_the_dos_ceiling": {}, + "test_05_unix_mode_round_trips_for_files_and_directories": {}, + "test_06_default_modes_are_applied_when_none_is_given": {}, + "test_07_an_entry_comment_round_trips": {}, + "test_08_zipentry_compressed_reports_compressed_storage_for_any_metho": {} + } + }, + "parallel/test-zlib-zip-property.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_random_archives_round_trip_through_zipentry_read_zipbuffer_a": {}, + "test_01_a_streamed_write_round_trips_through_a_streamed_read": {} + } + }, + "parallel/test-zlib-zip-security-hardening.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_a_local_central_size_disagreement_is_rejected": {}, + "test_01_a_local_central_method_disagreement_is_rejected": {}, + "test_02_a_local_central_encryption_flag_disagreement_is_rejected": {}, + "test_03_failed_local_header_validation_does_not_poison_file_backed_e": {}, + "test_04_zipfiles_rejects_a_fifo_source_instead_of_hanging": {}, + "test_05_contentiterator_rejects_a_member_that_inflates_past_its_decl": {} + } + }, + "parallel/test-zlib-zip-security.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_post_close_operations_are_rejected_cleanly_not_via_a_raw_fd": {}, + "test_01_post_close_operations_are_rejected_cleanly_sync": {}, + "test_02_closesync_while_an_async_add_is_outstanding_is_rejected": {}, + "test_03_an_earlier_add_completes_before_a_later_close": {}, + "test_04_zipfiles_rejects_a_non_regular_special_file": {}, + "test_05_the_default_ceiling_bounds_content_but_not_streaming": {}, + "test_06_open_rejects_contradictory_classic_eocd_vs_zip64_metadata": {}, + "test_07_central_directory_record_count_must_account_for_its_full_dec": {}, + "test_08_zipfile_open_enforces_the_same_member_overlap_check_as_zipbu": {} + } + }, + "parallel/test-zlib-zip-sync.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_zipentry_createsync_contentsync_round_trip_deflate_and_store": {}, + "test_01_zipentry_createsync_contentsync_round_trip_zstd": {}, + "test_02_zipentry_contentsync_enforces_maxsize_and_crc_verification_l": {}, + "test_03_createziparchivesync_throws_for_a_streaming_pending_entry": {}, + "test_04_zipbuffer_addsync_tobuffersync_round_trip": {}, + "test_05_zipfile_opensync_reads_the_same_entries_as_open": {}, + "test_06_zipfile_opened_via_opensync_supports_using_symbol_dispose": {}, + "test_07_zipfile_addentrysync_addsync_deletesync_alter_the_file_synch": {}, + "test_08_zipfile_addentrysync_rejects_a_pending_streaming_entry": {}, + "test_09_zipfile_sync_mutators_throw_err_zip_not_writable_when_not_op": {}, + "test_10_zipfile_compactsync_matches_compact_and_does_not_touch_the_o": {}, + "test_11_a_sync_zipfile_method_throws_while_an_async_mutation_has_not": {} + } + }, + "parallel/test-zlib-zip-vfs.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_zipfile_open_reads_a_vfs_backed_archive_through_an_async_vir": {}, + "test_01_zipfile_opensync_reads_a_vfs_backed_archive_through_a_synchr": {}, + "test_02_zipfile_writable_mutations_run_against_an_async_virtual_fd": {}, + "test_03_zipfile_sync_mutations_addentrysync_run_against_a_synchronou": {}, + "test_04_addentry_promotes_a_streaming_entry_to_file_backed_on_a_virt": {} + } + }, + "parallel/test-zlib-zip-writable.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_zipbuffer_is_always_writable": {}, + "test_01_zipbuffer_preserves_the_archive_comment_across_tobuffer": {}, + "test_02_zipbuffer_add_addentry_delete_clear_mutate_the_in_memory_ind": {}, + "test_03_zipbuffer_tobuffer_serializes_the_current_live_set_replacing": {}, + "test_04_zipbuffer_addentry_rejects_a_non_zipentry_value": {}, + "test_05_zipfile_defaults_to_read_only_and_rejects_mutation": {}, + "test_06_zipfile_opened_writable_addentry_appends_where_the_old_cd_us": {}, + "test_07_zipfile_addentry_promotes_a_spent_streaming_entry_into_a_rea": {}, + "test_08_an_in_place_rewrite_keeps_central_and_local_data_descriptor_": {}, + "test_09_zipfile_opened_writable_delete_rewrites_the_cd_without_growi": {}, + "test_10_zipfile_compact_streams_a_fresh_archive_with_no_dead_entries": {}, + "test_11_zipfile_preserves_the_archive_comment_across_writes": {}, + "test_12_zipfile_serializes_concurrent_add_delete_calls_instead_of_ra": {} + } + }, + "parallel/test-zlib-zip-zip64.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_an_entry_count_at_or_above_0xffff_forces_zip64_structures": {}, + "test_01_an_archive_below_the_zip64_thresholds_contains_no_zip64_stru": {} + } + }, + "parallel/test-zlib-zip.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_round_trips_a_small_archive_through_zipentry_read": {}, + "test_01_zipbuffer_indexes_entries_by_name": {}, + "test_02_an_incompressible_or_empty_entry_falls_back_to_store": {}, + "test_03_explicit_store_option_is_honored_even_for_compressible_data": {}, + "test_04_the_zstd_method_compresses_and_round_trips_through_an_archiv": {}, + "test_05_an_incompressible_entry_with_method_zstd_falls_back_to_store": {}, + "test_06_crc32_chains_the_same_way_as_zlib_crc32": {}, + "test_07_createziparchive_rejects_an_overlong_comment": {}, + "test_08_directory_entries_cannot_carry_content": {}, + "test_09_zipentry_createsymlink_round_trips_as_a_symlink_entry": {}, + "test_10_a_deflate_and_a_zstd_member_each_stream_back_through_content": {} + } + }, + "parallel/test-zlib-zstd-dictionary.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-zstd-flush.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-zstd-from-string.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-zstd-from-zstd.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-zstd-kmaxlength-rangeerror.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-zstd-pledged-src-size.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "parallel/test-zlib-zstd-reset-incomplete-frame.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_zstdcompress_reset_throws_when_an_incomplete_frame_has_emitt": {}, + "test_01_zstdcompress_reset_throws_when_write_itself_emitted_frame_ou": {}, + "test_02_zstdcompress_reset_after_write_without_emitted_output_still_": {}, + "test_03_zstdcompress_flush_followed_by_end_still_produces_a_valid_st": {}, + "test_04_zstdcompress_reset_before_any_write_still_works": {} + } + }, + "parallel/test-zlib-zstd-reset.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_zstdcompress_reset_preserves_its_initial_options": {}, + "test_01_zstddecompress_reset_preserves_its_dictionary": {}, + "test_02_zstddecompress_reset_preserves_its_parameters": {} + } + }, + "parallel/test-zlib-zstd.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {} + } + }, + "sequential/test-benchmark-node-bench-tools.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "block_00_block_00": {}, + "block_01_block_01": {}, + "block_02_block_02": {}, + "block_03_block_03": {}, + "block_04_block_04": {}, + "block_05_block_05": {}, + "block_06_block_06": {}, + "block_07_block_07": {}, + "block_08_block_08": {}, + "block_09_block_09": {}, + "block_10_block_10": {}, + "block_11_block_11": {}, + "block_12_block_12": {}, + "block_13_block_13": {}, + "block_14_block_14": {}, + "block_15_block_15": {} + } + }, + "sequential/test-cluster-port-reuse-between-workers.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-crypto-timing-safe-equal-fast.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-debugger-launch.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-debugger-quit-after-exit.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-dtls-interop-openssl-client.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-dtls-interop-openssl-server.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-http2-retain-write-buffers-on-reset.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-inspector-network-resource.js": { + "category": "unevaluated", + "reason": "newly discovered, not yet evaluated", + "split": true, + "subtests": { + "test_00_should_load_and_stream_a_static_network_resource_using_loadn": {}, + "test_01_should_return_success_false_for_missing_resource": {}, + "test_02_should_error_or_return_empty_for_wrong_stream_id": {}, + "test_03_should_support_io_read_with_size_and_offset": {}, + "test_04_should_load_resource_put_from_another_thread": {} + } + }, + "sequential/test-inspector-open-dispose.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-net-listen-ipv6only.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-perf-hooks-histogram-heapdump.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-runner-run-inspect.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-watch-mode-inspect.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-watch-mode-process-timeout.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-watch-mode-restart-esm-loading-error.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-watch-mode-watch-flags.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-watch-mode-worker.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-watch-mode.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-without-async-context-frame.mjs": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "sequential/test-zlib-crc32-fast-api.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + + // === newly discovered tests (not yet evaluated) === + "trace_events/test-trace-events-all.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-all.js (upstream e7d8ab529b)" }, + "trace_events/test-trace-events-api.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "trace_events/test-trace-events-async-hooks-worker.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "trace_events/test-trace-events-async-hooks.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-async-hooks.js (upstream e7d8ab529b)" }, + "trace_events/test-trace-events-bootstrap.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-bootstrap.js (upstream e7d8ab529b)" }, + "trace_events/test-trace-events-environment.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "trace_events/test-trace-events-file-pattern.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-file-pattern.js (upstream e7d8ab529b)" }, + "trace_events/test-trace-events-fs-sync.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "trace_events/test-trace-events-http.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-http.js (upstream e7d8ab529b)" }, + "trace_events/test-trace-events-net-abstract-socket.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "trace_events/test-trace-events-net.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-net.js (upstream e7d8ab529b)" }, + "trace_events/test-trace-events-none.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-none.js (upstream e7d8ab529b)" }, + "trace_events/test-trace-events-process-exit.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-process-exit.js (upstream e7d8ab529b)" }, + "trace_events/test-trace-events-promises.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-promises.js (upstream e7d8ab529b)" }, + "trace_events/test-trace-events-threadpool.js": { "category": "unevaluated", "reason": "newly discovered, not yet evaluated" }, + "trace_events/test-trace-events-v8.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-v8.js (upstream e7d8ab529b)" }, + "trace_events/test-trace-events-vm.js": { "category": "runnable", "reason": "carries 22.14.0 parallel/test-trace-events-vm.js (upstream e7d8ab529b)" } } } diff --git a/tests/node_compat/report.md b/tests/node_compat/report.md index 21700d978..4ed8b14d1 100644 --- a/tests/node_compat/report.md +++ b/tests/node_compat/report.md @@ -1,4 +1,4 @@ -# Node.js v22.14.0 Compatibility Inventory +# Node.js v26.13.1 Compatibility Inventory Source: `tests/node_compat/config.jsonc` | Engine: wasm-rquickjs (QuickJS) @@ -8,142 +8,163 @@ This report is generated from `config.jsonc` and the pinned vendored Node.js sou Primary compatibility is measured over the public API surface we can provide: CI-enforced passing (`runnable`) plus `known-gap`. WASI-impossible tests, engine differences, unevaluated tests, and Node.js-internals tests are acknowledged separately and excluded from the primary percentage. -**Primary compatibility (CI-enforced):** 3260/4451 (73.2%) +**Primary compatibility (CI-enforced):** 3200/4499 (71.1%) When comparing revisions, read the runnable count and secondary full-public percentage alongside the primary percentage. Reclassifying a test into an excluded category can increase the primary percentage without increasing runnable coverage. | Classification | Count | Primary % | Public inventory % | All listed % | |----------------|-------|-----------|--------------------|--------------| -| ✅ passing (runnable) | 3260 | 73.2% | 56.1% | 47.2% | -| 🧩 known gap | 1191 | 26.8% | 20.5% | 17.2% | -| 🚫 WASI-impossible (excluded) | 1192 | — | 20.5% | 17.2% | -| ⚙️ engine difference (excluded) | 167 | — | 2.9% | 2.4% | -| ❔ unevaluated (excluded) | 0 | — | 0.0% | 0.0% | -| 🔒 Node.js internals (excluded) | 1101 | — | — | 15.9% | -| **Total** | **6911** | | | **100.0%** | +| ✅ passing (runnable) | 3200 | 71.1% | 33.1% | 29.6% | +| 🧩 known gap | 1299 | 28.9% | 13.5% | 12.0% | +| 🚫 WASI-impossible (excluded) | 1148 | — | 11.9% | 10.6% | +| ⚙️ engine difference (excluded) | 167 | — | 1.7% | 1.5% | +| ❔ unevaluated (excluded) | 3840 | — | 39.8% | 35.6% | +| 🔒 Node.js internals (excluded) | 1140 | — | — | 10.6% | +| **Total** | **10794** | | | **100.0%** | -Secondary full-public compatibility, including public tests that are currently excluded from primary: **3260/5810 (56.1%)**. +Secondary full-public compatibility, including public tests that are currently excluded from primary: **3200/9654 (33.1%)**. ## Inventory by Module | Module | Total | Passing | Gap | WASI-impossible | Engine diff | Unevaluated | Internals | Primary % | Public compatibility % | |--------|-------|----------|-----|-----------------|-------------|-------------|-----------|-----------|--------------------| -| abort | 28 | 26 | 1 | 0 | 0 | 0 | 1 | 96.3% | 96.3% | -| assert | 95 | 95 | 0 | 0 | 0 | 0 | 0 | 100.0% | 100.0% | -| async_hooks | 38 | 4 | 28 | 4 | 0 | 0 | 2 | 12.5% | 11.1% | -| blob | 43 | 38 | 2 | 0 | 0 | 0 | 3 | 95.0% | 95.0% | -| buffer | 180 | 172 | 0 | 1 | 1 | 0 | 6 | 100.0% | 98.9% | -| child_process | 208 | 40 | 64 | 89 | 0 | 0 | 15 | 38.5% | 20.7% | -| cli | 32 | 9 | 21 | 0 | 0 | 0 | 2 | 30.0% | 30.0% | -| cluster | 87 | 0 | 0 | 85 | 0 | 0 | 2 | 0.0% | 0.0% | -| common | 9 | 1 | 8 | 0 | 0 | 0 | 0 | 11.1% | 11.1% | -| compile | 15 | 0 | 0 | 0 | 15 | 0 | 0 | 0.0% | 0.0% | -| console | 31 | 29 | 1 | 0 | 0 | 0 | 1 | 96.7% | 96.7% | -| crypto | 239 | 204 | 11 | 8 | 0 | 0 | 16 | 94.9% | 91.5% | -| dgram | 118 | 23 | 74 | 7 | 0 | 0 | 14 | 23.7% | 22.1% | -| diagnostics_channel | 33 | 24 | 6 | 1 | 2 | 0 | 0 | 80.0% | 72.7% | -| dns | 42 | 2 | 27 | 0 | 0 | 0 | 13 | 6.9% | 6.9% | -| domain | 61 | 28 | 20 | 12 | 0 | 0 | 1 | 58.3% | 46.7% | +| abort | 29 | 26 | 1 | 0 | 0 | 0 | 2 | 96.3% | 96.3% | +| assert | 109 | 78 | 1 | 0 | 0 | 30 | 0 | 98.7% | 71.6% | +| async_hooks | 58 | 4 | 28 | 4 | 0 | 20 | 2 | 12.5% | 7.1% | +| blob | 47 | 38 | 2 | 0 | 0 | 4 | 3 | 95.0% | 86.4% | +| buffer | 278 | 172 | 0 | 4 | 1 | 95 | 6 | 100.0% | 63.2% | +| child_process | 217 | 40 | 64 | 88 | 0 | 10 | 15 | 38.5% | 19.8% | +| cli | 37 | 9 | 21 | 0 | 0 | 5 | 2 | 30.0% | 25.7% | +| cluster | 88 | 0 | 0 | 85 | 0 | 1 | 2 | 0.0% | 0.0% | +| common | 16 | 1 | 8 | 0 | 0 | 7 | 0 | 11.1% | 6.2% | +| compile | 29 | 0 | 0 | 0 | 15 | 14 | 0 | 0.0% | 0.0% | +| console | 32 | 29 | 1 | 0 | 0 | 1 | 1 | 96.7% | 93.5% | +| crypto | 398 | 198 | 18 | 7 | 0 | 169 | 6 | 91.7% | 50.5% | +| dgram | 141 | 22 | 74 | 7 | 0 | 24 | 14 | 22.9% | 17.3% | +| diagnostics_channel | 102 | 24 | 6 | 1 | 2 | 69 | 0 | 80.0% | 23.5% | +| dns | 54 | 2 | 29 | 0 | 0 | 9 | 14 | 6.5% | 5.0% | +| domain | 61 | 27 | 21 | 12 | 0 | 0 | 1 | 56.2% | 45.0% | | encoding | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 100.0% | 100.0% | | errors | 49 | 2 | 0 | 2 | 0 | 0 | 45 | 100.0% | 50.0% | -| eslint | 24 | 0 | 0 | 0 | 0 | 0 | 24 | 0.0% | 0.0% | -| events | 93 | 59 | 2 | 0 | 0 | 0 | 32 | 96.7% | 96.7% | +| eslint | 31 | 0 | 0 | 0 | 0 | 7 | 24 | 0.0% | 0.0% | +| events | 96 | 59 | 2 | 0 | 0 | 3 | 32 | 96.7% | 92.2% | | fetch | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 100.0% | 100.0% | -| fs | 482 | 339 | 46 | 21 | 5 | 0 | 71 | 88.1% | 82.5% | -| global | 11 | 4 | 5 | 0 | 0 | 0 | 2 | 44.4% | 44.4% | -| heap | 22 | 0 | 0 | 15 | 7 | 0 | 0 | 0.0% | 0.0% | -| http | 898 | 240 | 275 | 301 | 2 | 0 | 80 | 46.6% | 29.3% | -| inspector | 95 | 1 | 0 | 93 | 0 | 0 | 1 | 100.0% | 1.1% | -| internal | 53 | 1 | 0 | 0 | 0 | 0 | 52 | 100.0% | 100.0% | -| module | 174 | 123 | 31 | 7 | 1 | 0 | 12 | 79.9% | 75.9% | -| net | 223 | 150 | 36 | 19 | 1 | 0 | 17 | 80.6% | 72.8% | +| fs | 558 | 326 | 46 | 21 | 5 | 86 | 74 | 87.6% | 67.4% | +| global | 9 | 4 | 3 | 0 | 0 | 0 | 2 | 57.1% | 57.1% | +| heap | 26 | 0 | 0 | 15 | 8 | 3 | 0 | 0.0% | 0.0% | +| http | 1019 | 240 | 271 | 301 | 2 | 129 | 76 | 47.0% | 25.5% | +| inspector | 164 | 1 | 0 | 93 | 0 | 69 | 1 | 100.0% | 0.6% | +| internal | 112 | 1 | 0 | 0 | 0 | 56 | 55 | 100.0% | 1.8% | +| module | 193 | 124 | 31 | 7 | 1 | 18 | 12 | 80.0% | 68.5% | +| net | 261 | 150 | 35 | 18 | 1 | 40 | 17 | 81.1% | 61.5% | | node | 8 | 0 | 0 | 1 | 0 | 0 | 7 | 0.0% | 0.0% | -| os | 6 | 5 | 0 | 0 | 0 | 0 | 1 | 100.0% | 100.0% | -| other | 630 | 201 | 148 | 85 | 12 | 0 | 184 | 57.6% | 45.1% | -| path | 16 | 16 | 0 | 0 | 0 | 0 | 0 | 100.0% | 100.0% | -| perf_hooks | 41 | 4 | 33 | 2 | 0 | 0 | 2 | 10.8% | 10.3% | -| permission | 55 | 4 | 38 | 9 | 2 | 0 | 2 | 9.5% | 7.5% | -| process | 93 | 45 | 34 | 4 | 0 | 0 | 10 | 57.0% | 54.2% | -| promises | 23 | 4 | 12 | 0 | 7 | 0 | 0 | 25.0% | 17.4% | -| querystring | 14 | 14 | 0 | 0 | 0 | 0 | 0 | 100.0% | 100.0% | -| readline | 101 | 0 | 22 | 0 | 0 | 0 | 79 | 0.0% | 0.0% | -| repl | 85 | 1 | 2 | 72 | 0 | 0 | 10 | 33.3% | 1.3% | +| os | 8 | 5 | 0 | 0 | 0 | 2 | 1 | 100.0% | 71.4% | +| other | 2402 | 195 | 221 | 58 | 11 | 1733 | 184 | 46.9% | 8.8% | +| path | 17 | 16 | 0 | 0 | 0 | 1 | 0 | 100.0% | 94.1% | +| perf_hooks | 123 | 4 | 28 | 1 | 0 | 88 | 2 | 12.5% | 3.3% | +| permission | 162 | 4 | 40 | 9 | 2 | 105 | 2 | 9.1% | 2.5% | +| process | 118 | 44 | 34 | 4 | 0 | 26 | 10 | 56.4% | 40.7% | +| promises | 24 | 4 | 11 | 0 | 7 | 2 | 0 | 26.7% | 16.7% | +| querystring | 15 | 14 | 0 | 0 | 0 | 1 | 0 | 100.0% | 93.3% | +| readline | 102 | 0 | 22 | 0 | 0 | 1 | 79 | 0.0% | 0.0% | +| repl | 127 | 1 | 2 | 68 | 0 | 46 | 10 | 33.3% | 0.9% | | shadow_realm | 11 | 0 | 0 | 0 | 11 | 0 | 0 | 0.0% | 0.0% | | signal | 5 | 1 | 0 | 3 | 0 | 0 | 1 | 100.0% | 25.0% | -| snapshot | 57 | 0 | 0 | 0 | 57 | 0 | 0 | 0.0% | 0.0% | -| sqlite | 39 | 36 | 3 | 0 | 0 | 0 | 0 | 92.3% | 92.3% | +| snapshot | 61 | 0 | 0 | 0 | 57 | 4 | 0 | 0.0% | 0.0% | +| sqlite | 117 | 32 | 27 | 0 | 0 | 58 | 0 | 54.2% | 27.4% | | stdio | 23 | 12 | 7 | 3 | 0 | 0 | 1 | 63.2% | 54.5% | -| stream | 753 | 713 | 31 | 2 | 0 | 0 | 7 | 95.8% | 95.6% | -| string_decoder | 3 | 3 | 0 | 0 | 0 | 0 | 0 | 100.0% | 100.0% | -| test_runner | 157 | 93 | 34 | 21 | 1 | 0 | 8 | 73.2% | 62.4% | -| timers | 97 | 48 | 3 | 0 | 0 | 0 | 46 | 94.1% | 94.1% | -| tls | 207 | 4 | 7 | 185 | 0 | 0 | 11 | 36.4% | 2.0% | -| trace_events | 35 | 12 | 10 | 9 | 0 | 0 | 4 | 54.5% | 38.7% | +| stream | 872 | 720 | 31 | 2 | 0 | 112 | 7 | 95.9% | 83.2% | +| string_decoder | 5 | 3 | 0 | 0 | 0 | 2 | 0 | 100.0% | 60.0% | +| test_runner | 338 | 88 | 32 | 21 | 1 | 187 | 9 | 73.3% | 26.7% | +| timers | 111 | 47 | 3 | 0 | 0 | 20 | 41 | 94.0% | 67.1% | +| tls | 264 | 4 | 7 | 177 | 0 | 65 | 11 | 36.4% | 1.6% | +| trace_events | 35 | 12 | 7 | 5 | 0 | 8 | 3 | 63.2% | 37.5% | | tty | 5 | 0 | 3 | 0 | 0 | 0 | 2 | 0.0% | 0.0% | -| url | 29 | 19 | 9 | 0 | 0 | 0 | 1 | 67.9% | 67.9% | -| util | 174 | 93 | 9 | 0 | 0 | 0 | 72 | 91.2% | 91.2% | -| v8 | 45 | 14 | 1 | 0 | 30 | 0 | 0 | 93.3% | 31.1% | -| vm | 128 | 73 | 39 | 3 | 13 | 0 | 0 | 65.2% | 57.0% | -| webcrypto | 107 | 43 | 21 | 1 | 0 | 0 | 42 | 67.2% | 66.2% | -| webstreams | 68 | 66 | 1 | 0 | 0 | 0 | 1 | 98.5% | 98.5% | -| whatwg | 261 | 43 | 32 | 0 | 0 | 0 | 186 | 57.3% | 57.3% | -| worker_threads | 189 | 25 | 29 | 127 | 0 | 0 | 8 | 46.3% | 13.8% | -| zlib | 61 | 52 | 5 | 0 | 0 | 0 | 4 | 91.2% | 91.2% | +| url | 51 | 19 | 10 | 0 | 0 | 21 | 1 | 65.5% | 38.0% | +| util | 235 | 86 | 14 | 0 | 0 | 20 | 115 | 86.0% | 71.7% | +| v8 | 57 | 14 | 1 | 0 | 30 | 12 | 0 | 93.3% | 24.6% | +| vm | 173 | 73 | 39 | 3 | 13 | 45 | 0 | 65.2% | 42.2% | +| webcrypto | 175 | 44 | 21 | 1 | 0 | 62 | 47 | 67.7% | 34.4% | +| webstreams | 89 | 66 | 1 | 0 | 0 | 21 | 1 | 98.5% | 75.0% | +| whatwg | 319 | 43 | 32 | 0 | 0 | 56 | 188 | 57.3% | 32.8% | +| worker_threads | 202 | 25 | 29 | 127 | 0 | 13 | 8 | 46.3% | 12.9% | +| zlib | 324 | 45 | 15 | 0 | 0 | 260 | 4 | 75.0% | 14.1% | ## Split Test Summary | File | Subtests | Passing | Gap | WASI-impossible | Engine diff | Unevaluated | Internals | |------|----------|----------|-----|-----------------|-------------|-------------|-----------| +| `test-esm-detect-ambiguous.mjs` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | +| `test-esm-dynamic-import-attribute.mjs` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | | `test-esm-extensionless-esm-and-wasm.mjs` | 10 | 3 | 7 | 0 | 0 | 0 | 0 | -| `test-esm-json.mjs` | 3 | 2 | 1 | 0 | 0 | 0 | 0 | +| `test-esm-import-meta-main-eval.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-esm-import-meta-resolve.mjs` | 6 | 0 | 6 | 0 | 0 | 0 | 0 | +| `test-esm-json.mjs` | 4 | 2 | 1 | 0 | 0 | 1 | 0 | | `test-esm-loader-modulemap.js` | 5 | 0 | 0 | 0 | 0 | 0 | 5 | -| `test-esm-type-flag-loose-files.mjs` | 7 | 2 | 5 | 0 | 0 | 0 | 0 | -| `test-esm-type-flag-package-scopes.mjs` | 16 | 6 | 10 | 0 | 0 | 0 | 0 | +| `test-esm-loader-spawn-promisified.mjs` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-require-module-conditional-exports.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-require-module-cycle-esm-cjs-esm-esm.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | | `test-require-module-cycle-esm-cjs-esm.js` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | | `test-require-module-cycle-esm-esm-cjs-esm-esm.js` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | | `test-require-module-cycle-esm-esm-cjs-esm.js` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | | `test-require-module-defined-esmodule.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-require-module-tla.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | | `test-require-module-with-detection.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-require-module.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | +| `test-typescript-commonjs.mjs` | 14 | 0 | 14 | 0 | 0 | 0 | 0 | +| `test-typescript-eval.mjs` | 24 | 0 | 24 | 0 | 0 | 0 | 0 | +| `test-typescript-module.mjs` | 10 | 0 | 10 | 0 | 0 | 0 | 0 | +| `test-typescript.mjs` | 30 | 0 | 30 | 0 | 0 | 0 | 0 | +| `test-abortcontroller-internal.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-abortcontroller.js` | 19 | 19 | 0 | 0 | 0 | 0 | 0 | | `test-aborted-util.js` | 5 | 4 | 1 | 0 | 0 | 0 | 0 | | `test-abortsignal-cloneable.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-abortsignal-drop-settled-signals.mjs` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | | `test-accessor-properties.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-assert-async.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | -| `test-assert-calltracker-calls.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | -| `test-assert-calltracker-getCalls.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-assert-class-destructuring.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-assert-class.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | | `test-assert-deep-with-error.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-assert-deep.js` | 39 | 39 | 0 | 0 | 0 | 0 | 0 | -| `test-assert-fail-deprecation.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | +| `test-assert-deep.js` | 54 | 39 | 0 | 0 | 0 | 15 | 0 | | `test-assert-fail.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | | `test-assert-if-error.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | | `test-assert-typedarray-deepequal.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | -| `test-assert.js` | 18 | 18 | 0 | 0 | 0 | 0 | 0 | -| `test-blob.js` | 41 | 36 | 2 | 0 | 0 | 0 | 3 | -| `test-blocklist.js` | 17 | 17 | 0 | 0 | 0 | 0 | 0 | +| `test-assert.js` | 23 | 17 | 1 | 0 | 0 | 5 | 0 | +| `test-async-local-storage-isolation.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-async-local-storage-run-scope.js` | 10 | 0 | 0 | 0 | 0 | 10 | 0 | +| `test-bench-cli-backpressure.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-bench-cli-lifecycle.js` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-bench-cli-reporters.js` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-bench-cli.js` | 12 | 0 | 0 | 0 | 0 | 12 | 0 | +| `test-bench-run-exit-code.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-blob.js` | 44 | 36 | 2 | 0 | 0 | 3 | 3 | +| `test-blocklist.js` | 63 | 17 | 0 | 0 | 0 | 46 | 0 | | `test-broadcastchannel-custom-inspect.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | +| `test-buffer-alloc-alignment.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | | `test-buffer-alloc.js` | 53 | 53 | 0 | 0 | 0 | 0 | 0 | | `test-buffer-arraybuffer.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | | `test-buffer-badhex.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | -| `test-buffer-copy.js` | 14 | 14 | 0 | 0 | 0 | 0 | 0 | +| `test-buffer-copy-immutable.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-buffer-copy.js` | 20 | 14 | 0 | 0 | 0 | 6 | 0 | | `test-buffer-fill.js` | 4 | 0 | 0 | 0 | 0 | 0 | 4 | -| `test-buffer-from.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | -| `test-buffer-indexof.js` | 7 | 7 | 0 | 0 | 0 | 0 | 0 | +| `test-buffer-from.js` | 8 | 3 | 0 | 0 | 0 | 5 | 0 | +| `test-buffer-generic-methods.js` | 60 | 0 | 0 | 0 | 0 | 60 | 0 | +| `test-buffer-indexof.js` | 11 | 7 | 0 | 0 | 0 | 4 | 0 | +| `test-buffer-islatin1.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-buffer-prototype-inspect.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-buffer-readint.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | | `test-buffer-readuint.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | | `test-buffer-slice.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | +| `test-buffer-stringlength.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | | `test-buffer-swap.js` | 9 | 9 | 0 | 0 | 0 | 0 | 0 | | `test-buffer-tojson.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-buffer-tostring-range.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | | `test-buffer-write.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-buffer-writeint.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | | `test-buffer-writeuint.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | | `test-child-process-bad-stdio.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | | `test-child-process-constructor.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | | `test-child-process-cwd.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | +| `test-child-process-default-env.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-child-process-exec-abortcontroller-promisified.js` | 8 | 0 | 0 | 8 | 0 | 0 | 0 | | `test-child-process-exec-maxbuf.js` | 11 | 9 | 0 | 2 | 0 | 0 | 0 | | `test-child-process-execFile-promisified-abortController.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | @@ -165,37 +186,60 @@ Secondary full-public compatibility, including public tests that are currently e | `test-child-process-validate-stdio.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | | `test-child-process-windows-hide.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | | `test-cli-eval.js` | 5 | 2 | 3 | 0 | 0 | 0 | 0 | +| `test-cli-node-print-help-style.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | | `test-cli-permission-deny-fs.js` | 8 | 0 | 8 | 0 | 0 | 0 | 0 | | `test-cli-permission-multiple-allow.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | | `test-common-gc.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | +| `test-common-must-not-mutate-object-deep.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-common.js` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | +| `test-compile-cache-api-portable.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-compile-cache-typescript-commonjs.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-compile-cache-typescript-esm.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-compression-decompression-stream.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | +| `test-config-file.js` | 43 | 0 | 0 | 0 | 0 | 43 | 0 | | `test-console-group.js` | 8 | 8 | 0 | 0 | 0 | 0 | 0 | | `test-console-instance.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | -| `test-crypto-authenticated.js` | 20 | 20 | 0 | 0 | 0 | 0 | 0 | +| `test-crypto-argon2.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-crypto-async-sign-verify.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-crypto-authenticated.js` | 17 | 16 | 0 | 0 | 0 | 1 | 0 | | `test-crypto-certificate.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-crypto-cipheriv-decipheriv.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | | `test-crypto-dh-constructor.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-crypto-dh-stateless.js` | 8 | 0 | 8 | 0 | 0 | 0 | 0 | | `test-crypto-dh.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-crypto-ecb.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-crypto-encoding-validation-error.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | | `test-crypto-gcm-explicit-short-tag.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | -| `test-crypto-hash.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | -| `test-crypto-hmac.js` | 7 | 7 | 0 | 0 | 0 | 0 | 0 | -| `test-crypto-key-objects-to-crypto-key.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | -| `test-crypto-key-objects.js` | 18 | 17 | 1 | 0 | 0 | 0 | 0 | -| `test-crypto-keygen.js` | 11 | 11 | 0 | 0 | 0 | 0 | 0 | -| `test-crypto-prime.js` | 10 | 0 | 0 | 1 | 0 | 0 | 9 | -| `test-crypto-random.js` | 22 | 22 | 0 | 0 | 0 | 0 | 0 | -| `test-crypto-rsa-dsa.js` | 7 | 7 | 0 | 0 | 0 | 0 | 0 | -| `test-crypto-scrypt.js` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | +| `test-crypto-hash.js` | 4 | 3 | 0 | 0 | 0 | 1 | 0 | +| `test-crypto-hmac.js` | 10 | 8 | 0 | 0 | 0 | 2 | 0 | +| `test-crypto-job-error-parity.js` | 13 | 0 | 0 | 0 | 0 | 13 | 0 | +| `test-crypto-key-objects-raw.js` | 18 | 0 | 0 | 0 | 0 | 18 | 0 | +| `test-crypto-key-objects.js` | 20 | 16 | 1 | 0 | 0 | 3 | 0 | +| `test-crypto-key-store.js` | 10 | 0 | 0 | 0 | 0 | 10 | 0 | +| `test-crypto-keygen-raw.js` | 12 | 0 | 0 | 0 | 0 | 12 | 0 | +| `test-crypto-keygen.js` | 10 | 10 | 0 | 0 | 0 | 0 | 0 | +| `test-crypto-keyobject-hidden-slots.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-crypto-negative-zero.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-crypto-pbkdf2.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-crypto-pkcs12.js` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | +| `test-crypto-prepare-asymmetric-key.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-crypto-prime.js` | 10 | 9 | 0 | 1 | 0 | 0 | 0 | +| `test-crypto-random.js` | 27 | 22 | 0 | 0 | 0 | 5 | 0 | +| `test-crypto-randomuuidv7.js` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-crypto-rsa-dsa.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | +| `test-crypto-rsa-oaep-mgf1.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-crypto-scrypt.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | | `test-crypto-secret-keygen.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | -| `test-crypto-sign-verify.js` | 19 | 16 | 2 | 1 | 0 | 0 | 0 | -| `test-crypto-x509.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | +| `test-crypto-sign-verify.js` | 18 | 15 | 1 | 0 | 0 | 2 | 0 | +| `test-crypto-subtle-cross-realm.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-crypto-x509.js` | 5 | 0 | 0 | 0 | 0 | 0 | 5 | +| `test-debugger-invalid-json.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-dgram-address.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-dgram-bind-fd-error.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | +| `test-dgram-bind-sync.js` | 10 | 0 | 0 | 0 | 0 | 10 | 0 | | `test-dgram-blocklist.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | | `test-dgram-close-signal.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | +| `test-dgram-connect-sync.js` | 12 | 0 | 0 | 0 | 0 | 12 | 0 | | `test-dgram-create-socket-handle-fd.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | | `test-dgram-create-socket-handle.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | | `test-dgram-createSocket-type.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | @@ -206,14 +250,54 @@ Secondary full-public compatibility, including public tests that are currently e | `test-dgram-setBroadcast.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-dgram-socket-buffer-size.js` | 6 | 1 | 5 | 0 | 0 | 0 | 0 | | `test-dgram-unref.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | +| `test-diagnostics-channel-bounded-channel-run.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-diagnostics-channel-bounded-channel-scope-error.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-diagnostics-channel-bounded-channel-scope-nested.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-diagnostics-channel-bounded-channel-scope.js` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | +| `test-diagnostics-channel-bounded-channel.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-diagnostics-channel-run-stores-scope.js` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | | `test-diagnostics-channel-tracing-channel-has-subscribers.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-dns-lookup.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | -| `test-dns-setlocaladdress.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | +| `test-dns-lookup.js` | 4 | 0 | 0 | 0 | 0 | 0 | 4 | +| `test-dns-resolvesrv-econnrefused.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-dns-setlocaladdress.js` | 3 | 1 | 1 | 0 | 0 | 1 | 0 | | `test-dns-setservers-type-check.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | -| `test-dns.js` | 12 | 0 | 12 | 0 | 0 | 0 | 0 | +| `test-dns.js` | 14 | 0 | 14 | 0 | 0 | 0 | 0 | | `test-domain-intercept.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-domain-promise.js` | 10 | 4 | 6 | 0 | 0 | 0 | 0 | | `test-domexception-cause.js` | 4 | 1 | 3 | 0 | 0 | 0 | 0 | +| `test-dtls-alpn-validation.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-alpn.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-dtls-authorized-before-handshake.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-dtls-authorized.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-ciphers.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-client-cert.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-close.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-dtls-destroy-in-callback.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-handshake-timeout.mjs` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | +| `test-dtls-ipv6.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-dtls-ipv6only.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-dtls-keylog.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-max-sessions.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-mtu.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-opened-settles.mjs` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-dtls-options.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-dtls-passphrase.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-dtls-peer-x509-certificate.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-dtls-psk.mjs` | 18 | 0 | 0 | 0 | 0 | 18 | 0 | +| `test-dtls-reject-unauthorized.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-resumption-reject-unauthorized.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-dtls-secure-context.mjs` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-dtls-send.mjs` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-dtls-server-handshake-error.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-dtls-servername-validation.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-dtls-session-id-context.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-dtls-session-resumption.mjs` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | +| `test-dtls-session-table-cleanup.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-sni-binding.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-sni.mjs` | 12 | 0 | 0 | 0 | 0 | 12 | 0 | +| `test-dtls-socket-options.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-dtls-stats.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-dtls-verify-identity.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-error-aggregateTwoErrors.js` | 6 | 0 | 0 | 0 | 0 | 0 | 6 | | `test-error-prepare-stack-trace.js` | 4 | 2 | 0 | 1 | 0 | 0 | 1 | | `test-errors-aborterror.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | @@ -223,41 +307,64 @@ Secondary full-public compatibility, including public tests that are currently e | `test-event-emitter-check-listener-leaks.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-event-emitter-listeners.js` | 10 | 10 | 0 | 0 | 0 | 0 | 0 | | `test-event-emitter-remove-all-listeners.js` | 7 | 7 | 0 | 0 | 0 | 0 | 0 | -| `test-event-emitter-remove-listeners.js` | 10 | 10 | 0 | 0 | 0 | 0 | 0 | +| `test-event-emitter-remove-listeners.js` | 12 | 10 | 0 | 0 | 0 | 2 | 0 | | `test-events-customevent.js` | 26 | 0 | 0 | 0 | 0 | 0 | 26 | -| `test-events-getmaxlisteners.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-events-getmaxlisteners.js` | 3 | 2 | 0 | 0 | 0 | 1 | 0 | | `test-events-static-geteventlisteners.js` | 4 | 0 | 0 | 0 | 0 | 0 | 4 | | `test-eventtarget-memoryleakwarning.js` | 8 | 0 | 0 | 0 | 0 | 0 | 8 | -| `test-eventtarget.js` | 61 | 0 | 0 | 0 | 0 | 0 | 61 | +| `test-eventtarget.js` | 63 | 0 | 0 | 0 | 0 | 0 | 63 | +| `test-fastutf8stream-destroy.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-fastutf8stream-flush-sync.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-fastutf8stream-flush.js` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | +| `test-fastutf8stream-fsync.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-fastutf8stream-minlength.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-fastutf8stream-retry.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-fastutf8stream-sync.js` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-fastutf8stream-write.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-ffi-missing-build.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | | `test-file.js` | 16 | 16 | 0 | 0 | 0 | 0 | 0 | -| `test-find-package-json.js` | 10 | 7 | 3 | 0 | 0 | 0 | 0 | +| `test-filehandle-autoclose.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-find-package-json.js` | 11 | 7 | 3 | 0 | 0 | 1 | 0 | | `test-fixed-queue.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | | `test-freeze-intrinsics.js` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | | `test-fs-access.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | | `test-fs-append-file-flush.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-fs-append-file.js` | 8 | 8 | 0 | 0 | 0 | 0 | 0 | +| `test-fs-chown-negative-one.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-fs-copyfile-respect-permissions.js` | 3 | 0 | 0 | 3 | 0 | 0 | 0 | +| `test-fs-cp-async-special-files-in-tree.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-fs-cp-sync-dereference-nested-symlink.mjs` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | | `test-fs-error-messages.js` | 31 | 0 | 0 | 0 | 0 | 0 | 31 | +| `test-fs-existssync-memleak-longpath.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-fs-fchown-negative-one.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-fs-glob.mjs` | 23 | 0 | 0 | 0 | 0 | 23 | 0 | +| `test-fs-lchown-negative-one.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-fs-mkdir-recursive-eaccess.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | | `test-fs-mkdir.js` | 21 | 21 | 0 | 0 | 0 | 0 | 0 | | `test-fs-mkdtemp.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | +| `test-fs-mkdtempDisposableSync.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-fs-opendir.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | | `test-fs-options-immutable.js` | 6 | 0 | 6 | 0 | 0 | 0 | 0 | | `test-fs-promises.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | | `test-fs-promisified.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-fs-read-position-validation.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-fs-read-promises-position-validation.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-fs-read-stream-double-close.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-fs-read-stream-inherit.js` | 11 | 11 | 0 | 0 | 0 | 0 | 0 | | `test-fs-read-stream.js` | 10 | 10 | 0 | 0 | 0 | 0 | 0 | +| `test-fs-readSync-position-validation.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-fs-readdir-recursive-tree.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | | `test-fs-readfile-flags.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-fs-readfile.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | | `test-fs-readv-sync.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | | `test-fs-readv.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | -| `test-fs-rm.js` | 4 | 0 | 0 | 0 | 0 | 0 | 4 | -| `test-fs-rmdir-recursive-throws-not-found.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | -| `test-fs-rmdir-recursive-throws-on-file.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | -| `test-fs-rmdir-recursive.js` | 4 | 0 | 0 | 0 | 0 | 0 | 4 | +| `test-fs-realpath-namespaced-drive-win.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-fs-rm.js` | 5 | 0 | 0 | 0 | 0 | 0 | 5 | +| `test-fs-rmdir-throws-not-found.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-fs-rmdir-throws-on-file.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-fs-stat-abort-test.js` | 10 | 0 | 0 | 0 | 0 | 10 | 0 | | `test-fs-stat-bigint.js` | 9 | 0 | 9 | 0 | 0 | 0 | 0 | -| `test-fs-stat.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-fs-stat.js` | 4 | 3 | 0 | 0 | 0 | 1 | 0 | | `test-fs-statfs.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-fs-stream-construct-compat-graceful-fs.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-fs-stream-construct-compat-old-node.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | @@ -267,11 +374,11 @@ Secondary full-public compatibility, including public tests that are currently e | `test-fs-truncate-clear-file-zero.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-fs-truncate.js` | 10 | 10 | 0 | 0 | 0 | 0 | 0 | | `test-fs-util-validateoffsetlength.js` | 5 | 0 | 0 | 0 | 0 | 0 | 5 | -| `test-fs-utils-get-dirents.js` | 9 | 0 | 0 | 0 | 0 | 0 | 9 | +| `test-fs-utils-get-dirents.js` | 10 | 0 | 0 | 0 | 0 | 0 | 10 | | `test-fs-utimes.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-fs-watch-abort-signal.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-fs-watch-encoding.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | -| `test-fs-watch-enoent.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | +| `test-fs-watch-enoent.js` | 7 | 0 | 0 | 0 | 0 | 0 | 7 | | `test-fs-write-buffer.js` | 8 | 8 | 0 | 0 | 0 | 0 | 0 | | `test-fs-write-file-flush.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-fs-write-file-sync.js` | 6 | 5 | 1 | 0 | 0 | 0 | 0 | @@ -287,8 +394,11 @@ Secondary full-public compatibility, including public tests that are currently e | `test-fs-writev.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | | `test-handle-wrap-hasref.js` | 6 | 0 | 0 | 0 | 0 | 0 | 6 | | `test-heap-prof-invalid-args.js` | 3 | 0 | 0 | 3 | 0 | 0 | 0 | +| `test-heapdump-fs-mkdir-recursive.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-http-1.0.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-http-aborted.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | +| `test-http-agent-free-socket-pending-read.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-http-agent-keep-alive-timeout-buffer.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-http-agent-timeout.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | | `test-http-chunk-extensions-limit.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-http-client-abort-destroy.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | @@ -297,35 +407,43 @@ Secondary full-public compatibility, including public tests that are currently e | `test-http-client-defaults.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-http-client-res-destroyed.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-http-dummy-characters-smuggling.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | +| `test-http-early-hints-invalid-argument.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-http-early-hints.js` | 6 | 2 | 4 | 0 | 0 | 0 | 0 | | `test-http-generic-streams.js` | 5 | 0 | 0 | 5 | 0 | 0 | 0 | | `test-http-head-throw-on-response-body-write.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-http-header-value-relaxed.js` | 18 | 0 | 0 | 0 | 0 | 18 | 0 | | `test-http-insecure-parser-per-stream.js` | 5 | 1 | 2 | 2 | 0 | 0 | 0 | +| `test-http-is-valid-header.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-http-max-header-size-per-stream.js` | 4 | 0 | 2 | 2 | 0 | 0 | 0 | | `test-http-missing-header-separator-cr.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | | `test-http-missing-header-separator-lf.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | -| `test-http-outgoing-destroyed.js` | 3 | 1 | 2 | 0 | 0 | 0 | 0 | -| `test-http-outgoing-internal-headernames-getter.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-http-outgoing-internal-headers.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | +| `test-http-odd-hex-write.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-http-outgoing-destroyed.js` | 5 | 1 | 1 | 0 | 0 | 3 | 0 | | `test-http-outgoing-message-capture-rejection.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-http-outgoing-properties.js` | 5 | 4 | 1 | 0 | 0 | 0 | 0 | | `test-http-outgoing-proto.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-http-outgoing-renderHeaders.js` | 4 | 0 | 0 | 0 | 0 | 0 | 4 | | `test-http-outgoing-settimeout.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-http-outgoing-writableFinished.js` | 4 | 3 | 1 | 0 | 0 | 0 | 0 | +| `test-http-parser-max-header-pairs-cache.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-http-parser.js` | 12 | 12 | 0 | 0 | 0 | 0 | 0 | | `test-http-req-res-close.js` | 3 | 1 | 0 | 0 | 0 | 0 | 2 | +| `test-http-request-connect-path.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-http-request-host-header.js` | 2 | 1 | 0 | 1 | 0 | 0 | 0 | | `test-http-request-join-authorization-headers.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-http-request-signal.js` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | | `test-http-response-close.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-http-response-multi-content-length.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-http-response-setheaders.js` | 7 | 7 | 0 | 0 | 0 | 0 | 0 | | `test-http-server-capture-rejections.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | -| `test-http-server-connection-list-when-close.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-http-server-non-utf8-header.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-http-server-options-highwatermark.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-http-server-timeouts-validation.js` | 7 | 7 | 0 | 0 | 0 | 0 | 0 | | `test-http-transfer-encoding-smuggling.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-http-websocket-mask-immutable.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-http-websocket-mask.js` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | | `test-http-write-head-2.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | +| `test-http-write-information.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-http2-alpn.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | | `test-http2-capture-rejection.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | | `test-http2-client-destroy.js` | 9 | 0 | 0 | 0 | 0 | 0 | 9 | @@ -336,6 +454,7 @@ Secondary full-public compatibility, including public tests that are currently e | `test-http2-compat-serverresponse-write.js` | 3 | 0 | 0 | 3 | 0 | 0 | 0 | | `test-http2-compat-serverresponse-writehead-array.js` | 3 | 0 | 0 | 3 | 0 | 0 | 0 | | `test-http2-compat-write-early-hints.js` | 3 | 0 | 0 | 3 | 0 | 0 | 0 | +| `test-http2-compat-write-information.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-http2-connect.js` | 7 | 0 | 0 | 7 | 0 | 0 | 0 | | `test-http2-create-client-connect.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | | `test-http2-getpackedsettings.js` | 11 | 0 | 0 | 11 | 0 | 0 | 0 | @@ -343,6 +462,7 @@ Secondary full-public compatibility, including public tests that are currently e | `test-http2-invalidheaderfield.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | | `test-http2-origin.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | | `test-http2-perform-server-handshake.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | +| `test-http2-sensitive-headers.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-http2-server-errors.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | | `test-http2-server-settimeout-no-callback.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | | `test-http2-server-startup.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | @@ -355,25 +475,42 @@ Secondary full-public compatibility, including public tests that are currently e | `test-https-max-header-size-per-stream.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | | `test-icu-data-dir.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-icu-transcode.js` | 5 | 0 | 5 | 0 | 0 | 0 | 0 | +| `test-inspector-network-data-received.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-inspector-network-data-sent.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-internal-error-original-names.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | | `test-internal-errors.js` | 8 | 0 | 0 | 0 | 0 | 0 | 8 | | `test-internal-fs-syncwritestream.js` | 8 | 0 | 0 | 0 | 0 | 0 | 8 | | `test-internal-fs.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-internal-socket-list-receive.js` | 4 | 0 | 0 | 0 | 0 | 0 | 4 | | `test-internal-socket-list-send.js` | 6 | 0 | 0 | 0 | 0 | 0 | 6 | +| `test-internal-util-helpers.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-internal-util-objects.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-internal-validators-validateoneof.js` | 6 | 0 | 0 | 0 | 0 | 0 | 6 | +| `test-internal-webidl-buffer-source.js` | 25 | 0 | 0 | 0 | 0 | 25 | 0 | +| `test-internal-webidl-converttoint.js` | 4 | 0 | 0 | 0 | 0 | 0 | 4 | +| `test-internal-webidl.js` | 24 | 0 | 0 | 0 | 0 | 24 | 0 | +| `test-mark-promise-handled.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-mime-api.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | +| `test-module-builtin-policies.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-module-create-require-multibyte.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-module-multi-extensions.js` | 7 | 7 | 0 | 0 | 0 | 0 | 0 | +| `test-module-print-timing.mjs` | 5 | 0 | 5 | 0 | 0 | 0 | 0 | +| `test-module-relative-resolve-cache.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-module-setsourcemapssupport.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-module-strip-types.js` | 9 | 9 | 0 | 0 | 0 | 0 | 0 | +| `test-module-strip-types.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | +| `test-navigator.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-net-allow-half-open.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-net-autoselectfamily-default.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-net-autoselectfamily.js` | 4 | 3 | 1 | 0 | 0 | 0 | 0 | | `test-net-better-error-messages-path.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-net-blocklist.js` | 4 | 3 | 1 | 0 | 0 | 0 | 0 | +| `test-net-boundsocket.js` | 17 | 0 | 0 | 0 | 0 | 17 | 0 | | `test-net-bytes-written-large.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-net-connect-custom-lookup-non-string-address.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-net-connect-options-invalid.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-net-connect-options-port.js` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | +| `test-net-keepalive-interval-count.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-net-negative-zero.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-net-normalize-args.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-net-perf_hooks.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-net-server-call-listen-multiple-times.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | @@ -381,78 +518,189 @@ Secondary full-public compatibility, including public tests that are currently e | `test-net-server-listen-options-signal.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | | `test-net-server-listen-options.js` | 3 | 1 | 2 | 0 | 0 | 0 | 0 | | `test-net-server-listen-path.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | +| `test-net-socket-unref-timer-parent-chain.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-net-socket-write-after-close.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-net-transfer-guards.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | | `test-nodeeventtarget.js` | 7 | 0 | 0 | 0 | 0 | 0 | 7 | -| `test-perf-hooks-histogram.js` | 6 | 0 | 6 | 0 | 0 | 0 | 0 | +| `test-parse-args.mjs` | 95 | 0 | 0 | 0 | 0 | 95 | 0 | +| `test-perf-hooks-histogram-analysis.js` | 15 | 0 | 0 | 0 | 0 | 15 | 0 | +| `test-perf-hooks-histogram-diff.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-perf-hooks-histogram-import.js` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | +| `test-perf-hooks-histogram-record-zero.js` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | +| `test-perf-hooks-histogram-snapshot.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-perf-hooks-histogram-stats.js` | 13 | 0 | 0 | 0 | 0 | 13 | 0 | +| `test-perf-hooks-histogram.js` | 7 | 0 | 7 | 0 | 0 | 0 | 0 | +| `test-perf-hooks-monitor-event-loop-delay-options.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-perf-hooks-resourcetiming-attributes.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-perf-hooks-resourcetiming.js` | 5 | 0 | 5 | 0 | 0 | 0 | 0 | +| `test-perf-hooks-sliding-window-histogram.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-perf-hooks-usertiming.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | -| `test-performance-function.js` | 6 | 0 | 6 | 0 | 0 | 0 | 0 | | `test-performance-gc.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | +| `test-performanceobserver-observer-counts.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | | `test-performanceobserver.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | +| `test-permission-allow-addons-cli.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-permission-allow-child-process-cli.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-permission-allow-wasi-cli.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-permission-allow-worker-cli.js` | 2 | 0 | 1 | 1 | 0 | 0 | 0 | +| `test-permission-audit-addons-does-not-deny.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-permission-audit-child-process-inherit-flags.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-permission-audit-fs-does-not-deny.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-permission-audit-net-does-not-deny.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-permission-child-process-cli.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | -| `test-permission-fs-read.js` | 3 | 2 | 1 | 0 | 0 | 0 | 0 | +| `test-permission-child-process-inherit-flags-substring.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-permission-child-process-inherit-flags.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-permission-dlopen-binary.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-permission-drop-child-process.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-permission-drop-errors.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-permission-drop-fs-all.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-permission-drop-fs-granted-path.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-permission-drop-fs-read.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-permission-drop-fs-scope.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-permission-drop-fs-write.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-permission-drop-net.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-permission-drop-worker.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-permission-fs-read.js` | 4 | 2 | 2 | 0 | 0 | 0 | 0 | | `test-permission-fs-require.js` | 4 | 2 | 2 | 0 | 0 | 0 | 0 | | `test-permission-fs-symlink-target-write.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-permission-fs-symlink.js` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | | `test-permission-fs-traversal-path.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | -| `test-permission-fs-wildcard.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | +| `test-permission-fs-wildcard.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | | `test-permission-fs-windows-path.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | -| `test-permission-fs-write-report.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | -| `test-permission-fs-write-v8.js` | 2 | 0 | 0 | 0 | 2 | 0 | 0 | -| `test-permission-has.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | +| `test-permission-fs-write-report.js` | 5 | 0 | 2 | 0 | 0 | 3 | 0 | +| `test-permission-fs-write-v8.js` | 4 | 0 | 0 | 0 | 2 | 2 | 0 | +| `test-permission-has.js` | 3 | 0 | 2 | 0 | 0 | 1 | 0 | | `test-permission-inspector-brk.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | | `test-permission-inspector.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | -| `test-primordials-apply.js` | 6 | 0 | 0 | 0 | 0 | 0 | 6 | +| `test-permission-net-dns.js` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-permission-net-dtls.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-permission-net-quic.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-permission-net-socket-fd.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-permission-net-uds.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-permission-openssl-store.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-primordials-apply.js` | 8 | 0 | 0 | 0 | 0 | 0 | 8 | | `test-primordials-promise.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-primordials-regexp.js` | 11 | 0 | 0 | 0 | 0 | 0 | 11 | | `test-priority-queue.js` | 6 | 0 | 0 | 0 | 0 | 0 | 6 | | `test-process-env-allowed-flags.js` | 3 | 1 | 2 | 0 | 0 | 0 | 0 | | `test-process-env-windows-error-reset.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-process-env.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | +| `test-process-finalization.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-process-getactiveresources-track-timer-lifetime.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | +| `test-process-timeout-blocked.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-process-timeout.js` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | | `test-process-uncaught-exception-monitor.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | -| `test-querystring.js` | 11 | 11 | 0 | 0 | 0 | 0 | 0 | +| `test-querystring.js` | 12 | 11 | 0 | 0 | 0 | 1 | 0 | | `test-queue-microtask.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | +| `test-quic-blocklist.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-callback-error-onerror.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-callback-error-stream-onerror.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-datagram-edge-cases.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-datagram-sources.mjs` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-quic-draining-period.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-quic-early-selection-order.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-endpoint-idle-timeout.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-endpoint-onsession-throws.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-endpoint-reuse.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-endpoint-state-transitions.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-error-class.mjs` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-quic-error-destroy-rejects-promises.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-flow-control-large-constrained.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-h3-callback-errors.mjs` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-quic-h3-datagram.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-h3-error-codes.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-h3-header-validation.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-h3-origin.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-h3-priority.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-h3-qpack-settings.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-h3-settings.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-h3-stream-idle-timeout.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-h3-stream-without-onstream.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-h3-zero-rtt-rejected-settings.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-internal-endpoint-stats-state.mjs` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-quic-keepalive.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-list-endpoints.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-max-window.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-reject-unauthorized.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-session-close-error-code.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-quic-session-close-graceful.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-session-close.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-session-destroy-reentrant.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-session-destroy.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-session-opened-early-destroy.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-quic-sni-multi-entry.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-sni-setcontexts.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-stateless-reset.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-stream-body-filehandle.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-stream-body-promise.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-stream-body-readable-stream.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-stream-body-sources.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-quic-stream-body-state.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-stream-body-string-shorthand.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-stream-idle-timeout.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-stream-priority.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-stream-setbody-errors.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-stream-truncated-reads-destroy.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-quic-stream-truncated-reads-timeout.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-stream-truncated-reads.mjs` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-quic-stream-writer-api.mjs` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | +| `test-quic-stream-writer-fail-error-code.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-tls-crl.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quic-tls-options.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-quic-tls-verify-client.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-quotaexceedederror.js` | 16 | 0 | 0 | 0 | 0 | 16 | 0 | | `test-readline-emit-keypress-events.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | | `test-readline-interface.js` | 42 | 0 | 0 | 0 | 0 | 0 | 42 | +| `test-readline-promises-csi.mjs` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | | `test-readline-promises-interface.js` | 33 | 0 | 0 | 0 | 0 | 0 | 33 | | `test-readline-tab-complete.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-readline.js` | 6 | 0 | 6 | 0 | 0 | 0 | 0 | | `test-release-changelog.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-repl-context.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | +| `test-repl-multiline-navigation-while-adding.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-repl-multiline-navigation.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | | `test-repl-require.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | +| `test-repl-tab-complete-custom-completer.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-repl-tab-complete-import.js` | 3 | 0 | 0 | 3 | 0 | 0 | 0 | -| `test-repl-tab-complete.js` | 5 | 0 | 0 | 5 | 0 | 0 | 0 | +| `test-repl-tab-complete-on-editor-mode.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | +| `test-repl-tab-complete-require.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | | `test-require-cache.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-require-node-prefix.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-require-resolve-opts-paths-relative.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-require-resolve.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-runner-assert.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | +| `test-runner-aftereach-runtime-skip.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-runner-assert.js` | 7 | 1 | 1 | 0 | 0 | 5 | 0 | | `test-runner-cli-concurrency.js` | 5 | 0 | 0 | 5 | 0 | 0 | 0 | | `test-runner-cli-timeout.js` | 3 | 0 | 0 | 3 | 0 | 0 | 0 | -| `test-runner-cli.js` | 11 | 0 | 0 | 11 | 0 | 0 | 0 | +| `test-runner-cli.js` | 13 | 0 | 0 | 11 | 0 | 2 | 0 | | `test-runner-concurrency.js` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | -| `test-runner-coverage.js` | 12 | 12 | 0 | 0 | 0 | 0 | 0 | -| `test-runner-custom-assertions.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | +| `test-runner-coverage.js` | 16 | 12 | 0 | 0 | 0 | 4 | 0 | +| `test-runner-diagnostics-channel.js` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | | `test-runner-error-reporter.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-runner-extraneous-async-activity.js` | 4 | 0 | 4 | 0 | 0 | 0 | 0 | | `test-runner-force-exit-flush.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | -| `test-runner-mocking.js` | 43 | 42 | 0 | 0 | 1 | 0 | 0 | -| `test-runner-module-mocking.js` | 19 | 15 | 4 | 0 | 0 | 0 | 0 | -| `test-runner-no-isolation-filtering.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | +| `test-runner-get-test-context.js` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | +| `test-runner-inspect.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-runner-log.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-runner-mocking.js` | 54 | 42 | 0 | 0 | 1 | 11 | 0 | +| `test-runner-module-mocking.js` | 23 | 15 | 2 | 0 | 0 | 6 | 0 | +| `test-runner-no-isolation-filtering.js` | 5 | 0 | 3 | 0 | 0 | 2 | 0 | +| `test-runner-no-isolation-hooks.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-runner-plan.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-runner-run.mjs` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | | `test-runner-snapshot-file-tests.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | -| `test-runner-snapshot-tests.js` | 6 | 0 | 0 | 0 | 0 | 0 | 6 | +| `test-runner-snapshot-tests.js` | 7 | 0 | 0 | 0 | 0 | 0 | 7 | +| `test-runner-tag-filter-cli.mjs` | 15 | 0 | 0 | 0 | 0 | 15 | 0 | +| `test-runner-tag-filter-parser.mjs` | 28 | 0 | 0 | 0 | 0 | 28 | 0 | +| `test-runner-tags-experimental-warning.mjs` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-runner-tags-inheritance.mjs` | 14 | 0 | 0 | 0 | 0 | 14 | 0 | +| `test-runner-tags-validation.mjs` | 16 | 0 | 0 | 0 | 0 | 16 | 0 | | `test-runner-test-filepath.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-runner-test-fullname.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-runner-test-rerun-failures.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | | `test-runner-wait-for.js` | 7 | 7 | 0 | 0 | 0 | 0 | 0 | +| `test-runner-worker-id.js` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | | `test-set-http-max-http-headers.js` | 3 | 1 | 2 | 0 | 0 | 0 | 0 | | `test-set-incoming-message-header.js` | 3 | 2 | 1 | 0 | 0 | 0 | 0 | | `test-shadow-realm-prepare-stack-trace.js` | 2 | 0 | 0 | 0 | 2 | 0 | 0 | -| `test-single-executable-blob-config-errors.js` | 11 | 0 | 0 | 11 | 0 | 0 | 0 | -| `test-single-executable-blob-config.js` | 5 | 0 | 0 | 5 | 0 | 0 | 0 | | `test-snapshot-api.js` | 2 | 0 | 0 | 0 | 2 | 0 | 0 | | `test-snapshot-argv1.js` | 2 | 0 | 0 | 0 | 2 | 0 | 0 | | `test-snapshot-basic.js` | 4 | 0 | 0 | 0 | 4 | 0 | 0 | @@ -470,6 +718,7 @@ Secondary full-public compatibility, including public tests that are currently e | `test-snapshot-eval.js` | 3 | 0 | 0 | 0 | 3 | 0 | 0 | | `test-snapshot-gzip.js` | 2 | 0 | 0 | 0 | 2 | 0 | 0 | | `test-snapshot-incompatible.js` | 3 | 0 | 0 | 0 | 3 | 0 | 0 | +| `test-snapshot-invalid-blob.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-snapshot-net.js` | 2 | 0 | 0 | 0 | 2 | 0 | 0 | | `test-snapshot-stack-trace-limit.js` | 2 | 0 | 0 | 0 | 2 | 0 | 0 | | `test-snapshot-typescript.js` | 2 | 0 | 0 | 0 | 2 | 0 | 0 | @@ -477,46 +726,58 @@ Secondary full-public compatibility, including public tests that are currently e | `test-snapshot-warning.js` | 3 | 0 | 0 | 0 | 3 | 0 | 0 | | `test-source-map-api.js` | 9 | 9 | 0 | 0 | 0 | 0 | 0 | | `test-source-map-enable.js` | 23 | 23 | 0 | 0 | 0 | 0 | 0 | -| `test-sqlite-database-sync.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | -| `test-sqlite-session.js` | 14 | 13 | 1 | 0 | 0 | 0 | 0 | -| `test-sqlite-statement-sync.js` | 9 | 8 | 1 | 0 | 0 | 0 | 0 | -| `test-sqlite.js` | 6 | 5 | 1 | 0 | 0 | 0 | 0 | +| `test-sqlite-aggregate-function.mjs` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | +| `test-sqlite-authz.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-sqlite-backup.mjs` | 15 | 0 | 0 | 0 | 0 | 15 | 0 | +| `test-sqlite-config.js` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | +| `test-sqlite-database.js` | 8 | 4 | 4 | 0 | 0 | 0 | 0 | +| `test-sqlite-named-parameters.js` | 3 | 2 | 1 | 0 | 0 | 0 | 0 | +| `test-sqlite-options-getter-reentry.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-sqlite-serialize.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-sqlite-session.js` | 28 | 13 | 1 | 0 | 0 | 14 | 0 | +| `test-sqlite-statement.js` | 22 | 7 | 15 | 0 | 0 | 0 | 0 | +| `test-sqlite-template-tag.js` | 18 | 0 | 0 | 0 | 0 | 18 | 0 | +| `test-sqlite-timeout.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-sqlite-typed-array-and-data-view.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | +| `test-sqlite.js` | 9 | 4 | 2 | 0 | 0 | 3 | 0 | | `test-startup-empty-regexp-statics.js` | 3 | 0 | 0 | 0 | 3 | 0 | 0 | -| `test-startup-large-pages.js` | 2 | 0 | 0 | 0 | 2 | 0 | 0 | | `test-stream-add-abort-signal.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-stream-auto-destroy.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | | `test-stream-catch-rejections.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-stream-compose-operator.js` | 8 | 8 | 0 | 0 | 0 | 0 | 0 | -| `test-stream-compose.js` | 22 | 21 | 1 | 0 | 0 | 0 | 0 | +| `test-stream-compose.js` | 23 | 21 | 1 | 0 | 0 | 1 | 0 | | `test-stream-construct.js` | 12 | 12 | 0 | 0 | 0 | 0 | 0 | -| `test-stream-consumers.js` | 16 | 16 | 0 | 0 | 0 | 0 | 0 | -| `test-stream-destroy.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | +| `test-stream-consumers.js` | 18 | 16 | 0 | 0 | 0 | 2 | 0 | +| `test-stream-destroy.js` | 7 | 6 | 0 | 0 | 0 | 1 | 0 | | `test-stream-drop-take.js` | 6 | 5 | 1 | 0 | 0 | 0 | 0 | | `test-stream-duplex-destroy.js` | 16 | 16 | 0 | 0 | 0 | 0 | 0 | | `test-stream-duplex-end.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | -| `test-stream-duplex-from.js` | 23 | 22 | 1 | 0 | 0 | 0 | 0 | +| `test-stream-duplex-from.js` | 25 | 22 | 1 | 0 | 0 | 2 | 0 | | `test-stream-duplex-props.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-stream-duplex-readable-writable.js` | 3 | 2 | 1 | 0 | 0 | 0 | 0 | | `test-stream-duplex-writable-finished.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-stream-duplex.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-stream-duplex.js` | 4 | 3 | 0 | 0 | 0 | 1 | 0 | | `test-stream-duplexpair.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | | `test-stream-error-once.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-stream-event-names.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | | `test-stream-filter.js` | 12 | 12 | 0 | 0 | 0 | 0 | 0 | -| `test-stream-finished.js` | 42 | 35 | 7 | 0 | 0 | 0 | 0 | +| `test-stream-finished.js` | 43 | 35 | 8 | 0 | 0 | 0 | 0 | | `test-stream-flatMap.js` | 8 | 8 | 0 | 0 | 0 | 0 | 0 | | `test-stream-forEach.js` | 11 | 11 | 0 | 0 | 0 | 0 | 0 | +| `test-stream-iter-validation.js` | 19 | 0 | 0 | 0 | 0 | 19 | 0 | +| `test-stream-iterator-helpers-test262-tests.mjs` | 8 | 0 | 8 | 0 | 0 | 0 | 0 | | `test-stream-map.js` | 17 | 15 | 2 | 0 | 0 | 0 | 0 | | `test-stream-objectmode-undefined.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-stream-once-readable-pipe.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-stream-pipe-error-handling.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | | `test-stream-pipe-flow.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-stream-pipe-objectmode-to-non-objectmode.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-stream-pipe-same-destination-twice.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-stream-pipe-unpipe-streams.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-stream-pipeline.js` | 80 | 78 | 1 | 1 | 0 | 0 | 0 | +| `test-stream-pipeline.js` | 84 | 78 | 1 | 1 | 0 | 4 | 0 | | `test-stream-promises.js` | 9 | 9 | 0 | 0 | 0 | 0 | 0 | | `test-stream-readable-aborted.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | -| `test-stream-readable-async-iterators.js` | 7 | 0 | 7 | 0 | 0 | 0 | 0 | +| `test-stream-readable-async-iterators.js` | 17 | 0 | 7 | 0 | 0 | 10 | 0 | +| `test-stream-readable-compose.js` | 10 | 10 | 0 | 0 | 0 | 0 | 0 | | `test-stream-readable-default-encoding.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-stream-readable-destroy.js` | 23 | 23 | 0 | 0 | 0 | 0 | 0 | | `test-stream-readable-didRead.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | @@ -529,10 +790,13 @@ Secondary full-public compatibility, including public tests that are currently e | `test-stream-readable-readable.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-stream-readable-reading-readingMore.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-stream-readable-resumeScheduled.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | -| `test-stream-readable-setEncoding-existing-buffers.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-stream-readable-setEncoding-existing-buffers.js` | 5 | 3 | 0 | 0 | 0 | 2 | 0 | | `test-stream-readable-strategy-option.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-stream-readable-to-web-termination.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-stream-readable-unobserved-eof-readable.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | | `test-stream-readable-unshift.js` | 7 | 7 | 0 | 0 | 0 | 0 | 0 | | `test-stream-reduce.js` | 8 | 7 | 1 | 0 | 0 | 0 | 0 | +| `test-stream-some-find-every.mjs` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | | `test-stream-toArray.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | | `test-stream-transform-destroy.js` | 8 | 8 | 0 | 0 | 0 | 0 | 0 | | `test-stream-transform-split-highwatermark.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | @@ -541,6 +805,7 @@ Secondary full-public compatibility, including public tests that are currently e | `test-stream-unpipe-event.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | | `test-stream-wrap-encoding.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-stream-writable-aborted.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-stream-writable-decoded-encoding.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | | `test-stream-writable-destroy.js` | 28 | 28 | 0 | 0 | 0 | 0 | 0 | | `test-stream-writable-end-cb-error.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-stream-writable-finish-destroyed.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | @@ -559,11 +824,17 @@ Secondary full-public compatibility, including public tests that are currently e | `test-stream2-transform.js` | 17 | 17 | 0 | 0 | 0 | 0 | 0 | | `test-stream2-writable.js` | 24 | 24 | 0 | 0 | 0 | 0 | 0 | | `test-streams-highwatermark.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | +| `test-string-decoder-utf8-large.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-stringbytes-external.js` | 3 | 0 | 0 | 0 | 3 | 0 | 0 | -| `test-structuredClone-global.js` | 13 | 11 | 1 | 0 | 0 | 0 | 1 | +| `test-structuredClone-domexception.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-structuredClone-global.js` | 22 | 11 | 1 | 0 | 0 | 9 | 1 | | `test-tick-processor-version-check.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | +| `test-timers-async-store-leak.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | | `test-timers-immediate-promisified.js` | 8 | 0 | 0 | 0 | 0 | 0 | 8 | | `test-timers-interval-promisified.js` | 12 | 0 | 0 | 0 | 0 | 0 | 12 | +| `test-timers-nan-duration-emit-once-per-process.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-timers-negative-duration-warning-emit-once-per-process.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-timers-not-emit-duration-zero.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-timers-refresh.js` | 6 | 0 | 0 | 0 | 0 | 0 | 6 | | `test-timers-timeout-promisified.js` | 8 | 0 | 0 | 0 | 0 | 0 | 8 | | `test-timers-to-primitive.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | @@ -571,77 +842,177 @@ Secondary full-public compatibility, including public tests that are currently e | `test-timers-unref.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-timers-user-call.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-timers-zero-timeout.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-tls-alpn-protocols-validation.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | | `test-tls-basic-validations.js` | 3 | 0 | 0 | 3 | 0 | 0 | 0 | | `test-tls-connect-allow-half-open-option.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | -| `test-tls-external-accessor.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | +| `test-tls-connect-keepalive-nodelay.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-tls-server-parent-constructor-options.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | +| `test-tls-set-ciphers-error.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | +| `test-tls-set-default-ca-certificates-mixed-types.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | | `test-tls-socket-allow-half-open-option.js` | 4 | 0 | 0 | 4 | 0 | 0 | 0 | +| `test-tls-spki-blocklist.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-tls-translate-peer-certificate.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | -| `test-url-fileurltopath.js` | 8 | 8 | 0 | 0 | 0 | 0 | 0 | -| `test-url-format-whatwg.js` | 5 | 0 | 5 | 0 | 0 | 0 | 0 | +| `test-url-fileurltopath.js` | 7 | 7 | 0 | 0 | 0 | 0 | 0 | +| `test-url-format-whatwg.js` | 6 | 0 | 6 | 0 | 0 | 0 | 0 | | `test-url-parse-format.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | -| `test-url-pathtofileurl.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | +| `test-url-pathtofileurl.js` | 8 | 5 | 0 | 0 | 0 | 3 | 0 | +| `test-urlpattern-types.js` | 12 | 0 | 0 | 0 | 0 | 12 | 0 | +| `test-urlpattern.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | | `test-util-callbackify.js` | 9 | 9 | 0 | 0 | 0 | 0 | 0 | -| `test-util-deprecate.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | -| `test-util-format.js` | 5 | 0 | 5 | 0 | 0 | 0 | 0 | -| `test-util-getcallsites.js` | 13 | 12 | 1 | 0 | 0 | 0 | 0 | +| `test-util-convert-signal-to-exit-code.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-util-deprecate.js` | 4 | 3 | 0 | 0 | 0 | 1 | 0 | +| `test-util-exception-with-host-port.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-util-format.js` | 9 | 0 | 9 | 0 | 0 | 0 | 0 | +| `test-util-getcallsites-sourcemap.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-util-getcallsites.js` | 10 | 8 | 1 | 0 | 0 | 1 | 0 | | `test-util-inspect-getters-accessing-this.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | -| `test-util-inspect.js` | 99 | 53 | 2 | 0 | 0 | 0 | 44 | -| `test-util-isDeepStrictEqual.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-util-inspect-proxy.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | +| `test-util-inspect.js` | 116 | 52 | 3 | 0 | 0 | 0 | 61 | +| `test-util-isPartialDeepStrictEqual.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-util-promisify.js` | 19 | 0 | 0 | 0 | 0 | 0 | 19 | -| `test-util-types.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | +| `test-util-text-decoder.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-util-types.js` | 28 | 0 | 0 | 0 | 0 | 0 | 28 | | `test-uv-unmapped-exception.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-v8-collect-gc-profile-exit-before-stop.js` | 2 | 0 | 0 | 0 | 2 | 0 | 0 | +| `test-v8-collect-gc-profile-using.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-v8-coverage.js` | 9 | 9 | 0 | 0 | 0 | 0 | 0 | +| `test-v8-cpu-profile.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-v8-heap-profile.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | | `test-v8-query-objects.js` | 5 | 0 | 0 | 0 | 5 | 0 | 0 | | `test-v8-serdes.js` | 14 | 0 | 0 | 0 | 14 | 0 | 0 | +| `test-v8-string-is-one-byte-representation.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-validators.js` | 7 | 0 | 0 | 0 | 0 | 0 | 7 | +| `test-vfs-copyfile-mode.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-create.js` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-vfs-ctime-update.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-vfs-destructuring.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-vfs-dir-handle.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vfs-fd.js` | 22 | 0 | 0 | 0 | 0 | 22 | 0 | +| `test-vfs-flag.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vfs-fs-callback-error-paths.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-vfs-fs-createReadStream.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-vfs-fs-createWriteStream.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-fs-matches-real-fs.js` | 11 | 0 | 0 | 0 | 0 | 11 | 0 | +| `test-vfs-fs-mkdir-callback.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vfs-fs-mkdtempSync.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-fs-open-callback.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-vfs-fs-openSync.js` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | +| `test-vfs-fs-opendir-callback.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-fs-readFile-callback.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-vfs-fs-readFileSync.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-vfs-fs-readdirSync.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-vfs-fs-rename-callback.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-fs-stat-callback.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-fs-statSync.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vfs-fs-writeFile-callback.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-fs-writeFileSync.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-vfs-import.mjs` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-vfs-invalid-package-json.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vfs-link.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-load.js` | 13 | 0 | 0 | 0 | 0 | 13 | 0 | +| `test-vfs-memory-provider-dynamic.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vfs-memory-provider.js` | 23 | 0 | 0 | 0 | 0 | 23 | 0 | +| `test-vfs-mkdir.js` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | +| `test-vfs-mkdtemp.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vfs-module-hooks-cleanup.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-vfs-module-hooks.mjs` | 29 | 0 | 0 | 0 | 0 | 29 | 0 | +| `test-vfs-module-paths.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-vfs-mount-errors.js` | 8 | 0 | 0 | 0 | 0 | 8 | 0 | +| `test-vfs-mount-point-url.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-vfs-mount.js` | 15 | 0 | 0 | 0 | 0 | 15 | 0 | +| `test-vfs-package-json.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-vfs-promises.js` | 11 | 0 | 0 | 0 | 0 | 11 | 0 | +| `test-vfs-readdir-symlink-recursive.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-vfs-readfile-flag.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-vfs-real-provider-watch.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-real-provider.js` | 11 | 0 | 0 | 0 | 0 | 11 | 0 | +| `test-vfs-rename.js` | 10 | 0 | 0 | 0 | 0 | 10 | 0 | +| `test-vfs-require.js` | 23 | 0 | 0 | 0 | 0 | 23 | 0 | +| `test-vfs-reserved-root.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-vfs-rm-edge-cases.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vfs-stats-bigint.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-stats-helpers.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-vfs-stream-errors.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-vfs-stream-properties.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-streams.js` | 16 | 0 | 0 | 0 | 0 | 16 | 0 | +| `test-vfs-symlinks.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-vfs-virtual-file-handle.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-virtual-provider.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-vfs-watchfile.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-vfs-write-options.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vfs-zip-provider-commit.js` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | | `test-vm-basic.js` | 10 | 8 | 2 | 0 | 0 | 0 | 0 | | `test-vm-codegen.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | | `test-vm-context-dont-contextify.js` | 8 | 0 | 8 | 0 | 0 | 0 | 0 | | `test-vm-measure-memory-lazy.js` | 4 | 0 | 0 | 0 | 4 | 0 | 0 | | `test-vm-module-basic.js` | 13 | 10 | 3 | 0 | 0 | 0 | 0 | +| `test-vm-module-evaluate-source-text-module.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-vm-module-evaluate-synthethic-module.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-vm-module-evaluate-while-evaluating.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vm-module-hasasyncgraph.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vm-module-hastoplevelawait.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vm-module-instantiate.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-vm-module-linkmodulerequests-circular.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-vm-module-linkmodulerequests.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-vm-module-modulerequests.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-vm-new-script-new-context.js` | 8 | 8 | 0 | 0 | 0 | 0 | 0 | -| `test-webcrypto-constructors.js` | 19 | 19 | 0 | 0 | 0 | 0 | 0 | -| `test-webcrypto-derivebits.js` | 4 | 0 | 2 | 0 | 0 | 0 | 2 | -| `test-webcrypto-derivekey.js` | 6 | 0 | 3 | 0 | 0 | 0 | 3 | +| `test-webapi-sharedarraybuffer-rejection.js` | 14 | 0 | 0 | 0 | 0 | 14 | 0 | +| `test-webcrypto-constructors.js` | 21 | 19 | 0 | 0 | 0 | 2 | 0 | +| `test-webcrypto-deduplicate-usages.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-webcrypto-derivebits.js` | 5 | 0 | 2 | 0 | 0 | 1 | 2 | +| `test-webcrypto-derivekey.js` | 6 | 3 | 3 | 0 | 0 | 0 | 0 | | `test-webcrypto-encrypt-decrypt-aes.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | -| `test-webcrypto-encrypt-decrypt.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | +| `test-webcrypto-encrypt-decrypt-chacha20-poly1305.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-webcrypto-encrypt-decrypt.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-webcrypto-export-import-ec.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | -| `test-webcrypto-export-import.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | -| `test-webcrypto-keygen.js` | 8 | 0 | 0 | 0 | 0 | 0 | 8 | +| `test-webcrypto-export-import.js` | 7 | 5 | 0 | 0 | 0 | 2 | 0 | +| `test-webcrypto-keygen.js` | 9 | 0 | 0 | 0 | 0 | 0 | 9 | +| `test-webcrypto-prototype-pollution.mjs` | 11 | 0 | 0 | 0 | 0 | 11 | 0 | | `test-webcrypto-random.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | -| `test-webcrypto-sign-verify.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | -| `test-webcrypto-webidl.js` | 28 | 0 | 0 | 0 | 0 | 0 | 28 | -| `test-webstorage.js` | 8 | 1 | 7 | 0 | 0 | 0 | 0 | +| `test-webcrypto-sign-verify.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | +| `test-webcrypto-util.js` | 5 | 0 | 0 | 0 | 0 | 0 | 5 | +| `test-webcrypto-webidl.js` | 31 | 0 | 0 | 0 | 0 | 0 | 31 | +| `test-webstorage.js` | 11 | 1 | 5 | 0 | 0 | 5 | 0 | | `test-webstreams-abort-controller.js` | 6 | 6 | 0 | 0 | 0 | 0 | 0 | +| `test-webstreams-adapters-sync-write-error.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-webstreams-adapters-writable-buffer-sources.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-webstreams-compose.js` | 20 | 20 | 0 | 0 | 0 | 0 | 0 | +| `test-webstreams-compression-buffer-source.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-webstreams-duplex-fromweb-writev-unhandled-rejection.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-webstreams-finished.js` | 20 | 20 | 0 | 0 | 0 | 0 | 0 | | `test-webstreams-pipeline.js` | 17 | 17 | 0 | 0 | 0 | 0 | 0 | +| `test-webstreams-pipeto-write-request.js` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | +| `test-webworker-postmessage-lifecycle.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-whatwg-encoding-custom-fatal-streaming.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-whatwg-encoding-custom-interop.js` | 4 | 0 | 0 | 0 | 0 | 0 | 4 | | `test-whatwg-encoding-custom-textdecoder.js` | 12 | 0 | 12 | 0 | 0 | 0 | 0 | +| `test-whatwg-encoding-singlebyte.mjs` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-whatwg-events-add-event-listener-options-passive.js` | 2 | 1 | 1 | 0 | 0 | 0 | 0 | | `test-whatwg-events-add-event-listener-options-signal.js` | 10 | 10 | 0 | 0 | 0 | 0 | 0 | | `test-whatwg-events-customevent.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-whatwg-headers.js` | 19 | 0 | 0 | 0 | 0 | 19 | 0 | | `test-whatwg-readablebytestream.js` | 11 | 0 | 0 | 0 | 0 | 0 | 11 | -| `test-whatwg-readablestream.js` | 82 | 0 | 0 | 0 | 0 | 0 | 82 | +| `test-whatwg-readablestream.js` | 83 | 0 | 0 | 0 | 0 | 0 | 83 | +| `test-whatwg-readablestream.mjs` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-whatwg-transformstream-parked-write-error.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | | `test-whatwg-transformstream.js` | 7 | 0 | 0 | 0 | 0 | 0 | 7 | | `test-whatwg-url-custom-searchparams-constructor.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-whatwg-url-custom-searchparams-delete.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-whatwg-url-custom-searchparams-stringifier.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-whatwg-url-custom-setters.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | +| `test-whatwg-url-parse-fast-path.js` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | | `test-whatwg-url-properties.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | +| `test-whatwg-url-searchparams-fast-path.js` | 14 | 0 | 0 | 0 | 0 | 14 | 0 | | `test-whatwg-webstreams-adapters-streambase.js` | 4 | 0 | 0 | 0 | 0 | 0 | 4 | -| `test-whatwg-webstreams-adapters-to-readablestream.js` | 8 | 0 | 0 | 0 | 0 | 0 | 8 | -| `test-whatwg-webstreams-adapters-to-readablewritablepair.js` | 12 | 0 | 0 | 0 | 0 | 0 | 12 | +| `test-whatwg-webstreams-adapters-to-readablestream.js` | 10 | 0 | 0 | 0 | 0 | 2 | 8 | +| `test-whatwg-webstreams-adapters-to-readablewritablepair.js` | 13 | 0 | 0 | 0 | 0 | 1 | 12 | | `test-whatwg-webstreams-adapters-to-streamduplex.js` | 9 | 0 | 0 | 0 | 0 | 0 | 9 | | `test-whatwg-webstreams-adapters-to-streamreadable.js` | 9 | 0 | 0 | 0 | 0 | 0 | 9 | | `test-whatwg-webstreams-adapters-to-streamwritable.js` | 9 | 0 | 0 | 0 | 0 | 0 | 9 | -| `test-whatwg-webstreams-adapters-to-writablestream.js` | 9 | 0 | 0 | 0 | 0 | 0 | 9 | +| `test-whatwg-webstreams-adapters-to-writablestream.js` | 12 | 0 | 0 | 0 | 0 | 3 | 9 | | `test-whatwg-webstreams-encoding.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-whatwg-webstreams-transfer.js` | 13 | 0 | 0 | 0 | 0 | 0 | 13 | -| `test-whatwg-writablestream.js` | 7 | 0 | 0 | 0 | 0 | 0 | 7 | +| `test-whatwg-writablestream.js` | 9 | 0 | 0 | 0 | 0 | 1 | 8 | | `test-worker-broadcastchannel-wpt.js` | 6 | 0 | 0 | 6 | 0 | 0 | 0 | | `test-worker-broadcastchannel.js` | 9 | 0 | 0 | 9 | 0 | 0 | 0 | | `test-worker-eval-typescript.js` | 7 | 0 | 0 | 7 | 0 | 0 | 0 | @@ -655,103 +1026,141 @@ Secondary full-public compatibility, including public tests that are currently e | `test-worker-message-port-wasm-threads.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-worker-message-port.js` | 9 | 5 | 4 | 0 | 0 | 0 | 0 | | `test-worker-message-transfer-port-mark-as-untransferable.js` | 4 | 4 | 0 | 0 | 0 | 0 | 0 | +| `test-worker-spec-differences.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | | `test-worker-unsupported-path.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | | `test-worker-workerdata-messageport.js` | 5 | 0 | 2 | 3 | 0 | 0 | 0 | | `test-wrap-js-stream-destroy.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | | `test-wrap-js-stream-duplex.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-x509-escaping.js` | 8 | 0 | 5 | 3 | 0 | 0 | 0 | +| `test-zlib-brotli-dictionary.js` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | +| `test-zlib-brotli-reset.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | | `test-zlib-brotli.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-zlib-create-raw.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-zlib-destroy.js` | 2 | 1 | 0 | 0 | 0 | 0 | 1 | | `test-zlib-dictionary-fail.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | | `test-zlib-failed-init.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-zlib-invalid-input.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | +| `test-zlib-reject-garbage-after-end.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-zlib-reset-incomplete-output.js` | 7 | 0 | 0 | 0 | 0 | 7 | 0 | +| `test-zlib-truncated.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | +| `test-zlib-type-error.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | | `test-zlib-zero-windowBits.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | +| `test-zlib-zip-coverage.js` | 65 | 0 | 0 | 0 | 0 | 65 | 0 | +| `test-zlib-zip-edgecases.js` | 10 | 0 | 0 | 0 | 0 | 10 | 0 | +| `test-zlib-zip-encoding.js` | 13 | 0 | 0 | 0 | 0 | 13 | 0 | +| `test-zlib-zip-experimental-warning.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-zlib-zip-file-lifecycle.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-zlib-zip-files.js` | 10 | 0 | 0 | 0 | 0 | 10 | 0 | +| `test-zlib-zip-hardening.js` | 30 | 0 | 0 | 0 | 0 | 30 | 0 | +| `test-zlib-zip-internals.js` | 4 | 0 | 0 | 0 | 0 | 4 | 0 | +| `test-zlib-zip-interop.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-zlib-zip-metadata.js` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | +| `test-zlib-zip-property.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-zlib-zip-security-hardening.js` | 6 | 0 | 0 | 0 | 0 | 6 | 0 | +| `test-zlib-zip-security.js` | 9 | 0 | 0 | 0 | 0 | 9 | 0 | +| `test-zlib-zip-sync.js` | 12 | 0 | 0 | 0 | 0 | 12 | 0 | +| `test-zlib-zip-vfs.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-zlib-zip-writable.js` | 13 | 0 | 0 | 0 | 0 | 13 | 0 | +| `test-zlib-zip-zip64.js` | 2 | 0 | 0 | 0 | 0 | 2 | 0 | +| `test-zlib-zip.js` | 11 | 0 | 0 | 0 | 0 | 11 | 0 | +| `test-zlib-zstd-reset-incomplete-frame.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | +| `test-zlib-zstd-reset.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-zlib-zstd.js` | 3 | 0 | 0 | 0 | 0 | 3 | 0 | +| `test-zlib.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | | `test-async-wrap-getasyncid.js` | 18 | 0 | 0 | 0 | 0 | 0 | 18 | +| `test-benchmark-node-bench-tools.js` | 16 | 0 | 0 | 0 | 0 | 16 | 0 | | `test-child-process-execsync.js` | 7 | 0 | 0 | 7 | 0 | 0 | 0 | | `test-cpu-prof-invalid-options.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | -| `test-crypto-timing-safe-equal.js` | 3 | 0 | 0 | 0 | 0 | 0 | 3 | +| `test-cpu-prof-name.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | +| `test-crypto-timing-safe-equal.js` | 2 | 2 | 0 | 0 | 0 | 0 | 0 | | `test-diagnostic-dir-cpu-prof.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | | `test-diagnostic-dir-heap-prof.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | | `test-error-serdes.js` | 2 | 0 | 0 | 0 | 0 | 0 | 2 | | `test-fs-opendir-recursive.js` | 7 | 0 | 7 | 0 | 0 | 0 | 0 | | `test-fs-readdir-recursive.js` | 6 | 0 | 6 | 0 | 0 | 0 | 0 | | `test-fs-watch.js` | 6 | 3 | 3 | 0 | 0 | 0 | 0 | -| `test-heapdump.js` | 4 | 0 | 0 | 0 | 4 | 0 | 0 | +| `test-heapdump.js` | 5 | 0 | 0 | 0 | 5 | 0 | 0 | | `test-init.js` | 3 | 3 | 0 | 0 | 0 | 0 | 0 | +| `test-inspector-network-resource.js` | 5 | 0 | 0 | 0 | 0 | 5 | 0 | | `test-net-server-address.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | | `test-net-server-bind.js` | 5 | 5 | 0 | 0 | 0 | 0 | 0 | | `test-perf-hooks.js` | 2 | 0 | 2 | 0 | 0 | 0 | 0 | -| `test-performance-eventloopdelay.js` | 3 | 0 | 3 | 0 | 0 | 0 | 0 | -| `test-single-executable-application-assets.js` | 3 | 0 | 0 | 3 | 0 | 0 | 0 | -| `test-single-executable-application-snapshot.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | +| `test-performance-eventloopdelay.js` | 6 | 0 | 3 | 0 | 0 | 3 | 0 | | `test-tls-connect.js` | 2 | 0 | 0 | 2 | 0 | 0 | 0 | ## Classified Non-Runnable Tests -### known gap (1191) +### known gap (1299) | Reason | Count | Example entries | |--------|-------|-----------------| | node:http2 public API is a stub in WebAssembly runtime | 106 | `parallel/test-http2-head-request.js`, `parallel/test-http2-info-headers.js`, `parallel/test-http2-invalidargtypes-errors.js`, ... (+103) | -| requires simulated process.execPath / Node CLI mode support deferred to follow-up PR | 29 | `es-module/test-esm-cjs-load-error-note.mjs`, `es-module/test-esm-detect-ambiguous.mjs`, `es-module/test-esm-experimental-warnings.mjs`, ... (+26) | +| requires isolated process.execPath TypeScript entry execution and Node CLI flags; the direct process.features check requires a separate feature-disabled component | 30 | `es-module/test-typescript.mjs#test_00_expect_process_features_typescript_to_be_false_when_no_exper`, `es-module/test-typescript.mjs#test_01_execute_a_typescript_file`, `es-module/test-typescript.mjs#test_02_execute_a_typescript_file_with_imports`, ... (+27) | +| requires simulated process.execPath / Node CLI mode support deferred to follow-up PR | 29 | `es-module/test-esm-cjs-load-error-note.mjs`, `es-module/test-esm-detect-ambiguous.mjs#test_00_module_syntax_detection`, `es-module/test-esm-detect-ambiguous.mjs#test_01_wrapping_a_require_of_an_es_module_while_using_abort_on_unca`, ... (+26) | +| Node 26.13.1 node:sqlite API additions or changed expectations are not implemented yet | 25 | `parallel/test-sqlite-custom-functions.js`, `parallel/test-sqlite-data-types.js`, `parallel/test-sqlite-database.js#test_00_database_constructor`, ... (+22) | +| requires isolated process.execPath --eval execution, TypeScript input-type flags, and child warning/output/exit capture | 24 | `es-module/test-typescript-eval.mjs#test_00_eval_typescript_esm_syntax`, `es-module/test-typescript-eval.mjs#test_01_eval_typescript_esm_syntax_with_input_type_module`, `es-module/test-typescript-eval.mjs#test_02_eval_typescript_commonjs_syntax`, ... (+21) | +| requires isolated process.execPath TypeScript entry execution and Node CLI default-module / require-module flag handling | 24 | `es-module/test-typescript-commonjs.mjs#test_00_require_a_ts_file_with_explicit_extension_succeeds`, `es-module/test-typescript-commonjs.mjs#test_01_eval_require_a_ts_file_with_implicit_extension_fails`, `es-module/test-typescript-commonjs.mjs#test_02_eval_require_a_cts_file_with_implicit_extension_fails`, ... (+21) | | stream edge case not yet handled | 22 | `parallel/test-stream-compose.js#block_17_block_17`, `parallel/test-stream-drop-take.js#block_01_don_t_wait_for_next_item_in_the_original_stream_when_already`, `parallel/test-stream-duplex-from.js#block_17_block_17`, ... (+19) | -| process.permission and --permission CLI semantics are incomplete in execPath emulation | 18 | `parallel/test-cli-permission-deny-fs.js#block_00_block_00`, `parallel/test-cli-permission-deny-fs.js#block_01_block_01`, `parallel/test-cli-permission-deny-fs.js#block_02_block_02`, ... (+15) | +| process.permission and --permission CLI semantics are incomplete in execPath emulation | 19 | `parallel/test-cli-permission-deny-fs.js#block_00_block_00`, `parallel/test-cli-permission-deny-fs.js#block_01_block_01`, `parallel/test-cli-permission-deny-fs.js#block_02_block_02`, ... (+16) | | wasi:sockets UDP implementation crashes in wasmtime | 14 | `parallel/test-dgram-connect-send-callback-buffer.js`, `parallel/test-dgram-connect-send-callback-multi-buffer.js`, `parallel/test-dgram-connect-send-default-host.js`, ... (+11) | | domain module depends on async_hooks, not fully working | 13 | `parallel/test-domain-promise.js#block_00_block_00`, `parallel/test-domain-promise.js#block_01_block_01`, `parallel/test-domain-promise.js#block_03_block_03`, ... (+10) | | the shared fixture creates rooted symlink targets that cannot be resolved inside a WASI preopen | 13 | `sequential/test-fs-opendir-recursive.js#block_00_block_00`, `sequential/test-fs-opendir-recursive.js#block_01_block_01`, `sequential/test-fs-opendir-recursive.js#block_02_block_02`, ... (+10) | -| inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible | 12 | `parallel/test-dns.js#block_00_verify_that_setservers_handles_arrays_with_holes_and_other_o`, `parallel/test-dns.js#block_01_block_01`, `parallel/test-dns.js#block_02_block_02`, ... (+9) | +| inherited: process.permission and --permission CLI semantics are incomplete in execPath emulation | 12 | `parallel/test-permission-allow-child-process-cli.js#block_00_guarantee_the_initial_state`, `parallel/test-permission-allow-child-process-cli.js#block_01_to_spawn_unless_allow_child_process_is_sent`, `parallel/test-permission-allow-wasi-cli.js#block_00_guarantee_the_initial_state`, ... (+9) | | node:readline module is not yet supported in WebAssembly environment | 12 | `parallel/test-readline-keys.js`, `parallel/test-readline-position.js`, `parallel/test-readline-reopen.js`, ... (+9) | -| inherited: process.permission and --permission CLI semantics are incomplete in execPath emulation | 11 | `parallel/test-permission-allow-child-process-cli.js#block_00_guarantee_the_initial_state`, `parallel/test-permission-allow-child-process-cli.js#block_01_to_spawn_unless_allow_child_process_is_sent`, `parallel/test-permission-allow-wasi-cli.js#block_00_guarantee_the_initial_state`, ... (+8) | +| inherited: dns.getServers()/setServers default-server behavior and validation are not Node-compatible | 11 | `parallel/test-dns.js#block_00_verify_that_setservers_handles_arrays_with_holes_and_other_o`, `parallel/test-dns.js#block_01_block_01`, `parallel/test-dns.js#block_02_block_02`, ... (+8) | | inherited: the shared fixture assumes common.hasIntl=false means fatal TextDecoder construction throws ERR_NO_ICU, but this runtime supports fatal decoding without claiming full Intl/ICU compatibility | 11 | `parallel/test-whatwg-encoding-custom-textdecoder.js#block_00_test_textdecoder_utf_8_fatal_false_ignorebom_false`, `parallel/test-whatwg-encoding-custom-textdecoder.js#block_01_test_textdecoder_utf_8_fatal_false_ignorebom_true`, `parallel/test-whatwg-encoding-custom-textdecoder.js#block_02_invalid_encoders`, ... (+8) | | remaining failures run through spawnSync(process.execPath, ...) and assert exact child-process status/stderr cycle diagnostics; direct node modules app same-process module graph coverage lives in tests/node_modules_apps | 11 | `es-module/test-require-module-cycle-esm-cjs-esm-esm.js#block_00_a_mjs_b_cjs_c_mjs_a_mjs`, `es-module/test-require-module-cycle-esm-cjs-esm-esm.js#block_01_b_cjs_c_mjs_a_mjs_b_cjs`, `es-module/test-require-module-cycle-esm-cjs-esm-esm.js#block_02_c_mjs_a_mjs_b_cjs_c_mjs`, ... (+8) | | rooted symlink targets cannot be resolved inside a WASI preopen; the adapter rejects them at creation, while persistent relative symlinks are covered by runtime tests | 11 | `es-module/test-esm-preserve-symlinks-main.js`, `es-module/test-esm-preserve-symlinks.js`, `es-module/test-esm-symlink-main.js`, ... (+8) | | wasi:sockets UDP implementation hangs in wasmtime | 11 | `parallel/test-dgram-implicit-bind.js`, `parallel/test-dgram-multicast-set-interface.js#block_00_block_00`, `parallel/test-dgram-multicast-set-interface.js#block_02_block_02`, ... (+8) | | dgram multicast membership APIs are not implemented (ENOSYS) | 10 | `parallel/test-dgram-membership.js#block_02_addmembership_with_no_argument_should_throw`, `parallel/test-dgram-membership.js#block_03_dropmembership_with_no_argument_should_throw`, `parallel/test-dgram-membership.js#block_04_addmembership_with_invalid_multicast_address_should_throw`, ... (+7) | +| zlib zstd compression APIs (zstdCompress, ZstdCompress) are not implemented | 10 | `parallel/test-zlib-convenience-methods.js`, `parallel/test-zlib-empty-buffer.js`, `parallel/test-zlib-random-byte-pipes.js`, ... (+7) | | async_hooks not fully implemented | 9 | `parallel/test-async-hooks-destroy-on-gc.js`, `parallel/test-async-hooks-disable-during-promise.js`, `parallel/test-async-hooks-disable-gc-tracking.js`, ... (+6) | | net.js TCP implementation incomplete - needs event handling and API fixes | 9 | `parallel/test-net-connect-nodelay.js`, `parallel/test-net-connect-paused-connection.js`, `parallel/test-net-during-close.js`, ... (+6) | | spawn() AbortSignal handling is incomplete (exit code/signal/error semantics differ from Node) | 9 | `parallel/test-child-process-spawn-controller.js#block_00_block_00`, `parallel/test-child-process-spawn-controller.js#block_01_block_01`, `parallel/test-child-process-spawn-controller.js#block_02_block_02`, ... (+6) | | spawnSync() returns ENOSYS for non-execPath commands; Node expects ENOENT after option validation | 9 | `parallel/test-child-process-spawnsync-validation-errors.js#block_00_block_00`, `parallel/test-child-process-spawnsync-validation-errors.js#block_01_block_01`, `parallel/test-child-process-spawnsync-validation-errors.js#block_02_block_02`, ... (+6) | | the split fixture creates rooted symlink targets before the isolated stat subtests; those targets cannot be resolved inside a WASI preopen | 9 | `parallel/test-fs-stat-bigint.js#block_00_block_00`, `parallel/test-fs-stat-bigint.js#block_01_block_01`, `parallel/test-fs-stat-bigint.js#block_02_block_02`, ... (+6) | +| util.format output formatting differences | 9 | `parallel/test-util-format.js#block_00_block_00`, `parallel/test-util-format.js#block_01_string_format_specifier_including_tostring_properties_on_the`, `parallel/test-util-format.js#block_02_symbol_toprimitive_handling_for_string_format_specifier`, ... (+6) | +| Node 26.13.1 crypto.diffieHellman() key-type and option validation is not met yet; open DH coverage obligation from the 22.14.0 baseline | 8 | `parallel/test-crypto-dh-stateless.js#block_00_block_00`, `parallel/test-crypto-dh-stateless.js#block_01_block_01`, `parallel/test-crypto-dh-stateless.js#block_02_block_02`, ... (+5) | +| Readable.prototype.drop.length is 2 instead of Node's 1; later iterator-helper assertions are not reached | 8 | `parallel/test-stream-iterator-helpers-test262-tests.mjs#block_00_that_happen_before_stream_conversion_were_not_ported`, `parallel/test-stream-iterator-helpers-test262-tests.mjs#block_01_block_01`, `parallel/test-stream-iterator-helpers-test262-tests.mjs#block_02_block_02`, ... (+5) | | vm.constants.DONT_CONTEXTIFY and vanilla-context behavior are not implemented | 8 | `parallel/test-vm-context-dont-contextify.js#block_00_block_00`, `parallel/test-vm-context-dont-contextify.js#block_01_block_01`, `parallel/test-vm-context-dont-contextify.js#block_02_block_02`, ... (+5) | -| WebAssembly module loading for .wasm files is not implemented; binary input is currently treated as JS source | 7 | `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_04_should_be_importable`, `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_05_should_be_importable_from_a_module_scope_under_node_modules`, `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_09_should_run_on_import`, ... (+4) | -| common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags | 7 | `parallel/test-webstorage.js#test_01_emits_a_warning_when_used`, `parallel/test-webstorage.js#test_02_storage_instances_cannot_be_created_in_userland`, `parallel/test-webstorage.js#test_03_sessionstorage_is_not_persisted`, ... (+4) | -| requires spawned process.execPath entry-point execution with --experimental-default-type=module | 7 | `es-module/test-esm-type-flag-loose-files.mjs#test_00_should_run_as_esm_a_js_file_that_is_outside_of_any_package_s`, `es-module/test-esm-type-flag-loose-files.mjs#test_01_should_run_as_esm_an_extensionless_javascript_file_that_is_o`, `es-module/test-esm-type-flag-package-scopes.mjs#test_00_should_run_as_esm_an_extensionless_javascript_file_within_a_`, ... (+4) | | WebAssembly global is missing in current runtime | 6 | `es-module/test-wasm-memory-out-of-bound.js`, `es-module/test-wasm-simple.js`, `es-module/test-wasm-web-api.js`, ... (+3) | +| all assertions are gated by common.hasIntl; URL-only IDNA formatting is covered by focused runtime tests while the broader Intl API remains unavailable | 6 | `parallel/test-url-format-whatwg.js#test_00_should_format`, `parallel/test-url-format-whatwg.js#test_01_handle_invalid_arguments`, `parallel/test-url-format-whatwg.js#test_02_any_falsy_value_other_than_undefined_will_be_treated_as_fals`, ... (+3) | | fork() AbortSignal handling is incomplete (exit code/signal/error semantics differ from Node) | 6 | `parallel/test-child-process-fork-abort-signal.js#block_00_block_00`, `parallel/test-child-process-fork-abort-signal.js#block_01_block_01`, `parallel/test-child-process-fork-abort-signal.js#block_02_block_02`, ... (+3) | | inherited: common.canCreateSymLink shim always returns false, so symlink permission tests are skipped | 6 | `parallel/test-permission-fs-symlink-target-write.js#block_00_block_00`, `parallel/test-permission-fs-symlink-target-write.js#block_01_block_01`, `parallel/test-permission-fs-symlink.js#block_00_block_00`, ... (+3) | | inherited: perf_hooks createHistogram/monitorEventLoopDelay are not implemented | 6 | `parallel/test-perf-hooks-histogram.js#block_00_block_00`, `parallel/test-perf-hooks-histogram.js#block_01_block_01`, `parallel/test-perf-hooks-histogram.js#block_02_block_02`, ... (+3) | -| inherited: performance.timerify function entries are not implemented | 6 | `parallel/test-performance-function.js#block_00_block_00`, `parallel/test-performance-function.js#block_01_block_01`, `parallel/test-performance-function.js#block_02_block_02`, ... (+3) | +| same-process import.meta.resolve behavior is covered by runtime tests; remaining vendored failure requires child_process execPath emulation for --input-type/--import ESM CLI modes | 6 | `es-module/test-esm-import-meta-resolve.mjs#block_00_block_00`, `es-module/test-esm-import-meta-resolve.mjs#block_01_block_01`, `es-module/test-esm-import-meta-resolve.mjs#block_02_block_02`, ... (+3) | | the test's meaningful body requires rooted symlink targets; common.canCreateSymLink skips it under the supported relative-only WASI boundary | 6 | `parallel/test-fs-options-immutable.js#block_00_block_00`, `parallel/test-fs-options-immutable.js#block_01_block_01`, `parallel/test-fs-options-immutable.js#block_02_block_02`, ... (+3) | -| IPv6 sockets are not available in this runtime (common.hasIPv6=false) | 5 | `parallel/test-dgram-ipv6only.js`, `parallel/test-dgram-udp6-link-local-address.js`, `parallel/test-dgram-udp6-send-default-host.js`, ... (+2) | -| all assertions are gated by common.hasIntl; URL-only IDNA formatting is covered by focused runtime tests while the broader Intl API remains unavailable | 5 | `parallel/test-url-format-whatwg.js#test_00_should_format`, `parallel/test-url-format-whatwg.js#test_01_handle_invalid_arguments`, `parallel/test-url-format-whatwg.js#test_02_any_falsy_value_other_than_undefined_will_be_treated_as_fals`, ... (+2) | +| common-shim spawnPromisified child emulation does not support --experimental-webstorage/--localstorage-file flags | 5 | `parallel/test-webstorage.js#test_00_storage_instances_cannot_be_created_in_userland`, `parallel/test-webstorage.js#test_02_sessionstorage_is_not_persisted`, `parallel/test-webstorage.js#test_05_localstorage_is_not_persisted_if_it_is_unused`, ... (+2) | | inherited: buffer.transcode and ICU transcoding are not implemented | 5 | `parallel/test-icu-transcode.js#block_00_block_00`, `parallel/test-icu-transcode.js#block_01_block_01`, `parallel/test-icu-transcode.js#block_02_test_that_uint8array_arguments_are_okay`, ... (+2) | | inherited: perf_hooks PerformanceResourceTiming/markResourceTiming behavior is incomplete | 5 | `parallel/test-perf-hooks-resourcetiming.js#block_00_performanceresourcetiming_should_not_be_initialized_external`, `parallel/test-perf-hooks-resourcetiming.js#block_01_using_performance_getentries`, `parallel/test-perf-hooks-resourcetiming.js#block_02_default_values`, ... (+2) | | node:readline createInterface/async iterator API is not implemented | 5 | `parallel/test-readline-async-iterators-backpressure.js`, `parallel/test-readline-async-iterators-destroy.js`, `parallel/test-readline-async-iterators.js`, ... (+2) | | node_compat common shim is missing ../common/wpt harness | 5 | `parallel/test-whatwg-events-event-constructors.js`, `parallel/test-whatwg-events-eventtarget-this-of-listener.js`, `parallel/test-whatwg-url-custom-searchparams-sort.js`, ... (+2) | | process.getActiveResourcesInfo() is not implemented | 5 | `parallel/test-process-getactiveresources-track-active-handles.js`, `parallel/test-process-getactiveresources-track-active-requests.js`, `parallel/test-process-getactiveresources-track-interval-lifetime.js`, ... (+2) | -| util.format output formatting differences | 5 | `parallel/test-util-format.js#block_00_block_00`, `parallel/test-util-format.js#block_01_string_format_specifier_including_tostring_properties_on_the`, `parallel/test-util-format.js#block_02_symbol_toprimitive_handling_for_string_format_specifier`, ... (+2) | +| requires simulated process.execPath / Node CLI module_timer and trace-event support | 5 | `parallel/test-module-print-timing.mjs#test_00_should_print_the_timing_information_for_cjs`, `parallel/test-module-print-timing.mjs#test_01_should_write_tracing_information_for_cjs`, `parallel/test-module-print-timing.mjs#test_02_should_write_tracing_print_logs_for_cjs`, ... (+2) | | util.getSystemErrorName is unavailable | 5 | `parallel/test-child-process-execfilesync-maxbuf.js#block_00_verify_that_an_error_is_returned_if_maxbuffer_is_surpassed`, `parallel/test-child-process-execfilesync-maxbuf.js#block_02_default_maxbuffer_size_is_1024_1024`, `parallel/test-child-process-spawnsync-maxbuf.js#block_00_verify_that_an_error_is_returned_if_maxbuffer_is_surpassed`, ... (+2) | +| IPv6 sockets are not available in this runtime (common.hasIPv6=false) | 4 | `parallel/test-dgram-ipv6only.js`, `parallel/test-dgram-udp6-link-local-address.js`, `parallel/test-dgram-udp6-send-default-host.js`, ... (+1) | | WASM child emulation does not support Node.js --test CLI output behavior | 4 | `parallel/test-runner-extraneous-async-activity.js#block_00_block_00`, `parallel/test-runner-extraneous-async-activity.js#block_01_block_01`, `parallel/test-runner-extraneous-async-activity.js#block_02_block_02`, ... (+1) | -| crypto.scrypt/scryptSync support is missing (test reports 'no scrypt support') | 4 | `parallel/test-crypto-scrypt.js#block_00_block_00`, `parallel/test-crypto-scrypt.js#block_01_block_01`, `parallel/test-crypto-scrypt.js#block_02_block_02`, ... (+1) | | inherited: --frozen-intrinsics flag semantics are not implemented | 4 | `parallel/test-freeze-intrinsics.js#block_00_ensure_we_can_extend_console`, `parallel/test-freeze-intrinsics.js#block_01_ensure_we_can_write_override_object_prototype_properties_on_`, `parallel/test-freeze-intrinsics.js#block_02_ensure_we_can_not_override_globalthis`, ... (+1) | | inherited: common-shim mustCall()/mustCallAtLeast() argument validation differs from Node's test harness | 4 | `parallel/test-common.js#block_00_test_for_leaked_global_detection`, `parallel/test-common.js#block_01_test_for_disabling_leaked_global_detection`, `parallel/test-common.js#block_02_test_tmpdir`, ... (+1) | | inherited: net.connect option validation/coercion for port and hints is not Node-compatible | 4 | `parallel/test-net-connect-options-port.js#block_00_test_wrong_type_of_ports`, `parallel/test-net-connect-options-port.js#block_01_test_out_of_range_ports`, `parallel/test-net-connect-options-port.js#block_02_test_invalid_hints`, ... (+1) | | process unhandledRejection/rejectionHandled/warning mode behavior is incomplete | 4 | `parallel/test-promise-unhandled-warn-no-hook.js`, `parallel/test-promise-unhandled-warn.js`, `parallel/test-promises-unhandled-symbol-rejections.js`, ... (+1) | | promisified exec()/execFile() contract is incomplete (promise.child is not a ChildProcess instance) | 4 | `parallel/test-child-process-promisified.js#block_00_block_00`, `parallel/test-child-process-promisified.js#block_01_block_01`, `parallel/test-child-process-promisified.js#block_02_block_02`, ... (+1) | | remaining failures run through spawnSync(process.execPath, ...) and assert exact child-process status/stdout/stderr diagnostics; one TLA/dynamic-import sequencing case can still hit a QuickJS linker assert through process.execPath emulation, but direct same-process node modules app coverage passes | 4 | `es-module/test-require-module-cycle-esm-esm-cjs-esm.js#block_00_a_mjs_b_mjs_c_mjs_d_mjs_c_mjs`, `es-module/test-require-module-cycle-esm-esm-cjs-esm.js#block_01_b_mjs_c_mjs_d_mjs_c_mjs`, `es-module/test-require-module-cycle-esm-esm-cjs-esm.js#block_02_c_mjs_d_mjs_c_mjs`, ... (+1) | -| requires spawned process.execPath entry-point execution plus WebAssembly module loading support | 4 | `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_03_should_run_as_the_entry_point`, `es-module/test-esm-type-flag-loose-files.mjs#test_02_should_run_as_wasm_an_extensionless_wasm_file_that_is_outsid`, `es-module/test-esm-type-flag-package-scopes.mjs#test_03_should_run_as_wasm_an_extensionless_wasm_file_within_a_type_`, ... (+1) | | timeout enforcement with microtaskMode='afterEvaluate' is incomplete | 4 | `parallel/test-vm-timeout-escape-promise-2.js`, `parallel/test-vm-timeout-escape-promise-module.js`, `parallel/test-vm-timeout-escape-promise.js`, ... (+1) | | unhandled-rejection mode and uncaughtException bridging semantics are incomplete | 4 | `parallel/test-promise-unhandled-default.js`, `parallel/test-promise-unhandled-error.js`, `parallel/test-promise-unhandled-throw-handler.js`, ... (+1) | | wasi:http client does not surface 103 Early Hints as 'information' events | 4 | `parallel/test-http-early-hints.js#block_00_block_00`, `parallel/test-http-early-hints.js#block_01_block_01`, `parallel/test-http-early-hints.js#block_03_block_03`, ... (+1) | | DOMException options bag ({ name, cause }) is not implemented | 3 | `parallel/test-domexception-cause.js#block_01_block_01`, `parallel/test-domexception-cause.js#block_02_block_02`, `parallel/test-domexception-cause.js#block_03_block_03` | -| WASM child emulation does not support Node.js --test TAP filtering behavior | 3 | `parallel/test-runner-no-isolation-filtering.js#test_00_works_with_test_only`, `parallel/test-runner-no-isolation-filtering.js#test_01_works_with_test_name_pattern`, `parallel/test-runner-no-isolation-filtering.js#test_02_works_with_test_skip_pattern` | +| WASM child emulation does not support Node.js --test TAP filtering behavior | 3 | `parallel/test-runner-no-isolation-filtering.js#test_00_works_with_test_only`, `parallel/test-runner-no-isolation-filtering.js#test_02_works_with_test_name_pattern`, `parallel/test-runner-no-isolation-filtering.js#test_04_works_with_test_skip_pattern` | | WASM child emulation does not support Node.js --test reporter destination flushing | 3 | `parallel/test-runner-force-exit-flush.js#test_00_junit_reporter`, `parallel/test-runner-force-exit-flush.js#test_01_spec_reporter`, `parallel/test-runner-force-exit-flush.js#test_02_tap_reporter` | +| WebAssembly module loading for .wasm files is not implemented; binary input is currently treated as JS source | 3 | `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_04_should_be_importable`, `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_05_should_be_importable_from_a_module_scope_under_node_modules`, `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_09_should_run_on_import` | | child_process spawn() stdio stream compatibility (e.g. pipe) is incomplete in execPath emulation | 3 | `parallel/test-cwd-enoent-preload.js`, `parallel/test-cwd-enoent.js`, `parallel/test-preload.js` | | child_process.spawn pipe mode does not provide functional child.stdin | 3 | `parallel/test-stdin-pipe-large.js`, `parallel/test-stdin-pipe-resume.js`, `parallel/test-stdin-script-child-option.js` | | common/gc async_hooks-based GC tracking is not implemented in the WASM test shim | 3 | `sequential/test-gc-http-client-onerror.js`, `sequential/test-gc-http-client-timeout.js`, `sequential/test-gc-http-client.js` | | crypto.X509Certificate API is not implemented | 3 | `parallel/test-x509-escaping.js#block_01_test_escaping_rules_for_subject_alternative_names`, `parallel/test-x509-escaping.js#block_02_test_escaping_rules_for_authority_info_access`, `parallel/test-x509-escaping.js#block_03_test_escaping_rules_for_the_subject_field` | +| crypto.scrypt/scryptSync support is missing (test reports 'no scrypt support') | 3 | `parallel/test-crypto-scrypt.js#block_00_block_00`, `parallel/test-crypto-scrypt.js#block_01_block_01`, `parallel/test-crypto-scrypt.js#block_02_0_which_differs_by_openssl_build` | | dgram send() callback overload path has JS/native argument conversion bugs | 3 | `parallel/test-dgram-send-callback-buffer-length-empty-address.js`, `parallel/test-dgram-send-callback-buffer-length.js`, `parallel/test-dgram-send-callback-buffer.js` | | dgram socket buffer size APIs may hang | 3 | `parallel/test-dgram-socket-buffer-size.js#block_02_block_02`, `parallel/test-dgram-socket-buffer-size.js#block_04_block_04`, `parallel/test-dgram-socket-buffer-size.js#block_05_block_05` | +| dns.getServers()/setServers default-server behavior and validation are not Node-compatible | 3 | `parallel/test-dns.js#block_03_block_03`, `parallel/test-dns.js#block_12_block_12`, `parallel/test-dns.js#block_13_block_13` | | global MessageEvent constructor/validation/inheritance semantics are not Node-compatible | 3 | `parallel/test-worker-message-event.js#block_00_block_00`, `parallel/test-worker-message-event.js#block_01_block_01`, `parallel/test-worker-message-event.js#block_02_block_02` | | inherited: common.canCreateSymLink shim always returns false, so traversal+symlink permission tests are skipped | 3 | `parallel/test-permission-fs-traversal-path.js#block_00_block_00`, `parallel/test-permission-fs-traversal-path.js#block_01_block_01`, `parallel/test-permission-fs-traversal-path.js#block_02_block_02` | | inherited: dgram AbortSignal validation and close semantics are incomplete | 3 | `parallel/test-dgram-close-signal.js#block_00_block_00`, `parallel/test-dgram-close-signal.js#block_01_block_01`, `parallel/test-dgram-close-signal.js#block_02_block_02` | @@ -780,6 +1189,7 @@ Secondary full-public compatibility, including public tests that are currently e | async_hooks executionAsyncResource propagation is incomplete under node:http server/client callbacks | 2 | `parallel/test-async-hooks-execution-async-resource-await.js`, `parallel/test-async-hooks-execution-async-resource.js` | | both vendored subtests are gated by common.hasIntl; supported legacy URL parsing is covered by focused runtime tests | 2 | `parallel/test-url-parse-format.js#test_00_should_parse_and_format`, `parallel/test-url-parse-format.js#test_01_parse_result_should_equal_new_url_url` | | child_process execPath emulation does not fully match spawnSync({ encoding }) behavior for --check stdin runs | 2 | `parallel/test-cli-syntax-piped-bad.js`, `parallel/test-cli-syntax-piped-good.js` | +| child_process execPath emulation does not honor --allow-addons/node-addons resolution | 2 | `parallel/test-permission-allow-addons-cli.js#block_00_to_require_native_addons_unless_allow_addons_is_sent`, `parallel/test-permission-allow-addons-cli.js#block_01_block_01` | | child_process execPath emulation does not implement --trace-require-module warning output | 2 | `es-module/test-require-module-warning.js`, `es-module/test-require-node-modules-warning.js` | | child_process.spawn emulation does not support --interactive REPL sessions | 2 | `parallel/test-repl-array-prototype-tempering.js`, `sequential/test-repl-timeout-throw.js` | | common/gc.onGC is non-observing; this collection assertion cannot be validated by the current harness | 2 | `parallel/test-gc-http-client-connaborted.js`, `parallel/test-gc-net-timeout.js` | @@ -788,7 +1198,6 @@ Secondary full-public compatibility, including public tests that are currently e | dgram socket buffer size APIs do not match Node error semantics | 2 | `parallel/test-dgram-socket-buffer-size.js#block_00_block_00`, `parallel/test-dgram-socket-buffer-size.js#block_01_block_01` | | dns.resolveAny/Resolver.resolveAny protocol handling is not implemented | 2 | `parallel/test-dns-resolveany-bad-ancount.js`, `parallel/test-dns-resolveany.js` | | domain/setUncaughtExceptionCaptureCallback interaction is incomplete | 2 | `parallel/test-domain-load-after-set-uncaught-exception-capture.js`, `parallel/test-domain-set-uncaught-exception-capture-after-load.js` | -| execPath child emulation does not yet support trace-events CLI arg parsing used by -e runs | 2 | `parallel/test-trace-events-fs-async.js`, `parallel/test-trace-events-fs-sync.js` | | fork() timeout/killSignal behavior is not Node-compatible in WASM emulation | 2 | `parallel/test-child-process-fork-timeout-kill-signal.js#block_00_block_00`, `parallel/test-child-process-fork-timeout-kill-signal.js#block_01_block_01` | | fork()/spawn() IPC send() boolean/backpressure semantics are not implemented | 2 | `parallel/test-child-process-send-returns-boolean.js#block_00_block_00`, `parallel/test-child-process-send-returns-boolean.js#block_01_block_01` | | gated by common.hasIntl, which cannot be enabled until broader Intl/ICU and IDNA behavior is compatible | 2 | `parallel/test-whatwg-encoding-custom-textdecoder-fatal.js`, `parallel/test-whatwg-encoding-custom-textdecoder-utf16-surrogates.js` | @@ -805,27 +1214,24 @@ Secondary full-public compatibility, including public tests that are currently e | perf_hooks resource timing buffer/full-event behavior is incomplete | 2 | `parallel/test-performance-resourcetimingbufferfull.js`, `parallel/test-performance-resourcetimingbuffersize.js` | | process API incomplete | 2 | `parallel/test-process-beforeexit-throw-exit.js`, `parallel/test-process-beforeexit.js` | | process.allowedNodeEnvironmentFlags behavior is incomplete | 2 | `parallel/test-process-env-allowed-flags.js#block_00_assert_legit_flags_are_allowed_and_bogus_flags_are_disallowe`, `parallel/test-process-env-allowed-flags.js#block_02_assert_immutability_of_process_allowednodeenvironmentflags` | -| process.permission worker-thread restrictions are incomplete | 2 | `parallel/test-permission-dc-worker-threads.js`, `parallel/test-permission-worker-threads-cli.js` | | process.report.writeReport and permission-model integration are missing | 2 | `parallel/test-permission-fs-write-report.js#block_00_block_00`, `parallel/test-permission-fs-write-report.js#block_01_block_01` | | promisified exec()/execFile() rejection errors miss stdout/stderr fields | 2 | `parallel/test-child-process-promisified.js#block_04_block_04`, `parallel/test-child-process-promisified.js#block_05_block_05` | -| requires child process loader/eval flags | 2 | `parallel/test-find-package-json.js#test_08_should_work_within_a_loader`, `parallel/test-find-package-json.js#test_09_should_work_with_async_resolve_hook_registered` | -| requires isolated process.execPath TypeScript entry execution and Node CLI default-module / require-module flag handling | 2 | `es-module/test-typescript-commonjs.mjs`, `es-module/test-typescript-module.mjs` | +| requires child process loader/eval flags | 2 | `parallel/test-find-package-json.js#test_08_should_work_within_a_loader`, `parallel/test-find-package-json.js#test_09_should_work_with_an_async_resolve_hook_registered` | | requires spawned process.execPath entry-point execution for extensionless ESM files | 2 | `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_00_should_run_as_the_entry_point`, `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_06_should_run_as_the_entry_point` | | spawn() timeout/killSignal behavior is not Node-compatible in WASM emulation | 2 | `parallel/test-child-process-spawn-timeout-kill-signal.js#block_00_block_00`, `parallel/test-child-process-spawn-timeout-kill-signal.js#block_01_block_01` | | strict assignment to non-writable vm global throws QuickJS read-only wording instead of Node's message | 2 | `parallel/test-vm-global-non-writable-properties.js`, `parallel/test-vm-strict-assign.js` | | tls.connect() stub throws instead of constructing a TLSSocket for allowHalfOpen option checks | 2 | `parallel/test-tls-connect-allow-half-open-option.js#block_00_block_00`, `parallel/test-tls-connect-allow-half-open-option.js#block_01_block_01` | | uncaughtExceptionMonitor event behavior in child_process flows is incomplete | 2 | `parallel/test-process-uncaught-exception-monitor.js#block_00_block_00`, `parallel/test-process-uncaught-exception-monitor.js#block_01_block_01` | +| util.MIMEType/util.MIMEParams are not implemented | 2 | `parallel/test-mime-api.js#block_00_refs_https_mimesniff_spec_whatwg_org_parameter_names_are_asc`, `parallel/test-mime-api.js#block_01_block_01` | | vm timeout interrupt is surfaced as a wasm trap instead of ERR_SCRIPT_EXECUTION_TIMEOUT | 2 | `parallel/test-vm-timeout.js`, `sequential/test-vm-timeout-rethrow.js` | | wasi:http client cannot expose an early response before the request body is finished, so this bidirectional streaming fixture deadlocks | 2 | `parallel/test-http-dump-req-when-res-ends.js`, `parallel/test-http-no-read-no-dump.js` | | wasi:http client does not surface interim 100 Continue responses or the continue event | 2 | `parallel/test-http-expect-continue.js`, `parallel/test-http-write-callbacks.js` | | wasi:http client path does not surface HPE_UNEXPECTED_CONTENT_LENGTH parse errors | 2 | `parallel/test-http-response-multi-content-length.js#block_00_test_adding_an_extra_content_length_header_using_setheader`, `parallel/test-http-response-multi-content-length.js#block_01_test_adding_an_extra_content_length_header_using_writehead` | -| wasi:http request body is not finalized/sent until end(), so write()-only request flow diverges from Node | 2 | `parallel/test-http-outgoing-destroyed.js#block_00_block_00`, `parallel/test-http-outgoing-destroyed.js#block_01_block_01` | +| zlib invalid compressed input error event/callback behavior differs from Node | 2 | `parallel/test-zlib-invalid-input.js#block_00_block_00`, `parallel/test-zlib-invalid-input.js#block_01_block_01` | | --disable-proto=delete semantics differ in QuickJS (__proto__ yields null) | 1 | `parallel/test-disable-proto-delete.js` | | --disable-proto=throw flag semantics are not implemented | 1 | `parallel/test-disable-proto-throw.js` | | --disallow-code-generation-from-strings flag semantics are not implemented | 1 | `parallel/test-eval-disallow-code-generation-from-strings.js` | | --input-type=module eval emulation is incomplete for cwd-relative static/dynamic imports | 1 | `parallel/test-cli-eval.js#block_04_block_04` | -| --no-experimental-global-customevent flag is not honored | 1 | `parallel/test-global-customevent-disabled.js` | -| --no-experimental-global-webcrypto flag is not honored | 1 | `parallel/test-global-webcrypto-disbled.js` | | --no-experimental-websocket flag is not honored | 1 | `parallel/test-websocket-disabled.js` | | --trace-env diagnostics are not implemented in execPath emulation | 1 | `parallel/test-trace-env.js` | | --trace-env-{js,native}-stack diagnostics are not implemented in execPath emulation | 1 | `parallel/test-trace-env-stack.js` | @@ -846,7 +1252,7 @@ Secondary full-public compatibility, including public tests that are currently e | AsyncLocalStorage deep nesting/recursion handling is unstable | 1 | `parallel/test-async-local-storage-deep-stack.js` | | AsyncLocalStorage.bind argument validation is incomplete | 1 | `parallel/test-async-local-storage-bind.js` | | AsyncLocalStorage.snapshot is missing or incomplete | 1 | `parallel/test-async-local-storage-snapshot.js` | -| Blob byte-stream BYOB final read does not settle at end of stream | 1 | `parallel/test-blob.js#block_29_statement_29` | +| Blob byte-stream BYOB final read does not settle at end of stream | 1 | `parallel/test-blob.js#block_30_statement_30` | | CLI --security-revert behavior in child_process spawnSync is not fully implemented | 1 | `parallel/test-security-revert-unknown.js` | | CLI --title flag does not update process.title | 1 | `parallel/test-process-title-cli.js` | | CLI --unhandled-rejections flag parsing/validation is incomplete | 1 | `parallel/test-promise-unhandled-flag.js` | @@ -911,10 +1317,13 @@ Secondary full-public compatibility, including public tests that are currently e | MessagePort util.inspect output/shape is not Node-compatible | 1 | `parallel/test-worker-message-port-inspect-during-init-hook.js` | | NODE_OPTIONS behavior via --env-file is incomplete in execPath child emulation | 1 | `parallel/test-dotenv-node-options.js` | | NODE_V8_COVERAGE warning behavior in child_process execPath emulation is incomplete | 1 | `parallel/test-coverage-with-inspector-disabled.js` | +| Node 26.13.1 gap: HTTP response aborted/error callbacks after serverRes.destroy() time out | 1 | `parallel/test-stream-finished.js#block_35_block_35` | | OKP (Ed/X) key import/export compatibility is incomplete | 1 | `parallel/test-webcrypto-export-import-cfrg.js` | | OutgoingMessage implicit Content-Length/Transfer-Encoding and Connection header behavior is not Node-compatible | 1 | `parallel/test-http-content-length.js` | | OutgoingMessage.getHeaders() shape is not Node-compatible (null-prototype object expected) | 1 | `parallel/test-http-mutable-headers.js` | | Overridden globalAgent socket bookkeeping (agent.sockets/close lifecycle) is not Node-compatible | 1 | `parallel/test-http-client-override-global-agent.js` | +| QuickJS exposes no eval/Function source text, so assert.ok there reports 'false == true' (the 22.14.0 expectation) instead of the Node 26.13.1 source line | 1 | `parallel/test-assert.js#test_14_additional_asserts` | +| QuickJS makes Error.stackTraceLimit a read-only data property after Object.defineProperty(Error, "stackTraceLimit", { value: 0 }), unlike V8 | 1 | `parallel/test-util-inspect.js#block_25_block_25` | | QuickJS property redefinition errors use engine-specific wording; Node-compatible normalization without replacing public intrinsics is tracked by GOL-361 | 1 | `es-module/test-esm-live-binding.mjs` | | RSA imported-key algorithm metadata compatibility is incomplete | 1 | `parallel/test-webcrypto-encrypt-decrypt-rsa.js` | | RSA key import/export metadata compatibility is incomplete | 1 | `parallel/test-webcrypto-export-import-rsa.js` | @@ -924,8 +1333,6 @@ Secondary full-public compatibility, including public tests that are currently e | Readable unpipe()+resume() transform/end event flow is not fully Node-compatible | 1 | `parallel/test-stream-readable-unpipe-resume.js` | | Readable.from() iterator close/return() semantics are incomplete | 1 | `parallel/test-readable-from-iterator-closing.js` | | Readable.map()/reduce() lazy evaluation callback ordering differs from Node | 1 | `parallel/test-stream-reduce.js#block_02_block_02` | -| Readable.prototype.drop.length is 2 instead of Node's 1; later iterator-helper assertions are not reached | 1 | `parallel/test-stream-iterator-helpers-test262-tests.mjs` | -| Readable.toWeb() with crypto randomBytes pressure can trap in web_crypto random_bytes | 1 | `parallel/test-stream-readable-to-web.js` | | ReadableStream BYOB controller respond()/Buffer interaction is not fully WHATWG-compatible | 1 | `parallel/test-whatwg-readablebytestreambyob.js` | | Real MessagePort transfer is unsupported; genuine ports reject cloning instead of producing prototype shells | 1 | `parallel/test-worker-message-port.js#block_07_block_07` | | Request abort vs normal completion event ordering (aborted/error/end) is not Node-compatible | 1 | `parallel/test-http-client-spurious-aborted.js` | @@ -947,13 +1354,11 @@ Secondary full-public compatibility, including public tests that are currently e | Timeout listener bookkeeping on keep-alive sockets is not Node-compatible | 1 | `parallel/test-http-client-timeout-option-listeners.js` | | URL inspect output uses the URL string instead of Node's structured URL representation | 1 | `parallel/test-whatwg-url-custom-inspect.js` | | Usable stream transfer is not implemented; prototype-only stream clones are not supported | 1 | `parallel/test-webstreams-clone-unref.js` | -| Usable stream transfer is not implemented; prototype-only stream shells are not supported | 1 | `parallel/test-structuredClone-global.js#block_10_transferables_or_its_subclasses_should_be_received_with_its_` | +| Usable stream transfer is not implemented; prototype-only stream shells are not supported | 1 | `parallel/test-structuredClone-global.js#block_17_transferables_or_its_subclasses_should_be_received_with_its_` | | WASI UDP ping-pong over loopback does not reliably deliver datagrams in the local runtime despite Node-compatible hostname resolution | 1 | `sequential/test-dgram-pingpong.js` | -| WASM child emulation does not support --experimental-test-module-mocks CLI flag | 1 | `parallel/test-runner-module-mocking.js#test_11_node_modules_can_be_used_by_both_module_systems` | -| WASM child emulation does not support --experimental-test-module-mocks/--experimental-default-type flags | 1 | `parallel/test-runner-module-mocking.js#test_16_wrong_import_syntax_should_throw_error_after_module_mocking` | +| WASM child emulation does not support --experimental-test-module-mocks CLI flag | 1 | `parallel/test-runner-module-mocking.js#test_12_node_modules_can_be_used_by_both_module_systems` | +| WASM child emulation does not support --experimental-test-module-mocks/--experimental-default-type flags | 1 | `parallel/test-runner-module-mocking.js#test_22_wrong_import_syntax_should_throw_error_after_module_mocking` | | WASM child emulation does not support --no-experimental-sqlite CLI flag | 1 | `parallel/test-sqlite.js#test_00_accessing_the_node_sqlite_module` | -| WASM child emulation does not support --permission/--allow-worker/--experimental-test-module-mocks flags | 1 | `parallel/test-runner-module-mocking.js#test_18_should_work_when_allow_worker_is_passed_and_permission_model` | -| WASM child emulation does not support --permission/--experimental-test-module-mocks flags | 1 | `parallel/test-runner-module-mocking.js#test_17_should_throw_err_access_denied_when_permission_model_is_enab` | | WASM child emulation does not support --test CLI flag | 1 | `parallel/test-runner-concurrency.js#test_03_test_multiple_files` | | WASM child emulation does not support --test-reporter in spawnPromisified | 1 | `parallel/test-runner-root-duration.js` | | WASM child emulation does not support Node.js --test CLI behavior | 1 | `parallel/test-runner-exit-code.js` | @@ -963,7 +1368,7 @@ Secondary full-public compatibility, including public tests that are currently e | WebCrypto AES-GCM short-ciphertext OperationError message does not match Node | 1 | `parallel/test-crypto-webcrypto-aes-decrypt-tag-too-small.js` | | WebCrypto ECDH P-521 deriveBits is not implemented | 1 | `parallel/test-webcrypto-derivebits.js#block_00_test_ecdh_bit_derivation` | | WebCrypto ECDH P-521 deriveKey/deriveBits is not implemented | 1 | `parallel/test-webcrypto-derivekey.js#block_00_test_ecdh_key_derivation` | -| WebCrypto X25519/X448 deriveBits is not implemented | 1 | `parallel/test-webcrypto-derivebits.js#block_03_test_x25519_and_x448_bit_derivation` | +| WebCrypto X25519/X448 deriveBits is not implemented | 1 | `parallel/test-webcrypto-derivebits.js#block_04_test_x25519_and_x448_bit_derivation` | | WebCrypto X25519/X448 deriveKey/deriveBits is not implemented | 1 | `parallel/test-webcrypto-derivekey.js#block_05_test_x25519_and_x448_key_derivation` | | WebCrypto wrapKey()/unwrapKey usage validation and algorithm handling are incomplete | 1 | `parallel/test-webcrypto-wrap-unwrap.js` | | Worker URL-scheme validation does not throw expected ERR_INVALID_URL_SCHEME | 1 | `parallel/test-worker-unsupported-path.js#block_02_block_02` | @@ -999,9 +1404,8 @@ Secondary full-public compatibility, including public tests that are currently e | captureRejections propagation from outgoing-message drain to socket/request errors is not Node-compatible | 1 | `parallel/test-http-outgoing-message-capture-rejection.js#block_00_block_00` | | child_process -p/process.title behavior is incomplete in WASM child emulation | 1 | `sequential/test-process-title.js` | | child_process exec/spawn emulation does not fully match --help process behavior | 1 | `parallel/test-cli-node-print-help.js` | -| child_process execPath emulation does not honor --allow-addons/node-addons resolution | 1 | `parallel/test-permission-allow-addons-cli.js` | | child_process execPath emulation does not implement --completion-bash output | 1 | `parallel/test-bash-completion.js` | -| child_process execPath emulation does not implement --experimental-print-required-tla diagnostics output | 1 | `es-module/test-require-module-tla.js#block_01_block_01` | +| child_process execPath emulation does not implement --experimental-print-required-tla diagnostics output | 1 | `es-module/test-require-module-tla-print-execution.js` | | child_process execPath emulation does not yet match Node CLI argument validation/exit codes | 1 | `parallel/test-cli-bad-options.js` | | child_process execPath emulation does not yet support this ESM/CJS fixture runner path; direct CJS named export interop is covered by test-require-module.js | 1 | `es-module/test-esm-cjs-exports.js` | | child_process execPath emulation does not yet support this ESM/CJS fixture runner path; same-process CJS import/require interop is covered by module-interop runtime tests | 1 | `es-module/test-esm-cjs-main.js` | @@ -1033,6 +1437,7 @@ Secondary full-public compatibility, including public tests that are currently e | console.* does not publish diagnostics_channel events yet | 1 | `parallel/test-console-diagnostics-channels.js` | | contextCodeGeneration/codeGeneration options do not block string eval with the expected EvalError | 1 | `parallel/test-vm-codegen.js#block_01_block_01` | | contextified global proxy identity/property fallback semantics are incomplete | 1 | `parallel/test-vm-property-not-on-sandbox.js` | +| createDiffieHellman() verifyError prime checks are not implemented; open DH coverage obligation from the 22.14.0 baseline | 1 | `parallel/test-crypto-dh-curves.js` | | decoding empty-passphrase encrypted PEM traps in the WASM crypto backend | 1 | `parallel/test-crypto-keygen-empty-passphrase-no-prompt.js` | | deep async recursion intended to exercise V8 stack recovery can trap the QuickJS/WASM runtime before JavaScript can catch and log the RangeError | 1 | `parallel/test-ttywrap-stack.js` | | default clientError path does not send/close with Node-compatible 400 Bad Request behavior | 1 | `parallel/test-http-server-destroy-socket-on-client-error.js` | @@ -1072,12 +1477,12 @@ Secondary full-public compatibility, including public tests that are currently e | exceptions thrown in client response callbacks do not follow Node uncaughtException flow | 1 | `parallel/test-http-uncaught-from-request-callback.js` | | execFile() signal option type validation is incomplete (missing ERR_INVALID_ARG_TYPE) | 1 | `parallel/test-child-process-execfile.js#block_05_block_05` | | execFile/execFileSync emulation does not execute non-execPath commands like echo | 1 | `parallel/test-child-process-execfile.js#block_07_verify_the_execfile_stdout_is_the_same_as_execfilesync` | -| execPath child emulation does not support --trace-atomics-wait CLI behavior | 1 | `parallel/test-trace-atomic-deprecation.js` | +| execPath child emulation does not yet support trace-events CLI arg parsing used by -e runs | 1 | `parallel/test-trace-events-fs-async.js` | | execPath child-process emulation runs recursive async stack-overflow tests in-process, which can trap the WASM runtime instead of isolating the child stack | 1 | `parallel/test-async-wrap-pop-id-during-load.js` | | execSync is ENOSYS-stubbed in WASM child_process emulation | 1 | `parallel/test-child-process-execsync-maxbuf.js#block_01_verify_that_a_maxbuffer_size_of_infinity_works` | | execSync is ENOSYS-stubbed; default maxBuffer behavior is unimplemented | 1 | `parallel/test-child-process-execsync-maxbuf.js#block_02_default_maxbuffer_size_is_1024_1024` | | execSync is ENOSYS-stubbed; maxBuffer overflow ENOBUFS behavior is unimplemented | 1 | `parallel/test-child-process-execsync-maxbuf.js#block_00_verify_that_an_error_is_returned_if_maxbuffer_is_surpassed` | -| fetch does not resolve registered blob:nodedata URLs; requests currently require wasi:http transport | 1 | `parallel/test-blob.js#block_27_statement_27` | +| fetch does not resolve registered blob:nodedata URLs; requests currently require wasi:http transport | 1 | `parallel/test-blob.js#block_28_statement_28` | | fork() IPC child.send/process.send emulation is not implemented | 1 | `parallel/test-cli-eval.js#block_03_regression_test_for_https_github_com_nodejs_node_issues_1194` | | fork() abort-listener lifecycle for timeout+signal is incomplete | 1 | `parallel/test-child-process-fork-timeout-kill-signal.js#block_03_block_03` | | fork() args/options parsing and ERR_INVALID_ARG_TYPE behavior are incomplete | 1 | `parallel/test-child-process-fork-args.js#block_01_correctly_if_args_is_undefined_or_null` | @@ -1121,7 +1526,6 @@ Secondary full-public compatibility, including public tests that are currently e | isolated P2/P3 runs take about 91-97 seconds; although a per-entry timeout is configurable, enabling this case would add excessive CI wall time, and transport profiling attributes most of the delay outside the socket path | 1 | `sequential/test-pipe.js` | | keep-alive free-socket lifecycle (free event + req.destroyed transitions) is not Node-compatible | 1 | `parallel/test-http-keepalive-free.js` | | keep-alive socket timeout/reuse race handling is not Node-compatible | 1 | `parallel/test-http-keep-alive-timeout-race-condition.js` | -| loader hooks in this vendored file are exercised through spawned process.execPath CLI loader flags/eval, deferred to simulated Node CLI mode support | 1 | `es-module/test-esm-loader-hooks.mjs` | | local JavaScript children do not provide IPC stdio or process.send | 1 | `parallel/test-child-process-stdout-ipc.js` | | local JavaScript children do not provide an IPC stdio channel | 1 | `parallel/test-child-process-stdin-ipc.js` | | local Node children do not apply the argv0 option | 1 | `parallel/test-child-process-spawn-argv0.js` | @@ -1140,12 +1544,12 @@ Secondary full-public compatibility, including public tests that are currently e | node-compat runner treats a no-listener rejection as failure even with --unhandled-rejections=none | 1 | `parallel/test-promise-unhandled-silent-no-hook.js` | | node:http abort/destroy response lifecycle (aborted/error/close ordering) is incomplete | 1 | `parallel/test-http-abort-client.js` | | node:http client path does not honor/verify net.Socket connect noDelay semantics like Node | 1 | `parallel/test-http-nodelay.js` | +| node:http client requests always use wasi:http, so a createConnection socket's write failures are not observed | 1 | `parallel/test-http-outgoing-writableFinished.js#block_01_finish_the_end_callback_receives_the_write_error_instead` | | node:http client socketPath flow used by this domain test is incomplete (request/response never completes) | 1 | `parallel/test-http-client-response-domain.js` | | node:http client socketPath transport flow is incomplete (unix-socket request hangs) | 1 | `parallel/test-http-client-pipe-end.js` | | node:https Agent constructor compatibility is incomplete (call without new) | 1 | `parallel/test-https-agent-constructor.js` | | node:https Agent#getName TLS option keying is incomplete | 1 | `parallel/test-https-agent-getname.js` | -| node:sqlite applyChangeset conflict-resolution behavior is incomplete | 1 | `parallel/test-sqlite-session.js#test_05_conflict_resolution` | -| node:sqlite rejects mixed named+positional parameters where Node accepts them | 1 | `parallel/test-sqlite-statement-sync.js#test_06_statementsync_prototype_expandedsql` | +| node:sqlite applyChangeset conflict-resolution behavior is incomplete | 1 | `parallel/test-sqlite-session.js#test_06_conflict_resolution` | | node:test mock timers Date behavior is incomplete | 1 | `parallel/test-runner-mock-timers-date.js` | | node:test mock timers scheduler.wait behavior is incomplete | 1 | `parallel/test-runner-mock-timers-scheduler.js` | | node:test standalone runner output/cancellation summary differs in WASM child emulation | 1 | `parallel/test-runner-misc.js` | @@ -1159,6 +1563,7 @@ Secondary full-public compatibility, including public tests that are currently e | passive listener semantics are incomplete (test currently self-skips) | 1 | `parallel/test-whatwg-events-add-event-listener-options-passive.js#block_01_block_01` | | per-context Symbol/global binding behavior is incomplete in vm contexts | 1 | `parallel/test-vm-harmony-symbols.js` | | perf_hooks HTTP PerformanceEntry emission/detail fields are incomplete | 1 | `parallel/test-http-perf_hooks.js` | +| perf_hooks createHistogram/monitorEventLoopDelay are not implemented | 1 | `parallel/test-perf-hooks-histogram.js#block_06_block_06` | | perf_hooks nodeTiming milestones/duration semantics are incomplete | 1 | `parallel/test-performance-nodetiming.js` | | perf_hooks nodeTiming.uvMetricsInfo is missing | 1 | `parallel/test-performance-nodetiming-uvmetricsinfo.js` | | perf_hooks performance.toJSON() does not expose nodeTiming yet | 1 | `parallel/test-tojson-perf_hooks.js` | @@ -1166,16 +1571,15 @@ Secondary full-public compatibility, including public tests that are currently e | permission mode does not yet honor --allow-addons/node-addons export-condition semantics | 1 | `parallel/test-permission-no-addons.js` | | permission security-warning emission for --allow-* flags is incomplete | 1 | `parallel/test-permission-warning-flags.js` | | posting a port to its target and channel-loss warning semantics are incomplete | 1 | `parallel/test-worker-message-port-transfer-target.js` | -| process 'multipleResolves' event semantics are not implemented | 1 | `parallel/test-promise-swallowed-event.js` | | process prototype chain is not fully Node-compatible (prototype is not EventEmitter-based) | 1 | `parallel/test-process-prototype.js` | | process uncaughtException handling inside http client callbacks is incomplete | 1 | `parallel/test-http-catch-uncaughtexception.js` | -| process.assert() is not implemented | 1 | `parallel/test-process-assert.js` | | process.config ICU path and process.versions.tz metadata are not available | 1 | `parallel/test-tz-version.js` | | process.config reports ICU disabled and full Node Intl metadata and fidelity are not implemented | 1 | `parallel/test-intl.js` | | process.env defaults are incomplete (PATH is missing in VM context) | 1 | `parallel/test-vm-access-process-env.js` | | process.exitCode validation and coercion semantics are incomplete | 1 | `parallel/test-process-exit-code-validation.js` | | process.loadEnvFile() behavior is incomplete | 1 | `parallel/test-process-load-env-file.js` | | process.on('uncaughtException') handling during top-level module errors is incomplete | 1 | `parallel/test-exception-handler2.js` | +| process.permission worker-thread restrictions are incomplete | 1 | `parallel/test-permission-worker-threads-cli.js` | | process.ppid is stubbed and not wired to parent process IDs | 1 | `parallel/test-process-ppid.js` | | process.ref()/process.unref() are not implemented | 1 | `parallel/test-process-ref-unref.js` | | process.resourceUsage() is not implemented | 1 | `parallel/test-resource-usage.js` | @@ -1193,22 +1597,21 @@ Secondary full-public compatibility, including public tests that are currently e | request header population/normalization (for example Accept) is incomplete | 1 | `parallel/test-http.js` | | requires ERR_INVALID_ARG_TYPE validation on resolve methods (not yet implemented) | 1 | `parallel/test-dns-resolvens-typeerror.js` | | requires HTTP server functionality, we only support clients | 1 | `parallel/test-diagnostic-channel-http-response-created.js` | -| requires V8 hidden-class constructor-name recovery after the prototype constructor is detached | 1 | `parallel/test-util-inspect.js#block_73_manipulate_the_prototype_in_weird_ways` | +| requires V8 hidden-class constructor-name recovery after the prototype constructor is detached | 1 | `parallel/test-util-inspect.js#block_76_manipulate_the_prototype_in_weird_ways` | | requires actual TCP socket reuse with remotePort identity tracking via server; wasi:http creates new connections per request | 1 | `parallel/test-http-agent-scheduling.js` | | requires child_process execFileSync with copied process.execPath and Node global module path layout | 1 | `parallel/test-module-loading-globalpaths.js` | +| requires child_process.exec of a shell command line, which WASM child emulation does not support | 1 | `parallel/test-domain-with-abort-on-uncaught-exception.js` | +| requires child_process.exec('id -G'), which WASM child emulation does not support | 1 | `parallel/test-process-getgroups.js` | | requires fd option for listen | 1 | `parallel/test-net-listen-fd0.js` | -| requires isolated process.execPath --eval execution, TypeScript input-type flags, and child warning/output/exit capture | 1 | `es-module/test-typescript-eval.mjs` | -| requires isolated process.execPath --experimental-transform-types execution and CLI source-map configuration | 1 | `es-module/test-typescript-transform.mjs` | -| requires isolated process.execPath TypeScript entry execution and Node CLI flags; the direct process.features check requires a separate feature-disabled component | 1 | `es-module/test-typescript.mjs` | | requires net.createServer with pauseOnConnect and socket.localPort; wasi:http does not expose socket-level properties | 1 | `parallel/test-http-agent-reuse-drained-socket-only.js` | | requires onread option with buffer/callback | 1 | `parallel/test-net-onread-static-buffer.js` | | requires raw TCP response with obsolete HTTP line-folded headers; wasi:http rejects them | 1 | `parallel/test-http-multi-line-headers.js` | | requires remote server close detection on idle keep-alive sockets and socket hang up errors; wasi:http creates independent connections per request with no shared socket lifecycle | 1 | `parallel/test-http-agent-keepalive.js` | | requires simulated Node CLI flag handling for --no-experimental-require-module/--experimental-detect-module | 1 | `es-module/test-disable-require-module-with-detection.js` | -| requires simulated process.execPath / Node CLI mode support for child-process JSON module warning assertions | 1 | `es-module/test-esm-json.mjs#test_01_should_not_print_an_experimental_warning` | -| requires simulated process.execPath / Node CLI module_timer and trace-event support | 1 | `parallel/test-module-print-timing.mjs` | -| requires spawned process.execPath --check execution with --experimental-default-type=module | 1 | `es-module/test-esm-type-flag-loose-files.mjs#test_06_should_check_as_esm_input_passed_via_check` | +| requires simulated process.execPath / Node CLI mode support for child-process JSON module warning assertions | 1 | `es-module/test-esm-json.mjs#test_02_should_not_print_an_experimental_warning` | +| requires spawned process.execPath entry-point execution plus WebAssembly module loading support | 1 | `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_03_should_run_as_the_entry_point` | | requires spawned process.execPath entry-point execution to verify extensionless .wasm classification outside module scope | 1 | `es-module/test-esm-extensionless-esm-and-wasm.mjs#test_08_should_error_as_the_entry_point` | +| requires spawning the npm CLI, which WASM child emulation does not support | 1 | `parallel/test-npm-install.js` | | response writable state around aborted proxy close is not Node-compatible | 1 | `parallel/test-http-writable-true-after-close.js` | | response write + socket-error path does not preserve the expected truncated raw HTTP ending | 1 | `parallel/test-http-header-badrequest.js` | | runInContext sloppy-mode var/delete semantics still require contextified global script bindings | 1 | `parallel/test-vm-not-strict.js` | @@ -1216,13 +1619,8 @@ Secondary full-public compatibility, including public tests that are currently e | same-component node:http client->server calls via wasi:http can deadlock in this scenario | 1 | `parallel/test-http-write-head-after-set-header.js` | | same-process ESM invalid package config diagnostics are covered by module-resolution runtime tests; vendored fixture asserts stderr/status through spawned process.execPath ESM entry-point emulation | 1 | `es-module/test-esm-invalid-pjson.js` | | same-process dynamic import cache behavior is covered by runner_dynamic_import_cache_survives_removed_file; full Node test also requires spawned process.execPath --input-type=module support | 1 | `es-module/test-esm-dynamic-import-mutating-fs.mjs` | -| same-process import.meta.resolve behavior is covered by runtime tests; remaining vendored failure requires child_process execPath emulation for --input-type/--import ESM CLI modes | 1 | `es-module/test-esm-import-meta-resolve.mjs` | | sendBlockList connect path can crash in WASI UDP implementation | 1 | `parallel/test-dgram-blocklist.js#block_00_block_00` | | sendBlockList send() callback path is not Node-compatible and can hang | 1 | `parallel/test-dgram-blocklist.js#block_01_block_01` | -| sequential path is stale in vendored suite; equivalent Upgrade timeout-disabling semantics are not Node-compatible | 1 | `sequential/test-http-server-request-timeout-upgrade.js` | -| sequential path is stale in vendored suite; equivalent maxSockets queueing/release behavior is not Node-compatible | 1 | `sequential/test-http-max-sockets.js` | -| sequential path is stale in vendored suite; equivalent server.requestTimeout keep-alive handling is not Node-compatible | 1 | `sequential/test-http-server-request-timeout-keepalive.js` | -| sequential path is stale in vendored suite; equivalent server.requestTimeout pipelining handling is not Node-compatible | 1 | `sequential/test-http-server-request-timeout-pipelining.js` | | server listen/close race with async DNS lookup is not Node-compatible | 1 | `parallel/test-net-server-close-before-calling-lookup-callback.js` | | server option insecureHTTPParser:true is ignored for incoming invalid headers | 1 | `parallel/test-http-insecure-parser-per-stream.js#block_02_test_3_the_client_sends_an_invalid_header` | | server option maxHeaderSize is ignored for incoming oversized headers | 1 | `parallel/test-http-max-header-size-per-stream.js#block_02_test_3_the_client_sends_larger_headers_than_what_would_other` | @@ -1249,7 +1647,6 @@ Secondary full-public compatibility, including public tests that are currently e | setDefaultHeaders:false still injects/default-normalizes headers (Host/Content-Length/casing/duplicates) | 1 | `parallel/test-http-dont-set-default-headers-with-set-header.js` | | setImmediate queue turn semantics are unstable and can trap in the timeout scheduler | 1 | `parallel/test-timers-immediate-queue.js` | | setInterval scheduling incorrectly includes callback execution time | 1 | `sequential/test-timers-set-interval-excludes-callback-duration.js` | -| simulated child_process TypeScript CLI execution does not publish its transform map to util.getCallSites | 1 | `parallel/test-util-getcallsites.js#block_10_block_10` | | snapshot update/read flow via node:test is incomplete in WASM child emulation | 1 | `parallel/test-runner-snapshot-file-tests.js#test_01_t_assert_filesnapshot_update_read_flow` | | spawn() stdio handling is incomplete: non-requested stderr stream is still created | 1 | `sequential/test-child-process-exit.js` | | spawn() timeout validation path hangs in WASM child emulation | 1 | `parallel/test-child-process-spawn-timeout-kill-signal.js#block_02_block_02` | @@ -1276,20 +1673,18 @@ Secondary full-public compatibility, including public tests that are currently e | tls.createSecureContext() stub throws before Node-style clientCertEngine argument validation | 1 | `parallel/test-tls-clientcertengine-invalid-arg-type.js` | | trace_events dynamic file output for node.async_hooks is incomplete | 1 | `parallel/test-trace-events-async-hooks-dynamic.js` | | trace_events node.console category output is incomplete | 1 | `parallel/test-trace-events-console.js` | -| trace_events node.environment category output is incomplete | 1 | `parallel/test-trace-events-environment.js` | | tracingChannel({}) argument-validation behavior differs from Node.js (message/throw shape mismatch) | 1 | `parallel/test-diagnostics-channel-tracing-channel-args-types.js` | | tty stdin stream/event-emitter compatibility is incomplete | 1 | `parallel/test-tty-stdin-end.js` | | uncaught exception handling in HTTP request callbacks does not recover/terminate like Node and hangs | 1 | `parallel/test-http-exceptions.js` | | uncaughtException rethrow exit-code semantics are incomplete | 1 | `parallel/test-unhandled-exception-rethrow-error.js` | -| uses V8 native %GetUndetectable() syntax which QuickJS cannot evaluate | 1 | `parallel/test-util-inspect.js#block_83_https_github_com_nodejs_node_issues_31889` | -| uses child_process spawn path (spawnPromisified) | 1 | `parallel/test-find-package-json.js#test_07_should_resolve_root_and_closest_package_json` | +| uses V8 native %GetUndetectable() syntax which QuickJS cannot evaluate | 1 | `parallel/test-util-inspect.js#block_93_https_github_com_nodejs_node_issues_31889` | +| uses child_process spawn path (spawnPromisified) | 1 | `parallel/test-find-package-json.js#test_07_should_be_able_to_resolve_both_root_and_closest_package_json` | | util.MIMEType parsing API is not implemented | 1 | `parallel/test-mime-whatwg.js` | -| util.MIMEType/util.MIMEParams are not implemented | 1 | `parallel/test-mime-api.js` | | util.debuglog formatting/callback behavior is not fully Node-compatible | 1 | `sequential/test-util-debug.js` | +| util.getCallSites() accepts a fractional frameCount; Node 26.13.1 requires an integer and throws ERR_OUT_OF_RANGE | 1 | `parallel/test-util-getcallsites.js#block_02_framecount_must_be_an_integer` | | util.getSystemErrorName is not implemented | 1 | `parallel/test-child-process-execfile.js#block_01_block_01` | | v8.setFlagsFromString argument validation error fidelity is incomplete | 1 | `parallel/test-v8-flag-type-check.js` | | valid EC key vectors fail to import | 1 | `parallel/test-webcrypto-export-import-ec.js#block_00_block_00` | -| verify() returns non-Node error code/message for unsupported key types | 1 | `parallel/test-crypto-sign-verify.js#block_18_block_18` | | vm context global object identity/proxy semantics differ from Node | 1 | `parallel/test-vm-global-identity.js` | | vm context prototype chain and own-property lookup semantics are incomplete | 1 | `parallel/test-vm-global-property-prototype.js` | | vm contexts do not provide the expected per-context Proxy behavior | 1 | `parallel/test-vm-proxies.js` | @@ -1309,6 +1704,7 @@ Secondary full-public compatibility, including public tests that are currently e | wasi:http client does not surface llhttp parse errors/rawPacket for malformed raw TCP responses | 1 | `parallel/test-http-client-error-rawbytes.js` | | wasi:http client does not surface llhttp parser errors for malformed raw TCP responses | 1 | `parallel/test-http-client-parse-error.js` | | wasi:http client does not translate an incomplete response after server request destruction into the expected ECONNRESET request error | 1 | `parallel/test-http-server-incomingmessage-destroy.js` | +| wasi:http request body is not finalized/sent until end(), so write()-only request flow diverges from Node | 1 | `parallel/test-http-outgoing-destroyed.js#block_02_block_02` | | wasi:http response header filtering strips headers like Host/Proxy-Authorization, so duplicate-header expectations diverge | 1 | `parallel/test-http-response-multiheaders.js` | | wasi:http strips forbidden hop-by-hop headers like Connection, so automatic response headers differ | 1 | `parallel/test-http-automatic-headers.js` | | wasi:http strips hop-by-hop response headers, so 'Keep-Alive' is not visible to node:http clients | 1 | `parallel/test-http-keep-alive-timeout-custom.js` | @@ -1321,30 +1717,27 @@ Secondary full-public compatibility, including public tests that are currently e | write-after-remote-close error propagation (ECONNRESET/EPIPE) and cleanup are incomplete | 1 | `parallel/test-http-destroyed-socket-write2.js` | | zlib decompressor handling of trailing garbage/premature end differs from Node | 1 | `parallel/test-zlib-premature-end.js` | | zlib flush() interaction with writable needDrain/backpressure differs from Node | 1 | `parallel/test-zlib-flush-drain-longblock.js` | -| zlib invalid compressed input error event/callback behavior differs from Node | 1 | `parallel/test-zlib-invalid-input.js` | -| zlib stream bytesWritten/bytesRead accounting and end/data callbacks differ from Node | 1 | `parallel/test-zlib-bytes-read.js` | -### WASI-impossible (1192) +### WASI-impossible (1148) | Reason | Count | Example entries | |--------|-------|-----------------| -| tls/https is not supported in WebAssembly environment | 182 | `parallel/test-https-agent-create-connection.js#block_00_use_option_connect`, `parallel/test-https-agent-create-connection.js#block_01_use_port_and_option_connect`, `parallel/test-https-agent-create-connection.js#block_02_use_port_and_host_and_option_connect`, ... (+179) | +| tls/https is not supported in WebAssembly environment | 175 | `parallel/test-https-agent-create-connection.js#block_00_use_option_connect`, `parallel/test-https-agent-create-connection.js#block_01_use_port_and_option_connect`, `parallel/test-https-agent-create-connection.js#block_02_use_port_and_host_and_option_connect`, ... (+172) | | inspector/debugger is not available in WASM | 104 | `parallel/test-debugger-backtrace.js`, `parallel/test-debugger-break.js`, `parallel/test-debugger-breakpoint-exists.js`, ... (+101) | -| cluster requires process forking, not available in WASM | 96 | `parallel/test-cluster-advanced-serialization.js`, `parallel/test-cluster-basic.js`, `parallel/test-cluster-bind-privileged-port.js`, ... (+93) | +| cluster requires process forking, not available in WASM | 95 | `parallel/test-cluster-advanced-serialization.js`, `parallel/test-cluster-basic.js`, `parallel/test-cluster-bind-privileged-port.js`, ... (+92) | | [manual] http2/https not implemented | 89 | `parallel/test-http2-allow-http1.js`, `parallel/test-http2-altsvc.js`, `parallel/test-http2-async-local-storage.js`, ... (+86) | | requires worker_threads which is not available in WASM | 68 | `parallel/test-async-hooks-worker-asyncfn-terminate-1.js`, `parallel/test-async-hooks-worker-asyncfn-terminate-2.js`, `parallel/test-async-hooks-worker-asyncfn-terminate-3.js`, ... (+65) | | node:http2 is a stub in WebAssembly runtime | 59 | `parallel/test-http2-compat-serverresponse-end.js#block_00_block_00`, `parallel/test-http2-compat-serverresponse-end.js#block_01_block_01`, `parallel/test-http2-compat-serverresponse-end.js#block_02_block_02`, ... (+56) | -| requires child_process which is not available in WASM | 49 | `parallel/test-child-process-advanced-serialization-largebuffer.js`, `parallel/test-child-process-advanced-serialization-splitted-length-field.js`, `parallel/test-child-process-advanced-serialization.js`, ... (+46) | +| requires child_process which is not available in WASM | 48 | `parallel/test-child-process-advanced-serialization-largebuffer.js`, `parallel/test-child-process-advanced-serialization-splitted-length-field.js`, `parallel/test-child-process-advanced-serialization.js`, ... (+45) | | worker_threads is not supported in WASM | 47 | `parallel/test-worker-broadcastchannel-wpt.js#block_00_block_00`, `parallel/test-worker-broadcastchannel-wpt.js#block_01_block_01`, `parallel/test-worker-broadcastchannel-wpt.js#block_02_block_02`, ... (+44) | -| REPL requires interactive terminal, not available in WASM | 44 | `parallel/test-repl-clear-immediate-crash.js`, `parallel/test-repl-cli-eval.js`, `parallel/test-repl-colors.js`, ... (+41) | +| REPL requires interactive terminal, not available in WASM | 39 | `parallel/test-repl-clear-immediate-crash.js`, `parallel/test-repl-cli-eval.js`, `parallel/test-repl-colors.js`, ... (+36) | | requires https.createServer/TLS server behavior, unsupported by WASI transport | 32 | `parallel/test-https-byteswritten.js`, `parallel/test-https-client-checkServerIdentity.js`, `parallel/test-https-client-get-url.js`, ... (+29) | -| Node.js SEA packaging, not available in WASM | 28 | `parallel/test-single-executable-blob-config-errors.js#block_00_block_00`, `parallel/test-single-executable-blob-config-errors.js#block_01_block_01`, `parallel/test-single-executable-blob-config-errors.js#block_02_block_02`, ... (+25) | -| repl is not supported in WASM | 21 | `parallel/test-repl-autolibs.js`, `parallel/test-repl-domain.js`, `parallel/test-repl-editor.js`, ... (+18) | +| repl is not supported in WASM | 22 | `parallel/test-repl-autolibs.js`, `parallel/test-repl-domain.js`, `parallel/test-repl-editor.js`, ... (+19) | | inherited: requires child_process which is not available in WASM | 20 | `parallel/test-child-process-constructor.js#block_00_block_00`, `parallel/test-child-process-constructor.js#block_01_block_01`, `parallel/test-child-process-constructor.js#block_02_block_02`, ... (+17) | -| tls is not supported in WebAssembly environment | 16 | `parallel/test-double-tls-client.js`, `parallel/test-double-tls-server.js`, `parallel/test-gc-tls-external-memory.js`, ... (+13) | | http2 is not supported in WebAssembly environment | 15 | `parallel/test-h2-large-header-cause-client-to-hangup.js`, `parallel/test-h2leak-destroy-session-on-socket-ended.js`, `parallel/test-http2-alpn.js#block_00_block_00`, ... (+12) | | requires TLS-enabled HTTP/2 server (createSecureServer), unsupported in WASI runtime | 15 | `parallel/test-http2-https-fallback-http-server-options.js`, `parallel/test-http2-https-fallback.js#block_00_http_2_http_1_1_server`, `parallel/test-http2-https-fallback.js#block_01_http_2_only_server`, ... (+12) | -| V8 profiling, not available in WASM | 12 | `sequential/test-cpu-prof-default.js`, `sequential/test-cpu-prof-dir-absolute.js`, `sequential/test-cpu-prof-dir-and-name.js`, ... (+9) | +| tls is not supported in WebAssembly environment | 15 | `parallel/test-double-tls-client.js`, `parallel/test-double-tls-server.js`, `parallel/test-gc-tls-external-memory.js`, ... (+12) | +| V8 profiling, not available in WASM | 13 | `sequential/test-cpu-prof-default.js`, `sequential/test-cpu-prof-dir-absolute.js`, `sequential/test-cpu-prof-dir-and-name.js`, ... (+10) | | requires spawning a real Node.js CLI process with `--test` | 11 | `parallel/test-runner-cli.js#block_00_block_00`, `parallel/test-runner-cli.js#block_01_block_01`, `parallel/test-runner-cli.js#block_02_block_02`, ... (+8) | | inspector/heap profiler is not available in WASM | 10 | `parallel/test-heap-prof-basic.js`, `parallel/test-heap-prof-dir-absolute.js`, `parallel/test-heap-prof-dir-name.js`, ... (+7) | | requires --abort-on-uncaught-exception child-process abort behavior | 10 | `parallel/test-domain-no-error-handler-abort-on-uncaught-0.js`, `parallel/test-domain-no-error-handler-abort-on-uncaught-1.js`, `parallel/test-domain-no-error-handler-abort-on-uncaught-2.js`, ... (+7) | @@ -1359,6 +1752,7 @@ Secondary full-public compatibility, including public tests that are currently e | wasi:http does not support HTTP Upgrade/101 socket takeover for node:http clients | 5 | `parallel/test-http-upgrade-advertise.js`, `parallel/test-http-upgrade-agent.js`, `parallel/test-http-upgrade-binary.js`, ... (+2) | | inherited: Windows UNC path behavior is not applicable to the WASI runtime | 4 | `parallel/test-permission-fs-windows-path.js#block_00_block_00`, `parallel/test-permission-fs-windows-path.js#block_01_block_01`, `parallel/test-permission-fs-windows-path.js#block_02_block_02`, ... (+1) | | inherited: requires worker_threads.BroadcastChannel, unavailable without threads in WASM | 4 | `parallel/test-broadcastchannel-custom-inspect.js#block_00_block_00`, `parallel/test-broadcastchannel-custom-inspect.js#block_01_block_01`, `parallel/test-broadcastchannel-custom-inspect.js#block_02_block_02`, ... (+1) | +| requires >32-bit buffer index range behavior unavailable in wasm32 | 4 | `parallel/test-buffer-tostring-range.js#block_00_test_hex_base64_base64url_partial_range_encoding_exercises_v`, `parallel/test-buffer-tostring-range.js#block_01_block_01`, `parallel/test-buffer-tostring-range.js#block_02_block_02`, ... (+1) | | requires http.request({ createConnection }) to parse a response from an arbitrary Duplex; node:http outbound requests always use wasi:http | 4 | `parallel/test-http-insecure-parser-per-stream.js#block_00_test_1_the_server_sends_an_invalid_header`, `parallel/test-http-insecure-parser-per-stream.js#block_01_test_2_the_same_as_test_1_except_without_the_option_to_make_`, `parallel/test-http-max-header-size-per-stream.js#block_00_test_1_the_server_sends_larger_headers_than_what_would_other`, ... (+1) | | requires https.request({ createConnection }) with an arbitrary Duplex transport; outbound requests always use wasi:http | 4 | `parallel/test-https-insecure-parse-per-stream.js#block_00_test_1_the_server_sends_an_invalid_header`, `parallel/test-https-insecure-parse-per-stream.js#block_01_test_2_the_same_as_test_1_except_without_the_option_to_make_`, `parallel/test-https-max-header-size-per-stream.js#block_00_test_1_the_server_sends_larger_headers_than_what_would_other`, ... (+1) | | Requires real Worker execution; constructing an inert Worker is not supported | 3 | `parallel/test-trace-events-api-worker-disabled.js`, `parallel/test-trace-events-worker-metadata-with-name.js`, `parallel/test-trace-events-worker-metadata.js` | @@ -1413,7 +1807,6 @@ Secondary full-public compatibility, including public tests that are currently e | depends on real worker_threads exit semantics which require a separate JS context (not available in single-threaded WASM) | 1 | `parallel/test-worker-cleanexit-with-moduleload.js` | | depends on real worker_threads exit-event behavior across a separate JS context, which is not available in single-threaded WASM | 1 | `parallel/test-worker-on-process-exit.js` | | depends on real worker_threads terminate() interrupting an in-flight DNS query, which is not available in single-threaded WASM | 1 | `parallel/test-worker-dns-terminate-during-query.js` | -| depends on worker_threads-based event loop utilization behavior | 1 | `parallel/test-performance-eventlooputil.js` | | host signal delivery and SIGINT interruption semantics are not available in WASI | 1 | `parallel/test-sigint-infinite-loop.js` | | http2 is not implemented | 1 | `parallel/test-http2-compat-client-upload-reject.js` | | https.createServer (TLS server) is not supported in WebAssembly environment | 1 | `sequential/test-https-connect-localport.js` | @@ -1424,10 +1817,8 @@ Secondary full-public compatibility, including public tests that are currently e | process.kill signal delivery is not supported in WASI | 1 | `parallel/test-signal-args.js` | | process.kill signal handling is not supported in WASI | 1 | `parallel/test-signal-handler.js` | | requires >32-bit address space/large allocations unavailable in wasm32 | 1 | `parallel/test-fs-write-buffer-large.js` | -| requires >32-bit buffer index range behavior unavailable in wasm32 | 1 | `parallel/test-buffer-tostring-range.js` | | requires Agent.createConnection to create and configure a raw client socket; node:http outbound requests always use wasi:http | 1 | `parallel/test-http-agent-keepalive-delay.js` | | requires Agent.createConnection to create and expose a raw client socket; node:http outbound requests always use wasi:http | 1 | `parallel/test-http-agent-abort-controller.js` | -| requires Atomics.wait tracing across worker threads | 1 | `parallel/test-trace-atomics-wait.js` | | requires Atomics/SharedArrayBuffer support, unavailable without threads in WASM | 1 | `parallel/test-atomics-wake.js` | | requires FIPS-enabled OpenSSL build | 1 | `parallel/test-dsa-fips-invalid-key.js` | | requires HTTP CONNECT tunnel socket data forwarding; node:http outbound requests always use wasi:http | 1 | `parallel/test-http-connect.js` | @@ -1436,7 +1827,6 @@ Secondary full-public compatibility, including public tests that are currently e | requires HTTP Upgrade socket takeover plus tls.TLSSocket, unavailable in WASI | 1 | `parallel/test-http-upgrade-reconsume-stream.js` | | requires HTTP/0.9 raw TCP responses (no headers), which wasi:http cannot represent | 1 | `parallel/test-http-response-no-headers.js` | | requires HTTPS server-side SNI behavior, unsupported by WASI transport | 1 | `parallel/test-https-agent-sni.js` | -| requires Linux abstract UNIX socket tracing | 1 | `parallel/test-trace-events-net-abstract-socket.js` | | requires Linux strace syscall tracing | 1 | `parallel/test-strace-openat-openssl.js` | | requires POSIX RLIMIT_FSIZE/SIGXFSZ behavior via /bin/sh ulimit | 1 | `parallel/test-fs-write-sigxfsz.js` | | requires TLS keylog/server socket behavior, unsupported by WASI transport | 1 | `parallel/test-https-agent-keylog.js` | @@ -1469,11 +1859,10 @@ Secondary full-public compatibility, including public tests that are currently e | requires custom Agent.createConnection to parse a response from an arbitrary Duplex; node:http outbound requests always use wasi:http | 1 | `parallel/test-http-client-readable.js` | | requires custom Agent.createConnection to surface errors from a raw socket; node:http outbound requests always use wasi:http | 1 | `parallel/test-http-client-abort3.js#block_01_block_01` | | requires execSync/ps subprocess behavior not available in WASM | 1 | `parallel/test-setproctitle.js` | -| requires external OpenSSL CLI via child_process.exec | 1 | `parallel/test-crypto-sign-verify.js#block_13_early_if_no_openssl_binary_is_found` | | requires external shell pipeline and cat subprocess via child_process | 1 | `parallel/test-http-chunk-problem.js` | | requires external shell pipeline tooling (e.g. head), unavailable in WASM | 1 | `parallel/test-pipe-head.js` | | requires external touch/date commands via child_process.spawnSync | 1 | `parallel/test-fs-utimes-y2K38.js` | -| requires full-duplex HTTP request/response streaming semantics not provided by wasi:http | 1 | `parallel/test-stream-pipeline.js#block_08_block_08` | +| requires full-duplex HTTP request/response streaming semantics not provided by wasi:http | 1 | `parallel/test-stream-pipeline.js#block_09_block_09` | | requires http.get({ createConnection }) to create and abort a raw node:net socket; node:http outbound requests always use wasi:http | 1 | `parallel/test-http-client-abort-no-agent.js` | | requires http.get({ createConnection }) to redirect requests through a custom node:net socket; node:http outbound requests always use wasi:http | 1 | `parallel/test-http-host-header-ipv6-fail.js` | | requires http.get({ createConnection }) to replace the client transport with a raw socket; node:http outbound requests always use wasi:http | 1 | `parallel/test-http-createConnection.js` | @@ -1485,7 +1874,6 @@ Secondary full-public compatibility, including public tests that are currently e | requires https.createServer not supported | 1 | `parallel/test-http-request-agent.js` | | requires https.createServer/TLS server support, unavailable in WASI runtime | 1 | `parallel/test-http-url.parse-https.request.js` | | requires https.createServer/TLSSocket server support, unavailable in WebAssembly | 1 | `parallel/test-async-wrap-tlssocket-asyncreset.js` | -| requires libuv threadpool trace categories | 1 | `parallel/test-trace-events-threadpool.js` | | requires macOS App Sandbox and codesign tooling outside WASI | 1 | `parallel/test-macos-app-sandbox.js` | | requires raw TLS handshake/protocol-mismatch behavior (HTTPS client to HTTP server), unavailable with wasi:http | 1 | `parallel/test-https-connecting-to-http.js` | | requires real child_process for fork/event-loop-exit semantics | 1 | `parallel/test-pipe-unref.js` | @@ -1509,7 +1897,6 @@ Secondary full-public compatibility, including public tests that are currently e | requires worker_threads stdout/execArgv behavior not available in WASM | 1 | `parallel/test-process-exec-argv.js` | | requires worker_threads to flood invalid frames; worker_threads is unavailable in WASM | 1 | `parallel/test-http2-reset-flood.js` | | requires worker_threads to interrupt generatePrime; worker_threads is unavailable in WASM | 1 | `parallel/test-crypto-prime.js#block_09_block_09` | -| requires worker_threads trace propagation | 1 | `parallel/test-trace-events-async-hooks-worker.js` | | requires worker_threads, which are unavailable in WASM | 1 | `sequential/test-vm-break-on-sigint.js` | | requires worker_threads/native addon process isolation semantics, which are not available in single-threaded WASM | 1 | `es-module/test-esm-no-addons.mjs` | | sending host process signals is not supported in WASI | 1 | `parallel/test-process-kill-null.js` | @@ -1539,17 +1926,17 @@ Secondary full-public compatibility, including public tests that are currently e | vm.measureMemory depends on V8 heap introspection APIs unavailable in QuickJS | 6 | `parallel/test-vm-measure-memory-lazy.js#block_00_or_otherwise_these_may_not_resolve`, `parallel/test-vm-measure-memory-lazy.js#block_01_block_01`, `parallel/test-vm-measure-memory-lazy.js#block_02_block_02`, ... (+3) | | inherited: v8.queryObjects is a V8-specific heap introspection API unavailable in QuickJS | 5 | `parallel/test-v8-query-objects.js#block_00_block_00`, `parallel/test-v8-query-objects.js#block_01_block_01`, `parallel/test-v8-query-objects.js#block_02_block_02`, ... (+2) | | requires V8 --expose_externalize_string globals | 5 | `parallel/test-fs-write.js#block_00_block_00`, `parallel/test-fs-write.js#block_01_block_01`, `parallel/test-fs-write.js#block_02_block_02`, ... (+2) | +| v8.writeHeapSnapshot/getHeapSnapshot are V8-specific APIs and unavailable in QuickJS | 5 | `sequential/test-heapdump.js#block_00_block_00`, `sequential/test-heapdump.js#block_01_block_01`, `sequential/test-heapdump.js#block_02_block_02`, ... (+2) | | v8.GCProfiler is V8-specific and unavailable in QuickJS | 4 | `parallel/test-v8-collect-gc-profile-exit-before-stop.js#block_00_test_if_it_makes_the_process_crash`, `parallel/test-v8-collect-gc-profile-exit-before-stop.js#block_01_block_01`, `parallel/test-v8-collect-gc-profile-in-worker.js`, ... (+1) | -| v8.writeHeapSnapshot/getHeapSnapshot are V8-specific APIs and unavailable in QuickJS | 4 | `sequential/test-heapdump.js#block_00_block_00`, `sequential/test-heapdump.js#block_01_block_01`, `sequential/test-heapdump.js#block_02_block_02`, ... (+1) | | QuickJS does not mirror V8's legacy RegExp static properties initialization | 3 | `parallel/test-startup-empty-regexp-statics.js#block_00_block_00`, `parallel/test-startup-empty-regexp-statics.js#block_01_block_01`, `parallel/test-startup-empty-regexp-statics.js#block_02_block_02` | | targets V8 external string internals/limits that QuickJS does not replicate | 3 | `parallel/test-stringbytes-external.js#block_00_block_00`, `parallel/test-stringbytes-external.js#block_01_block_01`, `parallel/test-stringbytes-external.js#block_02_https_github_com_nodejs_node_issues_1024` | | uses common/gc checkIfCollectable, which is replaced by a non-observing WASM shim and cannot verify collection | 3 | `es-module/test-vm-compile-function-leak.js`, `es-module/test-vm-contextified-script-leak.js`, `es-module/test-vm-synthetic-module-leak.js` | | --heapsnapshot-signal depends on V8 heap snapshot support, unavailable in QuickJS | 2 | `sequential/test-heapdump-flag-custom-dir.js`, `sequential/test-heapdump-flag.js` | -| --use-largepages is a V8 startup flag not applicable to QuickJS/WASM | 2 | `parallel/test-startup-large-pages.js#block_00_block_00`, `parallel/test-startup-large-pages.js#block_01_block_01` | | uses common/gc checkIfCollectableByCounting, which depends on V8-only v8.queryObjects | 2 | `es-module/test-vm-source-text-module-leak.js`, `parallel/test-diagnostics-channel-memory-leak.js` | | v8.getHeapSnapshot is V8-specific and unavailable in QuickJS | 2 | `parallel/test-heapdump-async-hooks-init-promise.js`, `parallel/test-v8-getheapsnapshot-twice.js` | | v8.serialize/deserialize are V8-specific and unavailable in QuickJS | 2 | `parallel/test-v8-deserialize-buffer.js`, `parallel/test-v8-serialize-leak.js` | | v8.writeHeapSnapshot is a V8-specific API and is unavailable in QuickJS | 2 | `parallel/test-permission-fs-write-v8.js#block_00_block_00`, `parallel/test-permission-fs-write-v8.js#block_01_block_01` | +| --use-largepages is a V8 startup flag not applicable to QuickJS/WASM | 1 | `parallel/test-startup-large-pages.js` | | GC observability used by common/gc.onGC is not available in the QuickJS/WASM runtime | 1 | `parallel/test-net-connect-memleak.js` | | QuickJS await/promise-hook semantics differ from V8, so AsyncLocalStorage runStores context is lost across await boundaries | 1 | `parallel/test-diagnostics-channel-tracing-channel-promise-run-stores.js` | | QuickJS private-field TypeError message text differs from V8 | 1 | `parallel/test-runner-mocking.js#test_21_mocks_a_constructor` | @@ -1570,29 +1957,32 @@ Secondary full-public compatibility, including public tests that are currently e | vm.Script.createCachedData relies on V8 code cache internals unavailable in QuickJS | 1 | `parallel/test-vm-createcacheddata.js` | | vm.SourceTextModule dynamic import referrer realm semantics depend on Node VM realm behavior not modeled by the QuickJS host | 1 | `parallel/test-vm-module-referrer-realm.mjs` | -### unevaluated (0) +### unevaluated (3840) -_No entries._ +| Reason | Count | Example entries | +|--------|-------|-----------------| +| newly discovered, not yet evaluated | 3639 | `es-module/test-cjs-defer-static-import-eval.mjs`, `es-module/test-defer-import-builtin-module.mjs`, `es-module/test-defer-import-eval-with-tla.mjs`, ... (+3636) | +| newly discovered subtest, not yet evaluated | 201 | `es-module/test-esm-json.mjs#test_01_should_load_json_with_import_calls`, `parallel/test-assert-deep.js#test_01_loose_deepequal`, `parallel/test-assert-deep.js#test_08_deepstrictequal_handles_shared_expected_array_elements_after`, ... (+198) | -### Node.js internals (1101) +### Node.js internals (1140) | Reason | Count | Example entries | |--------|-------|-----------------| -| requires --expose-internals and internal/webstreams/readablestream | 82 | `parallel/test-whatwg-readablestream.js#block_00_block_00`, `parallel/test-whatwg-readablestream.js#block_01_block_01`, `parallel/test-whatwg-readablestream.js#block_02_block_02`, ... (+79) | +| requires --expose-internals and internal/webstreams/readablestream | 83 | `parallel/test-whatwg-readablestream.js#block_00_block_00`, `parallel/test-whatwg-readablestream.js#block_01_block_01`, `parallel/test-whatwg-readablestream.js#block_02_block_02`, ... (+80) | | requires internal/util/inspect via --expose-internals | 78 | `parallel/test-readline-interface.js#block_00_block_00`, `parallel/test-readline-interface.js#block_01_block_01`, `parallel/test-readline-interface.js#block_02_block_02`, ... (+75) | +| requires --expose-internals plus internal/test/binding internalBinding('js_stream'/'util') | 61 | `parallel/test-util-inspect.js#block_00_special_function_inspection`, `parallel/test-util-inspect.js#block_01_block_01`, `parallel/test-util-inspect.js#block_02_block_02`, ... (+58) | | requires --expose-internals and internal/webstreams/adapters | 60 | `parallel/test-whatwg-webstreams-adapters-streambase.js#block_00_block_00`, `parallel/test-whatwg-webstreams-adapters-streambase.js#block_01_block_01`, `parallel/test-whatwg-webstreams-adapters-streambase.js#block_02_block_02`, ... (+57) | -| inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs | 57 | `parallel/test-eventtarget.js#block_00_first_test_event`, `parallel/test-eventtarget.js#block_01_block_01`, `parallel/test-eventtarget.js#block_02_block_02`, ... (+54) | -| requires --expose-internals plus internal/test/binding internalBinding('js_stream'/'util') | 43 | `parallel/test-util-inspect.js#block_00_special_function_inspection`, `parallel/test-util-inspect.js#block_01_block_01`, `parallel/test-util-inspect.js#block_02_block_02`, ... (+40) | +| inherited: requires --expose-internals, inspect integration, and internal EventTarget APIs | 53 | `parallel/test-eventtarget.js#block_00_first_test_event`, `parallel/test-eventtarget.js#block_01_block_01`, `parallel/test-eventtarget.js#block_02_block_02`, ... (+50) | | uses --expose-internals with internal/test/binding (internalBinding('uv')) | 32 | `parallel/test-fs-copyfile.js`, `parallel/test-fs-error-messages.js#block_00_stat`, `parallel/test-fs-error-messages.js#block_01_lstat`, ... (+29) | +| requires internal/test/binding and internalBinding('js_stream') | 28 | `parallel/test-util-types.js#block_00_block_00`, `parallel/test-util-types.js#block_01_block_01`, `parallel/test-util-types.js#block_02_block_02`, ... (+25) | +| requires --expose-internals and internal/crypto/webidl | 24 | `parallel/test-webcrypto-webidl.js#block_00_required_arguments_length`, `parallel/test-webcrypto-webidl.js#block_01_boolean`, `parallel/test-webcrypto-webidl.js#block_02_https_webidl_spec_whatwg_org_abstract_opdef_converttoint`, ... (+21) | | validates Node repository ESLint tooling/rules under tools/, not runtime API | 24 | `parallel/test-eslint-alphabetize-errors.js`, `parallel/test-eslint-alphabetize-primordials.js`, `parallel/test-eslint-async-iife-no-unused-result.js`, ... (+21) | | inherited: requires --expose-internals and internal/event_target | 23 | `parallel/test-nodeeventtarget.js#block_00_block_00`, `parallel/test-nodeeventtarget.js#block_01_block_01`, `parallel/test-nodeeventtarget.js#block_02_block_02`, ... (+20) | -| missing reason | 21 | `parallel/test-cli-node-options-disallowed.js`, `parallel/test-crypto-prime.js#block_00_block_00`, `parallel/test-crypto-prime.js#block_01_block_01`, ... (+18) | | depends on internal/util.customPromisifyArgs symbol | 19 | `parallel/test-util-promisify.js#block_00_block_00`, `parallel/test-util-promisify.js#block_01_block_01`, `parallel/test-util-promisify.js#block_02_block_02`, ... (+16) | | inherited: requires internal/event_target, ERR_INVALID_ARG_TYPE validation, returnValue/cancelBubble/srcElement properties | 19 | `parallel/test-events-customevent.js#block_00_block_00`, `parallel/test-events-customevent.js#block_02_block_02`, `parallel/test-events-customevent.js#block_03_block_03`, ... (+16) | -| requires --expose-internals and internal/crypto/webidl | 19 | `parallel/test-webcrypto-webidl.js#block_00_required_arguments_length`, `parallel/test-webcrypto-webidl.js#block_01_boolean`, `parallel/test-webcrypto-webidl.js#block_02_https_webidl_spec_whatwg_org_abstract_opdef_converttoint`, ... (+16) | | requires internalBinding('async_wrap') | 18 | `sequential/test-async-wrap-getasyncid.js#block_00_make_sure_that_all_providers_are_tested`, `sequential/test-async-wrap-getasyncid.js#block_01_block_01`, `sequential/test-async-wrap-getasyncid.js#block_02_block_02`, ... (+15) | +| requires --expose-internals and internal/worker/js_transferable | 16 | `parallel/test-whatwg-transformstream.js#block_00_block_00`, `parallel/test-whatwg-transformstream.js#block_01_block_01`, `parallel/test-whatwg-transformstream.js#block_02_block_02`, ... (+13) | | requires --expose-internals and internal/event_target | 15 | `parallel/test-events-on-async-iterator.js`, `parallel/test-eventtarget-brandcheck.js`, `parallel/test-global-customevent.js`, ... (+12) | -| requires --expose-internals and internal/worker/js_transferable | 15 | `parallel/test-whatwg-transformstream.js#block_00_block_00`, `parallel/test-whatwg-transformstream.js#block_01_block_01`, `parallel/test-whatwg-transformstream.js#block_02_block_02`, ... (+12) | | uses --expose-internals plus internal/errors and internal/util/inspect | 15 | `parallel/test-errors-systemerror.js#block_00_block_00`, `parallel/test-errors-systemerror.js#block_01_block_01`, `parallel/test-errors-systemerror.js#block_02_block_02`, ... (+12) | | inherited: requires --expose-internals and internal/validators | 13 | `parallel/test-internal-validators-validateoneof.js#block_00_block_00`, `parallel/test-internal-validators-validateoneof.js#block_01_block_01`, `parallel/test-internal-validators-validateoneof.js#block_02_block_02`, ... (+10) | | requires --expose-internals and internal/webstreams/* modules | 13 | `parallel/test-whatwg-webstreams-transfer.js#block_00_block_00`, `parallel/test-whatwg-webstreams-transfer.js#block_01_block_01`, `parallel/test-whatwg-webstreams-transfer.js#block_02_block_02`, ... (+10) | @@ -1603,54 +1993,53 @@ _No entries._ | requires --expose-internals and internal/webstreams/util (kState) | 11 | `parallel/test-whatwg-readablebytestream.js#block_00_block_00`, `parallel/test-whatwg-readablebytestream.js#block_01_block_01`, `parallel/test-whatwg-readablebytestream.js#block_02_block_02`, ... (+8) | | uses --expose-internals and internal/errors/internal/validators | 11 | `parallel/test-errors-hide-stack-frames.js#block_00_block_00`, `parallel/test-errors-hide-stack-frames.js#block_01_block_01`, `parallel/test-errors-hide-stack-frames.js#block_02_block_02`, ... (+8) | | inherited: requires --expose-internals and internal/socket_list | 10 | `parallel/test-internal-socket-list-receive.js#block_00_verify_that_the_message_won_t_be_sent_when_child_is_not_conn`, `parallel/test-internal-socket-list-receive.js#block_01_verify_that_a_node_socket_all_closed_message_will_be_sent`, `parallel/test-internal-socket-list-receive.js#block_02_verify_that_a_node_socket_count_message_will_be_sent`, ... (+7) | -| inherited: requires --expose-internals and internal/crypto/webidl | 9 | `parallel/test-webcrypto-webidl.js#block_19_hmackeygenparams_hmacimportparams`, `parallel/test-webcrypto-webidl.js#block_20_aeskeygenparams_aesderivedkeyparams`, `parallel/test-webcrypto-webidl.js#block_21_hkdfparams`, ... (+6) | +| requires --expose-internals, inspect integration, and internal EventTarget APIs | 10 | `parallel/test-eventtarget.js#block_13_block_13`, `parallel/test-eventtarget.js#block_14_block_14`, `parallel/test-eventtarget.js#block_15_block_15`, ... (+7) | | requires internal/http2/util and internalBinding('http2') constants | 9 | `parallel/test-http2-util-headers-list.js#block_00_block_00`, `parallel/test-http2-util-headers-list.js#block_01_block_01`, `parallel/test-http2-util-headers-list.js#block_02_block_02`, ... (+6) | | requires internal/http2/util kSocket and internal HTTP2 state | 9 | `parallel/test-http2-client-destroy.js#block_00_block_00`, `parallel/test-http2-client-destroy.js#block_01_test_destroy_before_client_operations`, `parallel/test-http2-client-destroy.js#block_02_test_destroy_before_goaway`, ... (+6) | | inherited: requires --expose-internals and internal/fs/sync_write_stream | 8 | `parallel/test-internal-fs-syncwritestream.js#block_00_verify_constructing_the_instance_with_default_options`, `parallel/test-internal-fs-syncwritestream.js#block_01_verify_constructing_the_instance_with_specified_options`, `parallel/test-internal-fs-syncwritestream.js#block_02_verify_that_the_file_will_be_written_synchronously`, ... (+5) | | inherited: uses --expose-internals and internal/test/binding primordials | 8 | `parallel/test-primordials-apply.js#block_00_block_00`, `parallel/test-primordials-apply.js#block_01_block_01`, `parallel/test-primordials-apply.js#block_02_block_02`, ... (+5) | -| requires internal/crypto/util | 8 | `parallel/test-webcrypto-keygen.js#block_00_test_invalid_algorithms`, `parallel/test-webcrypto-keygen.js#block_01_test_bad_usages`, `parallel/test-webcrypto-keygen.js#block_02_test_rsa_key_generation`, ... (+5) | +| requires internal/crypto/util | 8 | `parallel/test-webcrypto-keygen.js#block_00_test_invalid_algorithms`, `parallel/test-webcrypto-keygen.js#block_01_test_bad_usages`, `parallel/test-webcrypto-keygen.js#block_03_test_rsa_key_generation`, ... (+5) | | uses --expose-internals and internal/errors | 8 | `parallel/test-error-aggregateTwoErrors.js#block_00_block_00`, `parallel/test-error-aggregateTwoErrors.js#block_01_block_01`, `parallel/test-error-aggregateTwoErrors.js#block_02_block_02`, ... (+5) | | uses --expose-internals and require('internal/repl') | 8 | `parallel/test-repl-autocomplete.js`, `parallel/test-repl-envvars.js`, `parallel/test-repl-history-navigation.js`, ... (+5) | +| inherited: requires --expose-internals and internal/crypto/webidl | 7 | `parallel/test-webcrypto-webidl.js#block_20_hmackeygenparams_hmacimportparams`, `parallel/test-webcrypto-webidl.js#block_21_aeskeygenparams_aesderivedkeyparams`, `parallel/test-webcrypto-webidl.js#block_22_hkdfparams`, ... (+4) | | requires --expose-internals and internal/js_stream_socket | 7 | `parallel/test-wrap-js-stream-destroy.js#block_00_close_events_and_vice_versa`, `parallel/test-wrap-js-stream-destroy.js#block_01_destroy_the_streamwrap_and_test_again`, `parallel/test-wrap-js-stream-destroy.js#block_02_destroy_the_client_socket_and_test_again`, ... (+4) | +| requires --expose-internals and internal/test_runner/snapshot | 7 | `parallel/test-runner-snapshot-tests.js#test_00_snapshotmanager`, `parallel/test-runner-snapshot-tests.js#test_01_t_assert_snapshot_validation`, `parallel/test-runner-snapshot-tests.js#test_02_setresolvesnapshotpath`, ... (+4) | | requires --expose-internals and internalBinding('cares_wrap') | 7 | `parallel/test-dns-default-order-ipv4.js`, `parallel/test-dns-default-order-ipv6.js`, `parallel/test-dns-default-order-verbatim.js`, ... (+4) | | requires internal/event_target, ERR_INVALID_ARG_TYPE validation, returnValue/cancelBubble/srcElement properties | 7 | `parallel/test-events-customevent.js#block_01_block_01`, `parallel/test-events-customevent.js#block_13_block_13`, `parallel/test-events-customevent.js#block_14_block_14`, ... (+4) | -| requires internal/http kOutHeaders symbol | 7 | `parallel/test-http-outgoing-internal-headers.js#block_00_block_00`, `parallel/test-http-outgoing-internal-headers.js#block_01_block_01`, `parallel/test-http-outgoing-internal-headers.js#block_02_block_02`, ... (+4) | | uses --expose-internals and require('internal/http2/util') | 7 | `parallel/test-http2-client-socket-destroy.js`, `parallel/test-http2-create-client-secure-session.js`, `parallel/test-http2-server-http1-client.js`, ... (+4) | +| uses internal/test/binding UV constants and watcher._handle internals | 7 | `parallel/test-fs-watch-enoent.js#block_00_block_00`, `parallel/test-fs-watch-enoent.js#block_01_block_01`, `parallel/test-fs-watch-enoent.js#block_02_block_02`, ... (+4) | | inherited: uses --expose-internals, internal/test/binding, and internal/dgram handle internals | 6 | `parallel/test-handle-wrap-hasref.js#block_00_child_process`, `parallel/test-handle-wrap-hasref.js#block_01_dgram_ipv4`, `parallel/test-handle-wrap-hasref.js#block_02_dgram_ipv6`, ... (+3) | -| requires --expose-internals and internal/test_runner/snapshot | 6 | `parallel/test-runner-snapshot-tests.js#test_00_snapshotmanager`, `parallel/test-runner-snapshot-tests.js#test_01_t_assert_snapshot_validation`, `parallel/test-runner-snapshot-tests.js#test_02_setresolvesnapshotpath`, ... (+3) | +| missing reason | 6 | `parallel/test-cli-node-options-disallowed.js`, `parallel/test-fs-syncwritestream.js`, `parallel/test-fs-watch-abort-signal.js#block_00_block_00`, ... (+3) | +| requires --expose-internals, internal/fs/utils, and internal/test/binding constants.fs | 6 | `parallel/test-fs-utils-get-dirents.js#block_04_block_04`, `parallel/test-fs-utils-get-dirents.js#block_05_getdirent`, `parallel/test-fs-utils-get-dirents.js#block_06_block_06`, ... (+3) | | requires internal/timers | 6 | `parallel/test-timers-refresh.js#block_00_unref_d_timer`, `parallel/test-timers-refresh.js#block_01_should_throw_with_non_functions`, `parallel/test-timers-refresh.js#block_02_unref_pooled_timer`, ... (+3) | | uses --expose-internals and internal/errors SystemError | 6 | `parallel/test-errors-systemerror-frozen-intrinsics.js`, `parallel/test-errors-systemerror-stackTraceLimit-custom-setter.js`, `parallel/test-errors-systemerror-stackTraceLimit-deleted-and-Error-sealed.js`, ... (+3) | | directly tests internal/fs/utils validateOffsetLength* helpers | 5 | `parallel/test-fs-util-validateoffsetlength.js#block_00_block_00`, `parallel/test-fs-util-validateoffsetlength.js#block_01_block_01`, `parallel/test-fs-util-validateoffsetlength.js#block_02_block_02`, ... (+2) | +| imports internal/fs/utils validateRmOptionsSync | 5 | `parallel/test-fs-rm.js#block_00_test_the_asynchronous_version`, `parallel/test-fs-rm.js#block_01_test_the_synchronous_version`, `parallel/test-fs-rm.js#block_02_test_input_validation`, ... (+2) | | imports internal/modules/esm/{loader,module_map,module_job,create_dynamic_module} | 5 | `es-module/test-esm-loader-modulemap.js#block_00_are_stored_in_the_map`, `es-module/test-esm-loader-modulemap.js#block_01_values_as_url_argument`, `es-module/test-esm-loader-modulemap.js#block_02_values_or_the_kasserttype_symbol_as_type_argument`, ... (+2) | -| requires --expose-internals and internal/util | 5 | `parallel/test-internal-util-assertCrypto.js`, `parallel/test-internal-util-classwrapper.js`, `parallel/test-internal-util-helpers.js`, ... (+2) | -| requires --expose-internals, internal/fs/utils, and internal/test/binding constants.fs | 5 | `parallel/test-fs-utils-get-dirents.js#block_04_block_04`, `parallel/test-fs-utils-get-dirents.js#block_05_getdirent`, `parallel/test-fs-utils-get-dirents.js#block_06_block_06`, ... (+2) | +| requires --expose-internals and internal/crypto/util | 5 | `parallel/test-webcrypto-util.js#block_00_operator_yields_a_negative_int32_for_inputs_like_0x80_0x00_0`, `parallel/test-webcrypto-util.js#block_01_block_01`, `parallel/test-webcrypto-util.js#block_02_refs_https_github_com_web_platform_tests_wpt_pull_57614_pull`, ... (+2) | +| requires --expose-internals and internal/util | 5 | `parallel/test-internal-util-assertCrypto.js`, `parallel/test-internal-util-helpers.js#block_00_actual_errors`, `parallel/test-internal-util-helpers.js#block_01_block_01`, ... (+2) | | requires private _http_server.kConnectionsCheckingInterval internals | 5 | `parallel/test-http-server-async-dispose.js`, `parallel/test-http-server-clear-timer.js`, `parallel/test-http-server-close-destroy-timeout.js`, ... (+2) | | uses --expose-internals with internalBinding('http2') and internal/http2/util | 5 | `parallel/test-http2-client-onconnect-errors.js`, `parallel/test-http2-info-headers-errors.js`, `parallel/test-http2-respond-nghttperrors.js`, ... (+2) | -| imports internal/fs/utils validateRmOptionsSync | 4 | `parallel/test-fs-rm.js#block_00_test_the_asynchronous_version`, `parallel/test-fs-rm.js#block_01_test_the_synchronous_version`, `parallel/test-fs-rm.js#block_02_test_input_validation`, ... (+1) | -| imports internal/fs/utils validateRmdirOptions | 4 | `parallel/test-fs-rmdir-recursive.js#block_00_test_the_asynchronous_version`, `parallel/test-fs-rmdir-recursive.js#block_01_test_the_synchronous_version`, `parallel/test-fs-rmdir-recursive.js#block_02_test_input_validation`, ... (+1) | | inherited: requires --expose-internals and internal/priority_queue | 4 | `parallel/test-priority-queue.js#block_02_block_02`, `parallel/test-priority-queue.js#block_03_block_03`, `parallel/test-priority-queue.js#block_04_block_04`, ... (+1) | | requires --expose-internals and internal/util customInspectSymbol | 4 | `parallel/test-whatwg-encoding-custom-interop.js#block_00_test_textencoder`, `parallel/test-whatwg-encoding-custom-interop.js#block_01_block_01`, `parallel/test-whatwg-encoding-custom-interop.js#block_02_block_02`, ... (+1) | -| requires --expose-internals, inspect integration, and internal EventTarget APIs | 4 | `parallel/test-eventtarget.js#block_13_block_13`, `parallel/test-eventtarget.js#block_14_block_14`, `parallel/test-eventtarget.js#block_15_block_15`, ... (+1) | +| requires --expose-internals and internal/webidl | 4 | `parallel/test-internal-webidl-converttoint.js#block_00_block_00`, `parallel/test-internal-webidl-converttoint.js#block_01_block_01`, `parallel/test-internal-webidl-converttoint.js#block_02_block_02`, ... (+1) | +| requires internal/http kOutHeaders symbol | 4 | `parallel/test-http-outgoing-renderHeaders.js#block_00_block_00`, `parallel/test-http-outgoing-renderHeaders.js#block_01_block_01`, `parallel/test-http-outgoing-renderHeaders.js#block_02_block_02`, ... (+1) | | requires internal/test/binding and internalBinding('uv') | 4 | `parallel/test-fs-access.js#block_00_block_00`, `parallel/test-fs-access.js#block_01_block_01`, `parallel/test-fs-access.js#block_02_block_02`, ... (+1) | | requires internal/util.sleep | 4 | `parallel/test-timers-nested.js`, `parallel/test-timers-next-tick.js`, `parallel/test-util-sleep.js`, ... (+1) | | uses --expose-internals and internal/dgram kStateSymbol | 4 | `parallel/test-dgram-close-during-bind.js`, `parallel/test-dgram-close.js`, `parallel/test-dgram-recv-error.js`, ... (+1) | | uses --expose-internals with internal/errors and internal/test/binding | 4 | `parallel/test-buffer-fill.js#block_00_block_00`, `parallel/test-buffer-fill.js#block_01_block_01`, `parallel/test-buffer-fill.js#block_02_symbol_toprimitive`, ... (+1) | -| Asserts internal webstreams kState | 3 | `parallel/test-blob.js#block_28_statement_28`, `parallel/test-blob.js#block_30_statement_30`, `parallel/test-blob.js#block_31_statement_31` | +| Asserts internal webstreams kState | 3 | `parallel/test-blob.js#block_29_statement_29`, `parallel/test-blob.js#block_31_statement_31`, `parallel/test-blob.js#block_32_statement_32` | | directly tests internal/fs/utils getDirents with internal constants | 3 | `parallel/test-fs-utils-get-dirents.js#block_00_block_00`, `parallel/test-fs-utils-get-dirents.js#block_01_getdirents`, `parallel/test-fs-utils-get-dirents.js#block_02_block_02` | -| explicitly tests private timers._unrefActive()/enroll()/unenroll() behavior | 3 | `parallel/test-timers-unref-active.js`, `parallel/test-timers-unref-remove-other-unref-timers-only-one-fires.js`, `parallel/test-timers-unref-remove-other-unref-timers.js` | | inherited: requires --expose-internals and internal/crypto/x509 | 3 | `parallel/test-crypto-x509.js#block_00_block_00`, `parallel/test-crypto-x509.js#block_01_block_01`, `parallel/test-crypto-x509.js#block_02_block_02` | | inherited: requires --expose-internals and internal/fixed_queue | 3 | `parallel/test-fixed-queue.js#block_00_block_00`, `parallel/test-fixed-queue.js#block_01_block_01`, `parallel/test-fixed-queue.js#block_02_block_02` | -| inherited: requires --expose-internals and internalBinding('cares_wrap') to stub getaddrinfo | 3 | `parallel/test-dns-lookup.js#block_00_block_00`, `parallel/test-dns-lookup.js#block_01_block_01`, `parallel/test-dns-lookup.js#block_02_block_02` | +| inherited: requires --expose-internals and internalBinding('cares_wrap') to stub getaddrinfo | 3 | `parallel/test-dns-lookup.js#block_00_block_00`, `parallel/test-dns-lookup.js#block_02_block_02`, `parallel/test-dns-lookup.js#block_03_block_03` | | inherited: uses --expose-internals with dgram._createSocketHandle and internal/test/binding | 3 | `parallel/test-dgram-create-socket-handle-fd.js#block_00_return_a_negative_number_if_the_existing_fd_is_invalid`, `parallel/test-dgram-create-socket-handle-fd.js#block_01_return_a_negative_number_if_the_type_of_fd_is_not_udp`, `parallel/test-dgram-create-socket-handle-fd.js#block_02_create_a_bound_handle` | | requires --expose-internals and internal/options | 3 | `parallel/test-options-binding.js`, `parallel/test-pending-deprecation.js`, `parallel/test-worker-cli-options.js` | | requires --expose-internals and node:internal/modules/esm/resolve | 3 | `es-module/test-cjs-legacyMainResolve-permission.js`, `es-module/test-cjs-legacyMainResolve.js`, `es-module/test-esm-resolve-type.mjs` | -| requires internal/test/binding and internalBinding('js_stream') | 3 | `parallel/test-util-types.js#block_00_block_00`, `parallel/test-util-types.js#block_01_block_01`, `parallel/test-util-types.js#block_02_block_02` | | requires internal/test/binding internalBinding('tcp_wrap') | 3 | `parallel/test-tcp-wrap-connect.js`, `parallel/test-tcp-wrap-listen.js`, `parallel/test-tcp-wrap.js` | | uses --expose-internals and internal/errors AbortError | 3 | `parallel/test-errors-aborterror.js#block_00_block_00`, `parallel/test-errors-aborterror.js#block_01_block_01`, `parallel/test-errors-aborterror.js#block_02_block_02` | -| uses --expose-internals and internalBinding('trace_events') | 3 | `parallel/test-trace-events-api.js`, `parallel/test-trace-events-category-used.js`, `parallel/test-trace-events-get-category-enabled-buffer.js` | | uses --expose-internals and internalBinding('uv') | 3 | `parallel/test-ttywrap-invalid-fd.js`, `parallel/test-uv-errmap.js`, `parallel/test-uv-errno.js` | | asserts private req._readableState and exact req/res close ordering | 2 | `parallel/test-http-req-res-close.js#block_00_after_res`, `parallel/test-http-req-res-close.js#block_01_req_should_emit_close_after_res` | -| asserts private req.socket.parser.free lifecycle from Node internals | 2 | `parallel/test-http-server-connection-list-when-close.js#block_00_block_00`, `parallel/test-http-server-connection-list-when-close.js#block_01_block_01` | | checks Node source-tree release changelog files, not runtime API | 2 | `parallel/test-release-changelog.js#block_00_check_changelog_v_md`, `parallel/test-release-changelog.js#block_01_main_changelog_md_checks` | | depends on Node's internal JSTransferable protocol (messaging_transfer_symbol) | 2 | `parallel/test-worker-message-port-transfer-fake-js-transferable-internal.js`, `parallel/test-worker-message-port-transfer-fake-js-transferable.js` | | inherited: exercises non-public listen(handle/_handle/fd) paths via internal tcp/pipe bindings | 2 | `parallel/test-net-server-listen-handle.js#block_00_not_a_public_api_used_by_child_process`, `parallel/test-net-server-listen-handle.js#block_01_block_01` | @@ -1662,33 +2051,37 @@ _No entries._ | inherited: uses --expose-internals and internal/util customInspectSymbol | 2 | `parallel/test-compression-decompression-stream.js#test_00_decompressionstream_kinspect_method`, `parallel/test-compression-decompression-stream.js#test_01_compressionstream_kinspect_method` | | inherited: uses --expose-internals with internal/dgram and internal/test/binding | 2 | `parallel/test-dgram-bind-fd-error.js#block_00_throw_when_the_fd_is_occupied_according_to_https_github_com_`, `parallel/test-dgram-bind-fd-error.js#block_01_throw_when_the_type_of_fd_is_not_udp` | | patches internal/fs/promises FileHandle fd/close internals | 2 | `parallel/test-fs-promises-file-handle-aggregate-errors.js`, `parallel/test-fs-promises-file-handle-close-errors.js` | +| requires --expose-internals and internal/crypto/x509 | 2 | `parallel/test-crypto-x509.js#block_03_block_03`, `parallel/test-crypto-x509.js#block_04_block_04` | | requires --expose-internals and internal/error_serdes | 2 | `sequential/test-error-serdes.js#block_00_block_00`, `sequential/test-error-serdes.js#block_01_block_01` | +| requires --expose-internals and internal/event_target (kWeakHandler) | 2 | `parallel/test-abortcontroller-internal.js#test_00_a_weak_event_listener_should_not_prevent_gc`, `parallel/test-abortcontroller-internal.js#test_01_two_weak_listeners_with_the_same_retainer_should_both_run_on` | +| requires --expose-internals and internal/navigator | 2 | `parallel/test-navigator.js#block_00_block_00`, `parallel/test-navigator.js#block_01_block_01` | | requires --expose-internals and internal/priority_queue | 2 | `parallel/test-priority-queue.js#block_00_block_00`, `parallel/test-priority-queue.js#block_01_block_01` | | requires --expose-internals and internal/timers | 2 | `parallel/test-child-process-http-socket-leak.js`, `parallel/test-tls-wrap-timeout.js` | +| requires --expose-internals and internalBinding('cares_wrap') to stub getaddrinfo | 2 | `parallel/test-dns-lookup-promises.js`, `parallel/test-dns-lookup.js#block_01_block_01` | | requires --expose-internals and require('internal/js_stream_socket') | 2 | `parallel/test-stream-wrap-encoding.js#block_00_block_00`, `parallel/test-stream-wrap-encoding.js#block_01_block_01` | | requires --expose-internals plus internal/js_stream_socket and internalBinding('stream_wrap') | 2 | `parallel/test-stream-wrap-drain.js`, `parallel/test-stream-wrap.js` | | requires internal _tls_common module | 2 | `parallel/test-tls-translate-peer-certificate.js#block_00_block_00`, `parallel/test-tls-translate-peer-certificate.js#block_01_block_01` | | requires internal/http2/util.updateOptionsBuffer and internalBinding('http2').optionsBuffer | 2 | `parallel/test-http2-util-update-options-buffer.js#block_00_block_00`, `parallel/test-http2-util-update-options-buffer.js#block_01_block_01` | -| requires internal/quic/quic classes (non-public API) | 2 | `parallel/test-quic-internal-endpoint-listen-defaults.js`, `parallel/test-quic-internal-endpoint-options.js` | | requires internal/streams/add-abort-signal helper | 2 | `parallel/test-stream-add-abort-signal.js#block_00_block_00`, `parallel/test-stream-add-abort-signal.js#block_01_block_01` | | requires internal/test/binding internalBinding('timers') | 2 | `parallel/test-timers-now.js`, `parallel/test-timers-ordering.js` | | requires internal/v8_prof_polyfill | 2 | `parallel/test-tick-processor-version-check.js#block_00_block_00`, `parallel/test-tick-processor-version-check.js#block_01_block_01` | +| requires internalBinding('util').getProxyDetails | 2 | `parallel/test-util-inspect-proxy.js#block_00_block_00`, `parallel/test-util-inspect-proxy.js#block_01_block_01` | | requires private modules _http_outgoing and internal/streams/state | 2 | `parallel/test-http-server-options-highwatermark.js#block_00_block_00`, `parallel/test-http-server-options-highwatermark.js#block_01_block_01` | | uses --expose-internals and internal/async_hooks symbols | 2 | `parallel/test-async-hooks-http-agent-destroy.js`, `parallel/test-async-hooks-http-agent.js` | | uses --expose-internals and internal/http2/core | 2 | `parallel/test-http2-invalid-last-stream-id.js`, `parallel/test-http2-options-max-headers-exceeds-nghttp2.js` | | uses --expose-internals and internal/test/binding | 2 | `parallel/test-process-binding.js`, `parallel/test-worker-message-port-transfer-native.js#block_01_block_01` | | uses --expose-internals and internal/test/binding internalBinding('http2') | 2 | `parallel/test-http2-binding.js`, `parallel/test-http2-respond-errors.js` | +| uses --expose-internals and internal/test/binding primordials | 2 | `parallel/test-primordials-apply.js#block_03_block_03`, `parallel/test-primordials-apply.js#block_04_block_04` | +| uses --expose-internals and internalBinding('trace_events') | 2 | `parallel/test-trace-events-category-used.js`, `parallel/test-trace-events-get-category-enabled-buffer.js` | | uses --expose-internals and require('internal/timers') | 2 | `parallel/test-http2-compat-socket.js`, `parallel/test-http2-socket-proxy.js` | | uses --expose-internals to monkey-patch internalBinding('crypto').SecureContext | 2 | `parallel/test-tls-clientcertengine-unsupported.js`, `parallel/test-tls-keyengine-unsupported.js` | | uses --expose-internals with internal/dgram _createSocketHandle and internal/test/binding | 2 | `parallel/test-dgram-create-socket-handle.js#block_00_block_00`, `parallel/test-dgram-create-socket-handle.js#block_01_block_01` | | uses --expose-internals with internal/test/binding and V8 native syntax | 2 | `parallel/test-buffer-write-fast.js`, `parallel/test-debug-v8-fast-api.js` | | uses --expose-internals with internalBinding('tls_wrap') | 2 | `parallel/test-tls-enable-trace-cli.js`, `parallel/test-tls-enable-trace.js` | | uses common/net.hasMultiLocalhost(), which depends on internalBinding('tcp_wrap') | 2 | `parallel/test-http-localaddress.js`, `parallel/test-https-localaddress.js` | -| uses internal/test/binding UV constants and watcher._handle internals | 2 | `parallel/test-fs-watch-enoent.js#block_00_block_00`, `parallel/test-fs-watch-enoent.js#block_01_block_01` | | uses private server/socket _handle internals | 2 | `parallel/test-net-server-keepalive.js`, `parallel/test-net-server-nodelay.js` | | Common test harness setup only; no public API assertion | 1 | `parallel/test-structuredClone-global.js#block_00_statement_00` | | Windows-only test that also imports node:internal/modules/esm/resolve and internal/modules/run_main | 1 | `es-module/test-esm-long-path-win.js` | -| asserts deprecated timers.active() behavior and private _idle* timer fields | 1 | `parallel/test-timers-active.js` | | asserts exact process.moduleLoadList bootstrap internals | 1 | `parallel/test-bootstrap-modules.js` | | asserts internal socket.parser lifecycle around HTTP upgrade | 1 | `parallel/test-http-parser-freed-before-upgrade.js` | | asserts internal zlib native-handle weak-reference/external-memory behavior | 1 | `parallel/test-zlib-unused-weak.js` | @@ -1696,6 +2089,7 @@ _No entries._ | asserts private Timer._destroyed state on timeout/interval objects | 1 | `parallel/test-timers-destroyed.js` | | asserts private internal/http kOutHeaders state | 1 | `parallel/test-http-correct-hostname.js` | | asserts private req._dumped internal state | 1 | `parallel/test-http-pause-no-dump.js` | +| asserts private req.socket.parser.free lifecycle from Node internals | 1 | `parallel/test-http-server-connection-list-when-close.js` | | asserts private req.socket.parser.incoming lifecycle after keep-alive request end | 1 | `parallel/test-http-server-keepalive-end.js` | | asserts private zlib stream _closed state after error | 1 | `parallel/test-zlib-close-after-error.js` | | asserts private zlib stream _handle cleanup semantics | 1 | `parallel/test-zlib-destroy.js#block_00_block_00` | @@ -1720,7 +2114,6 @@ _No entries._ | imports internal/modules/esm/assert (Node internal module) | 1 | `es-module/test-esm-import-attributes-validation.js` | | imports internal/modules/esm/resolve (Node internal module) | 1 | `es-module/test-esm-loader-search.js` | | inherited: requires --expose-internals and internal/util | 1 | `parallel/test-internal-util-objects.js#block_00_block_00` | -| inherits top-level internal/test/binding dependency | 1 | `parallel/test-util-inspect.js#block_78_block_78` | | invokes private req.client._events.close handlers directly | 1 | `parallel/test-http-req-close-robust-from-tampering.js` | | monkey-patches internalBinding('http_parser') and uses _http_common internals | 1 | `parallel/test-http-parser-lazy-loaded.js` | | monkey-patches internalBinding('os') | 1 | `parallel/test-os-checked-function.js` | @@ -1736,29 +2129,24 @@ _No entries._ | requires --expose-internals and child_process IPC to validate internal module visibility | 1 | `parallel/test-internal-module-require.js` | | requires --expose-internals and internal/assert | 1 | `parallel/test-internal-assert.js` | | requires --expose-internals and internal/cluster/round_robin_handle | 1 | `parallel/test-cluster-accept-fail.js` | -| requires --expose-internals and internal/crypto/util | 1 | `parallel/test-webcrypto-util.js` | +| requires --expose-internals and internal/crypto/util module | 1 | `parallel/test-webcrypto-keygen.js#block_02_test_cryptokeypair_prototype` | | requires --expose-internals and internal/crypto/webcrypto | 1 | `parallel/test-global-webcrypto-classes.js` | | requires --expose-internals and internal/dgram | 1 | `sequential/test-dgram-implicit-bind-failure.js` | | requires --expose-internals and internal/encoding | 1 | `parallel/test-whatwg-encoding-custom-internals.js` | | requires --expose-internals and internal/errors + internal/test/binding | 1 | `parallel/test-dns-memory-error.js` | | requires --expose-internals and internal/errors AbortError | 1 | `parallel/test-webstream-readablestream-pipeto.js` | | requires --expose-internals and internal/event_target (kEvents) | 1 | `parallel/test-events-once.js` | -| requires --expose-internals and internal/event_target (kWeakHandler) | 1 | `parallel/test-abortcontroller-internal.js` | | requires --expose-internals and internal/freelist | 1 | `parallel/test-freelist.js` | -| requires --expose-internals and internal/navigator | 1 | `parallel/test-navigator.js` | | requires --expose-internals and internal/test/binding | 1 | `parallel/test-internal-only-binding.js` | | requires --expose-internals and internal/test/binding + internal/worker/io | 1 | `parallel/test-worker-message-not-serializable.js` | | requires --expose-internals and internal/test/transfer | 1 | `parallel/test-messaging-marktransfermode.js` | | requires --expose-internals and internal/util/inspect | 1 | `parallel/test-icu-stringwidth.js` | | requires --expose-internals and internal/validators | 1 | `parallel/test-internal-validators-validateport.js` | -| requires --expose-internals and internal/webidl | 1 | `parallel/test-internal-webidl-converttoint.js` | | requires --expose-internals and internal/webstreams/util | 1 | `parallel/test-whatwg-webstreams-coverage.js` | | requires --expose-internals and internal/worker | 1 | `parallel/test-worker-environmentdata.js` | -| requires --expose-internals and internalBinding('cares_wrap') to stub getaddrinfo | 1 | `parallel/test-dns-lookup-promises.js` | | requires --expose-internals and internalBinding('module_wrap') | 1 | `parallel/test-internal-module-wrap.js` | | requires --expose-internals internalBinding('fs').internalModuleStat | 1 | `parallel/test-permission-fs-internal-module-stat.js` | | requires --expose-internals, internal/util, and internal/test/binding | 1 | `parallel/test-internal-util-decorate-error-stack.js` | -| requires deprecated private _stream_wrap module | 1 | `parallel/test-warn-stream-wrap.js` | | requires internal/child_process via --expose-internals | 1 | `parallel/test-child-process-recv-handle.js` | | requires internal/dgram and internal/test/binding | 1 | `parallel/test-dgram-create-socket-handle.js#block_02_block_02` | | requires internal/errors | 1 | `parallel/test-util.js` | @@ -1766,7 +2154,6 @@ _No entries._ | requires internal/js_stream_socket and --expose-internals | 1 | `parallel/test-http-agent-domain-reused-gc.js` | | requires internal/linkedlist | 1 | `parallel/test-timers-linked-list.js` | | requires internal/options.getOptionValue('--max-http-header-size') | 1 | `parallel/test-http-max-http-headers.js` | -| requires internal/quic/quic and internal/quic/symbols | 1 | `parallel/test-quic-internal-endpoint-stats-state.js` | | requires internal/readline/utils via --expose-internals | 1 | `parallel/test-readline-csi.js` | | requires internal/socketaddress and internal/test/binding | 1 | `parallel/test-socketaddress.js` | | requires internal/streams/state.getDefaultHighWaterMark() | 1 | `parallel/test-http-outgoing-buffer.js` | @@ -1779,17 +2166,14 @@ _No entries._ | requires internal/timers kTimeout symbol | 1 | `parallel/test-http-client-timeout-on-connect.js` | | requires internalBinding('js_stream').JSStream | 1 | `parallel/test-js-stream-call-properties.js` | | requires internalBinding('pipe_wrap') to construct raw Pipe handles | 1 | `parallel/test-net-connect-options-fd.js` | -| requires internalBinding('quic').setCallbacks | 1 | `parallel/test-quic-internal-setcallbacks.js` | | requires internalBinding('tcp_wrap') handle APIs (plus cluster path) | 1 | `parallel/test-net-listen-handle-in-cluster-2.js` | | requires internalBinding('trace_events') | 1 | `parallel/test-trace-events-binding.js` | | requires internalBinding('tty_wrap').TTY | 1 | `parallel/test-stream-base-prototype-accessors-enumerability.js` | -| requires internalBinding('util').getProxyDetails | 1 | `parallel/test-util-inspect-proxy.js` | | requires internalBinding('util').privateSymbols | 1 | `parallel/test-util-internal.js` | | requires internalBinding('uv') and internalBinding('stream_wrap') | 1 | `parallel/test-net-end-close.js` | | requires private core module _http_outgoing | 1 | `parallel/test-outgoing-message-pipe.js` | | second block asserts private EventEmitter kCapture symbol initialization details | 1 | `parallel/test-domain-ee.js` | | setup-only Node test-harness import has no public API assertion | 1 | `parallel/test-error-prepare-stack-trace.js#block_00_statement_00` | -| tests deprecated internal timers.enroll() validation/error paths | 1 | `parallel/test-timers-enroll-invalid-msecs.js` | | uses --expose-internals and imports node:internal/modules/esm/get_format | 1 | `es-module/test-esm-url-extname.js` | | uses --expose-internals and internal/errors formatList | 1 | `parallel/test-error-format-list.js` | | uses --expose-internals and internal/http2/util | 1 | `parallel/test-http2-misbehaving-multiplex.js` | @@ -1838,31 +2222,16 @@ _No entries._ ## Config Hygiene -21 non-runnable entries are missing a reason. +6 non-runnable entries are missing a reason.
Entries missing reasons - `parallel/test-cli-node-options-disallowed.js` (Node.js internals) -- `parallel/test-crypto-prime.js#block_00_block_00` (Node.js internals) -- `parallel/test-crypto-prime.js#block_01_block_01` (Node.js internals) -- `parallel/test-crypto-prime.js#block_02_block_02` (Node.js internals) -- `parallel/test-crypto-prime.js#block_03_block_03` (Node.js internals) -- `parallel/test-crypto-prime.js#block_04_block_04` (Node.js internals) -- `parallel/test-crypto-prime.js#block_05_block_05` (Node.js internals) -- `parallel/test-crypto-prime.js#block_06_block_06` (Node.js internals) -- `parallel/test-crypto-prime.js#block_07_block_07` (Node.js internals) -- `parallel/test-crypto-prime.js#block_08_block_08` (Node.js internals) - `parallel/test-fs-syncwritestream.js` (Node.js internals) - `parallel/test-fs-watch-abort-signal.js#block_00_block_00` (Node.js internals) - `parallel/test-fs-watch-abort-signal.js#block_01_block_01` (Node.js internals) - `parallel/test-webcrypto-derivebits.js#block_01_test_hkdf_bit_derivation` (Node.js internals) - `parallel/test-webcrypto-derivebits.js#block_02_test_pbkdf2_bit_derivation` (Node.js internals) -- `parallel/test-webcrypto-derivekey.js#block_01_test_hkdf_key_derivation` (Node.js internals) -- `parallel/test-webcrypto-derivekey.js#block_02_test_pbkdf2_key_derivation` (Node.js internals) -- `parallel/test-webcrypto-derivekey.js#block_04_block_04` (Node.js internals) -- `sequential/test-crypto-timing-safe-equal.js#block_00_block_00` (Node.js internals) -- `sequential/test-crypto-timing-safe-equal.js#block_01_block_01` (Node.js internals) -- `sequential/test-crypto-timing-safe-equal.js#block_02_block_02` (Node.js internals)
diff --git a/tests/node_compat/target-selection.md b/tests/node_compat/target-selection.md index 937d81d59..1e000593a 100644 --- a/tests/node_compat/target-selection.md +++ b/tests/node_compat/target-selection.md @@ -1,9 +1,11 @@ # Node.js target selection (NJ-01, GOL-1946) **Status:** Node.js 26.13.1 with npm 11.20.0 is the selected target for NJ-02 (GOL-1947), -compared against Node.js 24.22.3. The harness, CI and runtime remain pinned to 22.14.0 until -NJ-02 switches them. This record is a qualification result, not implemented runtime support. -The runtime still reports `process.version` `v22.0.0`. +compared against Node.js 24.22.3. This record is a qualification result, not implemented runtime +support. NJ-02 has since switched the `node_compat` suite and the runtime's `process` version +metadata to 26.13.1; its 22.14.0 baseline audit is kept with +[pull request #218](https://github.com/golemcloud/wasm-rquickjs/pull/218). Host Node.js and npm pins +are still 22.14.0 and 10.9.2. No material blocker to Node 26 was found, and it is supported one year longer than Node 24 (end of life 2029-04-30 against 2028-04-30). @@ -111,7 +113,8 @@ The 75 Node 26-only cases break down as follows: coverage: `assert.CallTracker` (10), multi-argument `assert.fail` (5), `fs.rmdir` with `recursive` (10), keygen `hash`/`mgf1Hash` (2), dgram deprecations (1), FileHandle close on GC (1), and `_stream_*` aliases (1). -- 11 are `test-trace-events-*` tests that moved to `test/trace_events/`, which is not vendored. +- 11 are `test-trace-events-*` tests that moved to `test/trace_events/`, which was not vendored + at qualification time. It is vendored now, and all 11 replacements pass as runnable. - 3 are sqlite tests renamed by "sqlite: rename DatabaseSync and StatementSync" (`f2b698f1cf`). - 8 are renamed-unmapped. - 23 are failing cases in 20 files: stream 6, crypto/webcrypto 6, buffer 2, sqlite 2, and one each @@ -317,6 +320,8 @@ All of this is required for either target unless marked "26 only". 4. **Vendoring.** Vendor `test/sqlite/`, which `test-sqlite*.js` now load as `../sqlite/next-db.js`, and copy it in `setup_node_compat_test_files`. `test/sea/` and `test/trace_events/` (26 only) are where moved tests now live; vendor them only if those cases stay classified. + `test/sqlite/` and `test/trace_events/` vendoring and copying are in place, including the + `common/trace_events.js` helper; `test/sea/` is still open. 5. **Shim helpers.** - Both targets need `hasFIPS` and `isBoringSSL` in `common-shim/crypto.js`, plus `hasInspector`, `hasSQLite`, `skipIfSQLiteMissing`, `expectRequireStack`, @@ -324,6 +329,8 @@ All of this is required for either target unless marked "26 only". - 26 only: `hasFFI`, `skipIfFFIMissing`, `hasPerfetto`, `skipIfPerfettoEnabled`/`Disabled`, `hasDtls`, `hasQuic`, `hasLocalStorage`, `hasTemporal`, `hasFullICU` and `hasV8Sandbox`. - Export them from `index.mjs` too. + - These helpers are in place. Capability flags report what the component provides, because + `common.skip()` counts as a pass; `hasSQLite` probes `node:sqlite`. 6. **Mapping review.** Review the renamed-unmapped (63), now-ignored (38) and removed (85) rows in the mapping file. Where a subtest of an `--expose-internals` file such as `test-stream-finished.js` uses only public API, give it an explicit `runnable` category rather @@ -353,7 +360,10 @@ All of this is required for either target unless marked "26 only". 1. Create a fresh worktree, run `./tests/node_compat/vendor.sh 26.13.1`, and set `"nodeVersion": "26.13.1"`. -2. Apply harness item 2 first, then run `cargo test --test migrate_config_split`. +2. Harness items 2 and 3 are in place. Run + `cargo test --test migrate_config_split -- --exact migrate_config_split` with + `NODE_COMPAT_MIGRATION_PREVIOUS_SUITE` set to a copy of the 22.14.0 suite, and map every + entry in its review report (see the [README](README.md#migrating-the-config-after-re-vendoring)). 3. Keep each 22.14.0 category. New files start as `unevaluated`; they are not part of the restored baseline. 4. Map every 22.14.0 passing case using the mapping file: diff --git a/tests/node_compat/vendor.sh b/tests/node_compat/vendor.sh index ecf011f8d..b83f2d6d6 100755 --- a/tests/node_compat/vendor.sh +++ b/tests/node_compat/vendor.sh @@ -6,11 +6,11 @@ # # If no version is specified, defaults to the version in NODE_VERSION below. # The script sparse-checkouts test/parallel/, test/sequential/, test/es-module/, -# test/common/, and test/fixtures/ from the nodejs/node repository at the given tag. +# test/common/, test/fixtures/, test/sqlite/, and test/trace_events/ from the nodejs/node repository at the given tag. set -euo pipefail -NODE_VERSION="${1:-22.14.0}" +NODE_VERSION="${1:-26.13.1}" TAG="v${NODE_VERSION}" SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" SUITE_DIR="${SCRIPT_DIR}/suite" @@ -21,7 +21,7 @@ echo "==> Vendoring Node.js ${TAG} test suite into ${SUITE_DIR}" rm -rf "${SUITE_DIR}" mkdir -p "${SUITE_DIR}" -# Clone with sparse checkout — test/parallel, test/common, and test/fixtures +# Clone with sparse checkout TMPDIR_CLONE="$(mktemp -d)" trap 'rm -rf "${TMPDIR_CLONE}"' EXIT @@ -31,7 +31,7 @@ git clone --depth 1 --sparse --branch "${TAG}" --single-branch \ https://github.com/nodejs/node.git "${TMPDIR_CLONE}/node" cd "${TMPDIR_CLONE}/node" -git sparse-checkout set test/parallel test/sequential test/es-module test/common test/fixtures +git sparse-checkout set test/parallel test/sequential test/es-module test/common test/fixtures test/sqlite test/trace_events echo "==> Copying test files..." cp -r test/parallel "${SUITE_DIR}/parallel" @@ -39,6 +39,12 @@ cp -r test/sequential "${SUITE_DIR}/sequential" cp -r test/es-module "${SUITE_DIR}/es-module" cp -r test/common "${SUITE_DIR}/common" cp -r test/fixtures "${SUITE_DIR}/fixtures" +# Newer test-sqlite*.js files load shared helpers such as ../sqlite/next-db.js. +cp -r test/sqlite "${SUITE_DIR}/sqlite" +# Node 26 moved the test-trace-events-*.js files from parallel/ to trace_events/; older tags lack it. +if [ -d test/trace_events ]; then + cp -r test/trace_events "${SUITE_DIR}/trace_events" +fi # Record the version echo "${NODE_VERSION}" > "${SUITE_DIR}/NODE_VERSION" diff --git a/tests/node_compat_config_report.rs b/tests/node_compat_config_report.rs index c540888dc..a9564b46b 100644 --- a/tests/node_compat_config_report.rs +++ b/tests/node_compat_config_report.rs @@ -199,14 +199,29 @@ fn node_compat_config_requires_source_for_implicit_classification() -> anyhow::R fixture.write_suite_version("22.14.0")?; let error = fixture.load().unwrap_err(); assert!( - error - .to_string() - .contains("cannot classify node-compat entry"), + error.to_string().contains("no vendored source"), "{error:#}" ); Ok(()) } +#[test] +#[test_r::tag(report_contract)] +fn node_compat_config_requires_source_for_classified_entries() -> anyhow::Result<()> { + let fixture = NodeCompatConfigFixture::with_tests( + r#"{"parallel/test-internal.js": {"category": "known-gap", "reason": "gap"}}"#, + )?; + fixture.write_suite_version("22.14.0")?; + let error = fixture.load().unwrap_err(); + assert!( + error.to_string().contains("parallel/test-internal.js"), + "{error:#}" + ); + fixture.write_source("'use strict';\n")?; + assert_eq!(fixture.load()?[0].category, NodeCompatCategory::KnownGap); + Ok(()) +} + #[test] #[test_r::tag(report_contract)] fn node_compat_config_classifies_from_vendored_source() -> anyhow::Result<()> { @@ -219,6 +234,51 @@ fn node_compat_config_classifies_from_vendored_source() -> anyhow::Result<()> { Ok(()) } +#[test] +#[test_r::tag(report_contract)] +fn historical_public_subtests_remain_in_primary_inventory() -> anyhow::Result<()> { + let entries = load_node_compat_config(CONFIG_PATH)?; + for (path, indices) in [ + ("parallel/test-util-deprecate.js", &[0, 1, 2][..]), + ( + "parallel/test-stream-finished.js", + &[ + 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 36, 37, 38, 39, 40, 41, + ][..], + ), + ] { + let entry = entries.iter().find(|entry| entry.path == path).unwrap(); + for index in indices { + let subtest = entry + .subtests + .iter() + .find(|subtest| subtest.index == *index) + .unwrap(); + assert!( + matches!( + subtest.category, + NodeCompatCategory::Runnable | NodeCompatCategory::KnownGap + ), + "{path}#{} lost its public coverage obligation: {:?}", + subtest.name, + subtest.category + ); + if subtest.category == NodeCompatCategory::KnownGap { + assert!( + subtest + .reason + .as_deref() + .is_some_and(|reason| !reason.is_empty()), + "{path}#{} needs a per-cause gap reason", + subtest.name + ); + } + } + } + Ok(()) +} + struct NodeCompatConfigFixture { _temp: Utf8TempDir, config_path: camino::Utf8PathBuf, @@ -235,14 +295,17 @@ impl NodeCompatConfigFixture { } fn create(with_implicit_entry: bool) -> anyhow::Result { - let temp = Utf8TempDir::new()?; - let config_path = temp.path().join("config.jsonc"); - let suite_root = temp.path().join("suite"); - let tests = if with_implicit_entry { + Self::with_tests(if with_implicit_entry { r#"{"parallel/test-internal.js": {}}"# } else { "{}" - }; + }) + } + + fn with_tests(tests: &str) -> anyhow::Result { + let temp = Utf8TempDir::new()?; + let config_path = temp.path().join("config.jsonc"); + let suite_root = temp.path().join("suite"); fs::write( &config_path, format!(r#"{{"nodeVersion": "22.14.0", "tests": {tests}}}"#), diff --git a/tests/node_modules_apps/apps/module-interop/test-18-cjs-lexer-helper-reexports.mjs b/tests/node_modules_apps/apps/module-interop/test-18-cjs-lexer-helper-reexports.mjs index 989229105..1191a1afd 100644 --- a/tests/node_modules_apps/apps/module-interop/test-18-cjs-lexer-helper-reexports.mjs +++ b/tests/node_modules_apps/apps/module-interop/test-18-cjs-lexer-helper-reexports.mjs @@ -25,7 +25,13 @@ export const run = () => { assert.strictEqual(packageBeta, 'pkg-beta'); assert.strictEqual(packageReexportDefault.alpha, 'pkg-alpha'); assert.strictEqual(packageReexportDefault['runtime-only'], 'pkg-runtime-only'); - assert.deepStrictEqual(Object.keys(packageReexportNs).sort(), ['alpha', 'beta', 'default']); + // Node 23+ adds a 'module.exports' export to CommonJS namespaces. The raw test runs on the + // host baseline Node and in the runtime target, so expect the exact keys of the running Node. + const nodeMajor = Number(process.versions.node.split('.')[0]); + assert.deepStrictEqual( + Object.keys(packageReexportNs).sort(), + nodeMajor >= 23 ? ['alpha', 'beta', 'default', 'module.exports'] : ['alpha', 'beta', 'default'], + ); assert.strictEqual(negativeNs.default.depNested, 'dep-nested'); assert.strictEqual(negativeNs.default.depDynamic, 'dep-dynamic'); diff --git a/tests/runtime/assert.rs b/tests/runtime/assert.rs index 67f01ec6b..124cd4d7e 100644 --- a/tests/runtime/assert.rs +++ b/tests/runtime/assert.rs @@ -188,3 +188,20 @@ async fn assert_test_eval_generated_message( assert_eq!(r, Some(Val::Bool(true))); Ok(()) } + +#[test] +async fn assert_test_subtest_after_each_once( + #[tagged_as("assert")] compiled_test: &CompiledTest, +) -> anyhow::Result<()> { + let (r, output) = invoke_and_capture_output( + compiled_test.wasm_path(), + None, + "test-subtest-after-each-once", + &[], + ) + .await; + let r = r?; + println!("Output:\n{}", output); + assert_eq!(r, Some(Val::Bool(true))); + Ok(()) +} diff --git a/tests/runtime/crypto.rs b/tests/runtime/crypto.rs index 7a136ceea..6043eb473 100644 --- a/tests/runtime/crypto.rs +++ b/tests/runtime/crypto.rs @@ -12,6 +12,17 @@ async fn compiled_crypto() -> CompiledTest { .expect("Failed to compile crypto") } +#[test_dep(tagged_as = "crypto_normal", scope = Cloneable)] +async fn compiled_crypto_normal() -> CompiledTest { + CompiledTest::new_with_features( + Utf8Path::new("examples/runtime/crypto"), + true, + FeatureCombination::Normal, + ) + .await + .expect("Failed to compile normal crypto") +} + #[test] async fn web_crypto_random_uuid( #[tagged_as("crypto")] compiled: &CompiledTest, @@ -1055,6 +1066,109 @@ async fn crypto_subtle_sign_verify_rsa_pss( } } +/// Error contracts of AEAD decryption, key encoding options, crypto argument validation, one-shot sign/verify +/// key type checks, option resolution, callback delivery and DH peer key limits, as Node.js 26.13.1 reports them. +#[test] +async fn crypto_error_contracts( + #[tagged_as("crypto")] compiled: &CompiledTest, +) -> anyhow::Result<()> { + let (result, _output) = + invoke_and_capture_output(compiled.wasm_path(), None, "crypto-error-contracts", &[]).await; + + let lines = match result? { + Some(Val::List(vals)) => vals + .into_iter() + .map(|v| match v { + Val::String(s) => Ok(s), + other => Err(anyhow!("Expected string, got {other:?}")), + }) + .collect::>>()?, + _ => return Err(anyhow!("Expected list result")), + }; + let expected = [ + "gcm tampered tag: Error undefined Unsupported state or unable to authenticate data", + "gcm missing tag: Error undefined Unsupported state or unable to authenticate data", + "chacha20-poly1305 tampered tag: Error undefined Unsupported state or unable to authenticate data", + "public pkcs8: TypeError ERR_INVALID_ARG_VALUE The property 'options.type' is invalid. Received 'pkcs8'", + "public without format: TypeError ERR_INVALID_ARG_VALUE The property 'options.format' is invalid. Received undefined", + "public spki ignores cipher: ok -----BEGIN PUBLIC KEY-----", + "private without type: TypeError ERR_INVALID_ARG_VALUE The property 'options.type' is invalid. Received undefined", + "private passphrase without cipher: TypeError ERR_INVALID_ARG_VALUE The property 'options.cipher' is required when a passphrase is specified. Received undefined", + "private der pkcs1 encrypted: Error ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS The selected key encoding pkcs1 does not support encryption.", + "private unknown cipher: Error ERR_CRYPTO_UNKNOWN_CIPHER Unknown cipher", + "private pem pkcs8 encrypted: ok -----BEGIN ENCRYPTED PRIVATE KEY-----", + "ed25519 public pkcs1: Error ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS The selected key encoding pkcs1 can only be used for RSA keys.", + "ed25519 private sec1: Error ERR_CRYPTO_INCOMPATIBLE_KEY_OPTIONS The selected key encoding sec1 can only be used for EC keys.", + "keygen passphrase without cipher: TypeError ERR_INVALID_ARG_VALUE The property 'options.privateKeyEncoding.cipher' is required when a passphrase is specified. Received undefined", + "keygen public pkcs8: TypeError ERR_INVALID_ARG_VALUE The property 'options.publicKeyEncoding.type' is invalid. Received 'pkcs8'", + "createPrivateKey der spki: TypeError ERR_INVALID_ARG_VALUE The property 'key.type' is invalid. Received 'spki'", + "gcm implicit 12-byte tag: TypeError ERR_CRYPTO_INVALID_AUTH_TAG Invalid authentication tag length: 12", + "gcm authTagLength 12-byte tag: ok set", + "hkdfSync info with fake byteLength: RangeError ERR_OUT_OF_RANGE The value of \"info\" is out of range. It must be must not contain more than 1024 bytes. Received 2048", + "cipher output encoding change: TypeError ERR_INVALID_ARG_VALUE The argument 'outputEncoding' cannot be changed from 'utf8'. Received 'hex'", + "generateKeyPair Ed25519: TypeError ERR_INVALID_ARG_VALUE The argument 'type' must be a supported key type. Received 'Ed25519'", + "generateKeyPair toString: TypeError ERR_INVALID_ARG_VALUE The argument 'type' must be a supported key type. Received 'toString'", + "sign digest too big for key: callback Error ERR_OSSL_RSA_DIGEST_TOO_BIG_FOR_RSA_KEY", + "verify with x25519 key: callback Error ERR_OSSL_EVP_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE", + "sign invalid padding: throws TypeError ERR_INVALID_ARG_VALUE", + "verify mismatching signature: callback ok false", + "sign with public KeyObject: throws TypeError ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE", + "sign with nested secret KeyObject: throws TypeError ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE", + "verify with secret KeyObject: throws TypeError ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE", + "verify with nested private KeyObject: callback ok true", + "sign inherited PSS options: callback ok pkcs1=false pss=true", + "sign non-enumerable PSS options: callback ok pkcs1=false pss=true", + "sign default padding: callback ok pkcs1=true pss=false", + "verify inherited PSS options: callback ok true", + "verify PSS signature with default padding: callback ok false", + "DH computeSecret(1): RangeError ERR_CRYPTO_INVALID_KEYLEN Supplied key is too small", + "DH computeSecret(p - 1): RangeError ERR_CRYPTO_INVALID_KEYLEN Supplied key is too large", + ]; + assert_eq!(lines, expected); + Ok(()) +} + +/// WebCrypto getRandomValues, key usage/algorithm and HMAC import/JWK error contracts, as Node.js 26.13.1 reports them. +#[test] +async fn webcrypto_error_contracts( + #[tagged_as("crypto")] compiled: &CompiledTest, +) -> anyhow::Result<()> { + let (result, _output) = + invoke_and_capture_output(compiled.wasm_path(), None, "webcrypto-error-contracts", &[]) + .await; + + let lines = match result? { + Some(Val::List(vals)) => vals + .into_iter() + .map(|v| match v { + Val::String(s) => Ok(s), + other => Err(anyhow!("Expected string, got {other:?}")), + }) + .collect::>>()?, + _ => return Err(anyhow!("Expected list result")), + }; + let expected = [ + "getRandomValues(): TypeError ERR_MISSING_ARGS Failed to execute 'getRandomValues' on 'Crypto': 1 argument required, but only 0 present.", + "getRandomValues(ArrayBuffer): TypeError ERR_INVALID_ARG_TYPE Failed to execute 'getRandomValues' on 'Crypto': 1st argument is not an ArrayBufferView.", + "getRandomValues(Float32Array): TypeMismatchError 17 The data argument must be an integer-type TypedArray", + "getRandomValues(65537 bytes): QuotaExceededError 22 The requested length exceeds 65,536 bytes", + "encrypt without usage: InvalidAccessError 15 Unable to use this key to encrypt", + "decrypt without usage: InvalidAccessError 15 Unable to use this key to decrypt", + "decrypt wrong algorithm without usage: InvalidAccessError 15 Key algorithm mismatch", + "verify without usage: InvalidAccessError 15 Unable to use this key to verify", + "wrapKey without usage: InvalidAccessError 15 Unable to use this key to wrapKey", + "HMAC usage deriveBits: SyntaxError 12 Unsupported key usage for HMAC key", + "HMAC length 0: DataError 0 HmacImportParams.length cannot be 0", + "HMAC length 384: DataError 0 Invalid key length", + "HMAC SHA-256 jwk alg: HS256", + "HMAC jwk alg HS384: DataError 0 JWK \"alg\" does not match the requested algorithm", + "HMAC jwk without alg: ok 256", + "HMAC SHA3-256 jwk alg: undefined", + ]; + assert_eq!(lines, expected); + Ok(()) +} + #[test] async fn crypto_x25519_agreement( #[tagged_as("crypto")] compiled: &CompiledTest, @@ -1095,6 +1209,19 @@ async fn crypto_p521_key_pair( return Err(anyhow!("Expected string result")); }; let actual: serde_json::Value = serde_json::from_str(&json)?; + // Raw-import observations match Node.js 26.13.1, with points checked against SEC 2. + let raw_imports = serde_json::json!({ + "one": {"x": true, "y": true, "d": true, "raw": true}, + "orderMinusOne": {"x": true, "y": true, "d": true, "raw": true}, + "orderPlusOne": {"x": true, "y": true, "d": true, "raw": true}, + "largePlusOne": {"x": true, "y": true, "d": true, "raw": true}, + "largeMinusOne": {"x": true, "y": true, "d": true, "raw": true}, + "length0": "TypeError ERR_INVALID_ARG_VALUE", + "length1": "TypeError ERR_INVALID_ARG_VALUE", + "length65": "TypeError ERR_INVALID_ARG_VALUE", + "length67": "TypeError ERR_INVALID_ARG_VALUE", + "length6600": "TypeError ERR_INVALID_ARG_VALUE", + }); assert_eq!( actual, serde_json::json!({ @@ -1104,6 +1231,40 @@ async fn crypto_p521_key_pair( "scalarInRange": true, "publicIsScalarTimesGenerator": true, "privateCarriesPublic": true, + "exportRoundTrips": [true, true, true, true], + "rawImports": {"P-521": raw_imports, "secp521r1": raw_imports}, + }) + ); + Ok(()) +} + +#[test] +async fn crypto_p521_raw_import_without_backend( + #[tagged_as("crypto_normal")] compiled: &CompiledTest, +) -> anyhow::Result<()> { + let (result, _output) = + invoke_and_capture_output(compiled.wasm_path(), None, "p521-key-pair", &[]).await; + let Some(Val::String(json)) = result? else { + return Err(anyhow!("Expected string result")); + }; + let actual: serde_json::Value = serde_json::from_str(&json)?; + // Valid scalars lack a backend, while bad lengths still fail input validation. + let raw_imports = serde_json::json!({ + "one": "Error ERR_CRYPTO_INVALID_CURVE", + "orderMinusOne": "Error ERR_CRYPTO_INVALID_CURVE", + "orderPlusOne": "Error ERR_CRYPTO_INVALID_CURVE", + "largePlusOne": "Error ERR_CRYPTO_INVALID_CURVE", + "largeMinusOne": "Error ERR_CRYPTO_INVALID_CURVE", + "length0": "TypeError ERR_INVALID_ARG_VALUE", + "length1": "TypeError ERR_INVALID_ARG_VALUE", + "length65": "TypeError ERR_INVALID_ARG_VALUE", + "length67": "TypeError ERR_INVALID_ARG_VALUE", + "length6600": "TypeError ERR_INVALID_ARG_VALUE", + }); + assert_eq!( + actual, + serde_json::json!({ + "rawImports": {"P-521": raw_imports, "secp521r1": raw_imports}, }) ); Ok(()) @@ -1331,6 +1492,8 @@ async fn crypto_dsa_encoding_forms( "der": true, "derExplicit": true, "p1363": true, + "p1363Callback": true, + "p1363AlteredCallback": false, "p1363AsDer": false, "derAsP1363": false, "p1363OtherMessage": false, @@ -1339,7 +1502,19 @@ async fn crypto_dsa_encoding_forms( "p1363Zero": false, "p1363AllOnes": false, }); - let own = |length: u64| serde_json::json!({ "length": length, "p1363": true, "asDer": false, "streaming": true }); + let own = |length: u64| { + serde_json::json!({ + "length": length, + "p1363": true, + "asDer": false, + "streaming": true, + "callbackLength": length, + "callbackSignature": true, + "directKeyCallbackLength": length, + "invalidSignCallback": "err:ERR_INVALID_ARG_VALUE", + "invalidVerifyCallback": "err:ERR_INVALID_ARG_VALUE", + }) + }; let web = |length: u64| { serde_json::json!({ "hostSignature": true, diff --git a/tests/runtime/dns.rs b/tests/runtime/dns.rs index e9ce488d1..218a66ce6 100644 --- a/tests/runtime/dns.rs +++ b/tests/runtime/dns.rs @@ -127,7 +127,7 @@ async fn dns_module_api(#[tagged_as("dns")] compiled: &CompiledTest) -> anyhow:: ); assert!( result_obj["nullHostname"].as_bool().unwrap_or(false), - "lookup('') should return null address with IPv4 family" + "lookup('') should throw ERR_INVALID_ARG_VALUE" ); assert!( result_obj["lookupAll"].as_bool().unwrap_or(false), diff --git a/tests/runtime/fetch.rs b/tests/runtime/fetch.rs index 819342c36..6bdc05f9d 100644 --- a/tests/runtime/fetch.rs +++ b/tests/runtime/fetch.rs @@ -150,7 +150,7 @@ async fn fetch_post_and_get_as_array_buffer( assert_eq!( output, - "fetch test 2\nResponse body as ArrayBuffer: ArrayBuffer {\n [Uint8Contents]: <7b 22 69 64 22 3a 30 2c 22 75 73 65 72 49 64 22 3a 31 2c 22 74 69 74 6c 65 22 3a 22 66 6f 6f 22 2c 22 62 6f 64 79 22 3a 22 62 61 72 22 2c 22 63 6f 6d 70 6c 65 74 65 64 22 3a 66 61 6c 73 65 7d>,\n byteLength: 64\n}\n" + "fetch test 2\nResponse body as ArrayBuffer: ArrayBuffer {\n [Uint8Contents]: <7b 22 69 64 22 3a 30 2c 22 75 73 65 72 49 64 22 3a 31 2c 22 74 69 74 6c 65 22 3a 22 66 6f 6f 22 2c 22 62 6f 64 79 22 3a 22 62 61 72 22 2c 22 63 6f 6d 70 6c 65 74 65 64 22 3a 66 61 6c 73 65 7d>,\n [byteLength]: 64\n}\n" ); Ok(()) diff --git a/tests/runtime/sqlite.rs b/tests/runtime/sqlite.rs index 07be7d438..e5234207b 100644 --- a/tests/runtime/sqlite.rs +++ b/tests/runtime/sqlite.rs @@ -196,3 +196,43 @@ async fn sqlite_test_memory_roundtrip_unoptimized( assert_eq!(r, Some(Val::Bool(true))); Ok(()) } + +#[test] +async fn sqlite_test_prepare_options( + #[tagged_as("sqlite")] compiled_test: &CompiledTest, +) -> anyhow::Result<()> { + let (r, output) = + invoke_and_capture_output(compiled_test.wasm_path(), None, "test-prepare-options", &[]) + .await; + println!("Output:\n{}", output); + assert_eq!(r?, Some(Val::Bool(true))); + Ok(()) +} + +#[test] +async fn sqlite_test_transaction_state( + #[tagged_as("sqlite")] compiled_test: &CompiledTest, +) -> anyhow::Result<()> { + let (r, output) = invoke_and_capture_output( + compiled_test.wasm_path(), + None, + "test-transaction-state", + &[], + ) + .await; + println!("Output:\n{}", output); + assert_eq!(r?, Some(Val::Bool(true))); + Ok(()) +} + +#[test] +async fn sqlite_test_number_binding( + #[tagged_as("sqlite")] compiled_test: &CompiledTest, +) -> anyhow::Result<()> { + let (r, output) = + invoke_and_capture_output(compiled_test.wasm_path(), None, "test-number-binding", &[]) + .await; + println!("Output:\n{}", output); + assert_eq!(r?, Some(Val::Bool(true))); + Ok(()) +} diff --git a/tests/runtime/streams.rs b/tests/runtime/streams.rs index f7eb99b27..27ecf8675 100644 --- a/tests/runtime/streams.rs +++ b/tests/runtime/streams.rs @@ -154,3 +154,18 @@ async fn duplex_from_web(#[tagged_as("streams")] compiled: &CompiledTest) -> any assert_eq!(r, Some(Val::String("echo:hello".to_string()))); Ok(()) } + +#[test] +async fn readable_stream_from_iterator( + #[tagged_as("streams")] compiled: &CompiledTest, +) -> anyhow::Result<()> { + let (r, output) = invoke_and_capture_output( + compiled.wasm_path(), + None, + "test-readable-stream-from-iterator", + &[], + ) + .await; + assert_eq!(r?, Some(Val::String("ok".to_string())), "{output}"); + Ok(()) +} diff --git a/tests/runtime/typescript_runtime.rs b/tests/runtime/typescript_runtime.rs index a2fa09ae2..7ba3a93ea 100644 --- a/tests/runtime/typescript_runtime.rs +++ b/tests/runtime/typescript_runtime.rs @@ -110,7 +110,7 @@ async fn strip_typescript_types_matches_node_contract( assert_eq!(report["rewriteImportedDefault"]["answer"], 42); assert_eq!( report["rewriteImportedKeys"], - serde_json::json!(["changed", "default"]) + serde_json::json!(["changed", "default", "module.exports"]) ); assert_eq!(report["rewriteImportedChangedIsUndefined"], true); assert_eq!(report["rewriteTransformCount"], 2);