Skip to content

Commit f7ed249

Browse files
RaisinTenmhdawson
authored andcommitted
test: remove outdated V8 flag
The `--concurrent-array-buffer-freeing` flag is going to be removed upstream in V8 9.0. PR-URL: #895 Refs: v8/v8@0a480c3 Reviewed-By: Michael Dawson <[email protected]>
1 parent a575a6e commit f7ed249

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ const majorNodeVersion = process.versions.node.split('.')[0];
44

55
if (typeof global.gc !== 'function') {
66
// Construct the correct (version-dependent) command-line args.
7-
let args = ['--expose-gc', '--no-concurrent-array-buffer-freeing'];
7+
let args = ['--expose-gc'];
8+
const majorV8Version = process.versions.v8.split('.')[0];
9+
if (majorV8Version < 9) {
10+
args.push('--no-concurrent-array-buffer-freeing');
11+
}
812
if (majorNodeVersion >= 14) {
913
args.push('--no-concurrent-array-buffer-sweeping');
1014
}

0 commit comments

Comments
 (0)