Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/internal/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ function arrayBuffer(blob) {
return;
}
if (buffer !== undefined)
buffers.push(buffer);
buffers[buffers.length] = buffer;
queueMicrotask(() => readNext());
});
};
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/repl/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ function importDeclarationToScript(node) {
// `imported` is an Identifier or, for arbitrary module export names,
// a string Literal (`import { "a-b" as c }`).
const imported = spec.imported.name ?? spec.imported.value;
named.push(imported === spec.local.name ?
named[named.length] = imported === spec.local.name ?
imported :
`${JSONStringify(imported)}: ${spec.local.name}`);
`${JSONStringify(imported)}: ${spec.local.name}`;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/test_runner/reporter/junit.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ module.exports = async function* junitReporter(source) {
}
if (event.type === 'test:fail') {
const error = event.data.details?.error;
currentTest.children.push({
currentTest.children[currentTest.children.length] = {
__proto__: kEmptyObject,
nesting: event.data.nesting + 1,
tag: 'failure',
Expand All @@ -198,7 +198,7 @@ module.exports = async function* junitReporter(source) {
message: error?.message.trim() ?? '',
},
children: [inspectWithNoCustomRetry(error, inspectOptions)],
});
};
currentTest.failures = 1;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/test_runner/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ function runTestFile(path, filesWatcher, opts) {

try {
if (watchMode) {
stdio.push('ipc');
stdio[stdio.length] = 'ipc';
env.WATCH_REPORT_DEPENDENCIES = '1';
}
if (opts.root.harness.shouldColorizeTestFiles) {
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/test_runner/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ function formatLinesToRanges(values) {
if ((index > 0) && ((current - array[index - 1]) === 1)) {
prev[prev.length - 1][1] = current;
} else {
prev.push([current]);
prev[prev.length] = [current];
}
return prev;
}, []), (range) => ArrayPrototypeJoin(range, '-'));
Expand Down
6 changes: 3 additions & 3 deletions lib/internal/v8/startup_snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function addDeserializeCallbackImpl(callbacks, callback, data) {
setDeserializeCallback(runDeserializeCallbacks);
deserializeCallbackIsSet = true;
}
callbacks.push([callback, data]);
callbacks[callbacks.length] = [callback, data];
}

const serializeCallbacks = [];
Expand All @@ -90,11 +90,11 @@ function runSerializeCallbacks() {
function addSerializeCallback(callback, data) {
throwIfNotBuildingSnapshot();
validateFunction(callback, 'callback');
serializeCallbacks.push([callback, data]);
serializeCallbacks[serializeCallbacks.length] = [callback, data];
}

function addAfterUserSerializeCallback(callback, data) {
afterUserSerializeCallbacks.push([callback, data]);
afterUserSerializeCallbacks[afterUserSerializeCallbacks.length] = [callback, data];
}

function initializeCallbacks() {
Expand Down
Loading