mirror of https://github.com/nodejs/node.git
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
parent
f178c5a134
commit
5122456883
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue