diff --git a/test/index.js b/test/index.js index 2d963ca10..35db3187b 100644 --- a/test/index.js +++ b/test/index.js @@ -4,7 +4,11 @@ const majorNodeVersion = process.versions.node.split('.')[0]; if (typeof global.gc !== 'function') { // Construct the correct (version-dependent) command-line args. - let args = ['--expose-gc', '--no-concurrent-array-buffer-freeing']; + let args = ['--expose-gc']; + const majorV8Version = process.versions.v8.split('.')[0]; + if (majorV8Version < 9) { + args.push('--no-concurrent-array-buffer-freeing'); + } if (majorNodeVersion >= 14) { args.push('--no-concurrent-array-buffer-sweeping'); }