Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3afeaaa

Browse filesBrowse 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 <timothygu99@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent 32c3006 commit 3afeaaa
Copy full SHA for 3afeaaa

File tree

Expand file treeCollapse file tree

4 files changed

+1
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+1
-4
lines changed
Open diff view settings
Collapse file

‎test/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: test/.eslintrc.yaml
+1Lines changed: 1 addition & 0 deletions
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
Collapse file

‎test/parallel/test-buffer-sharedarraybuffer.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-buffer-sharedarraybuffer.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* global SharedArrayBuffer */
21
'use strict';
32

43
require('../common');
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-util-format-shared-arraybuffer.js
-2Lines changed: 0 additions & 2 deletions
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 }');
Collapse file

‎test/parallel/test-util-types.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-util-types.js
-1Lines changed: 0 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.