Skip to content

Commit 3afeaaa

Browse files
cjihrigMylesBorins
authored andcommitted
test: define SharedArrayBuffer as a known global
This commit defines SharedArrayBuffer as a global for all tests, rather than adding comments to individual tests. PR-URL: #20849 Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent 32c3006 commit 3afeaaa

4 files changed

+1
-4
lines changed

test/.eslintrc.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ globals:
5151
WebAssembly: false
5252
BigInt64Array: false
5353
BigUint64Array: false
54+
SharedArrayBuffer: false

test/parallel/test-buffer-sharedarraybuffer.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* global SharedArrayBuffer */
21
'use strict';
32

43
require('../common');

test/parallel/test-util-format-shared-arraybuffer.js

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22
require('../common');
33
const assert = require('assert');
44
const util = require('util');
5-
6-
/* global SharedArrayBuffer */
75
const sab = new SharedArrayBuffer(4);
86
assert.strictEqual(util.format(sab), 'SharedArrayBuffer { byteLength: 4 }');

test/parallel/test-util-types.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// Flags: --harmony-bigint --experimental-vm-modules
2-
/* global SharedArrayBuffer */
32
'use strict';
43
const common = require('../common');
54
const fixtures = require('../common/fixtures');

0 commit comments

Comments
 (0)