test: remove unneeded flag check in test-vm-memleak
The `common` module checks that necessary flags are being used, so a check in the test itself is no longer necessary. PR-URL: https://github.com/nodejs/node/pull/34528 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
2c4f30deea
commit
2d2a812645
@ -29,11 +29,6 @@ const vm = require('vm');
|
||||
const start = Date.now();
|
||||
let maxMem = 0;
|
||||
|
||||
const ok = process.execArgv.some(function(arg) {
|
||||
return arg === '--max_old_space_size=32';
|
||||
});
|
||||
assert(ok, 'Run this test with --max_old_space_size=32.');
|
||||
|
||||
const interval = setInterval(function() {
|
||||
try {
|
||||
vm.runInNewContext('throw 1;');
|
||||
|
Loading…
x
Reference in New Issue
Block a user