mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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>
This commit is contained in:
1 parent
f178c5a134
commit
5122456883
2 files changed
+2
-2
No files matched your search
@@ -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);
|
||||
Reference in new issue
Block a user