From 61f87837a94a23f30234f6f1024ffd53d8e7b65d Mon Sep 17 00:00:00 2001 From: Malcolm White Date: Wed, 17 Jan 2018 14:16:13 -0600 Subject: [PATCH] test: remove test for shared array buffers transfer PR-URL: https://github.com/nodejs/node/pull/19201 Reviewed-By: Ali Ijaz Sheikh Reviewed-By: Myles Borins Reviewed-By: Matteo Collina Reviewed-By: Colin Ihrig --- .../test-v8-serdes-sharedarraybuffer.js | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 test/parallel/test-v8-serdes-sharedarraybuffer.js diff --git a/test/parallel/test-v8-serdes-sharedarraybuffer.js b/test/parallel/test-v8-serdes-sharedarraybuffer.js deleted file mode 100644 index 01db30818153b8..00000000000000 --- a/test/parallel/test-v8-serdes-sharedarraybuffer.js +++ /dev/null @@ -1,26 +0,0 @@ -/* global SharedArrayBuffer */ -'use strict'; - -const common = require('../common'); -const assert = require('assert'); -const v8 = require('v8'); - -{ - const sab = new SharedArrayBuffer(64); - const uint8array = new Uint8Array(sab); - const ID = 42; - - const ser = new v8.Serializer(); - ser._getSharedArrayBufferId = common.mustCall(() => ID); - ser.writeHeader(); - - ser.writeValue(uint8array); - - const des = new v8.Deserializer(ser.releaseBuffer()); - des.readHeader(); - des.transferArrayBuffer(ID, sab); - - const value = des.readValue(); - assert.strictEqual(value.buffer, sab); - assert.notStrictEqual(value, uint8array); -}