test: fix comment misspellings of transferred

PR-URL: https://github.com/nodejs/node/pull/36360
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
pull/36360/head
Rich Trott 2020-12-02 23:07:24 -08:00
parent f178c5a134
commit 5122456883
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ const { MessageChannel } = require('worker_threads');
const { buffer } = require(`./build/${common.buildType}/binding`);
// Test that buffers allocated with a free callback through our APIs are not
// transfered.
// transferred.
const { port1 } = new MessageChannel();
const origByteLength = buffer.byteLength;

View File

@ -15,6 +15,6 @@ const length = a.length;
const { port1 } = new MessageChannel();
port1.postMessage(a, [ a.buffer ]);
// Verify that the pool ArrayBuffer has not actually been transfered:
// Verify that the pool ArrayBuffer has not actually been transferred:
assert.strictEqual(a.buffer, b.buffer);
assert.strictEqual(a.length, length);