Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
fixup! buffer: mark pool ArrayBuffer as untransferable
  • Loading branch information
addaleax committed Apr 10, 2020
commit 46afefd8b0600667cf46e16a7fa2fca528ca0114
4 changes: 2 additions & 2 deletions test/parallel/test-buffer-pool-untransferable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
const common = require('../common');
require('../common');
const assert = require('assert');
const { MessageChannel } = require('worker_threads');

Expand All @@ -12,7 +12,7 @@ const b = Buffer.from('hello world');
assert.strictEqual(a.buffer, b.buffer);
const length = a.length;

const { port1, port2 } = new MessageChannel();
const { port1 } = new MessageChannel();
port1.postMessage(a, [ a.buffer ]);

// Verify that the pool ArrayBuffer has not actually been transfered:
Expand Down