From d7b9b9f8d75f2e6e57b529fe0db0ddeba1e9928f Mon Sep 17 00:00:00 2001 From: Ross McIlroy Date: Thu, 22 Jul 2021 21:50:41 +0100 Subject: [PATCH] test: remove test-v8-untrusted-code-mitigations Untrusted code mitigations have now been removed from V8. PR-URL: https://github.com/nodejs/node/pull/40178 Reviewed-By: Antoine du Hamel Reviewed-By: Jiawen Geng Reviewed-By: Colin Ihrig --- .../test-v8-untrusted-code-mitigations.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 test/parallel/test-v8-untrusted-code-mitigations.js diff --git a/test/parallel/test-v8-untrusted-code-mitigations.js b/test/parallel/test-v8-untrusted-code-mitigations.js deleted file mode 100644 index c9d89cd5a66e18..00000000000000 --- a/test/parallel/test-v8-untrusted-code-mitigations.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -require('../common'); -const assert = require('assert'); -const { execFileSync } = require('child_process'); - -// This test checks that untrusted code mitigations in V8 are disabled -// by default. - -const v8Options = execFileSync(process.execPath, ['--v8-options']).toString(); - -const untrustedFlag = v8Options.indexOf('--untrusted-code-mitigations'); -assert.notStrictEqual(untrustedFlag, -1); - -const nextFlag = v8Options.indexOf('--', untrustedFlag + 2); -const slice = v8Options.substring(untrustedFlag, nextFlag); - -assert(slice.match(/type: bool default: false/));