• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const common = require('../../common');
3const binding = require(`./build/${common.buildType}/binding`);
4const assert = require('assert');
5
6const arg = new SharedArrayBuffer(1);
7binding.runInSeparateIsolate('const arr = new Uint8Array(arg); arr[0] = 0x42;', arg);
8assert.deepStrictEqual(new Uint8Array(arg), new Uint8Array([0x42]));
9