mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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 <duhamelantoine1995@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
1fd984581c
commit
d7b9b9f8d7
1 file changed
-18
@@ -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/));
|
||||
Reference in new issue
Block a user