src: remove --expose-http2 option

This commit removes the --expose-http2 option. In the code comment it
states that this should should be noop through v9.x, and it sounds like
it can be removed for 10.x and above.

PR-URL: https://github.com/nodejs/node/pull/20887
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Daniel Bevenius 2018-05-22 12:10:53 +02:00
parent 9a02de7084
commit 3294d1bf62
6 changed files with 4 additions and 9 deletions

View File

@ -7,7 +7,7 @@ const bench = common.createBenchmark(main, {
n: [1e3],
nheaders: [0, 10, 100, 1000],
benchmarker: ['h2load']
}, { flags: ['--no-warnings', '--expose-http2'] });
}, { flags: ['--no-warnings'] });
function main({ n, nheaders }) {
const http2 = require('http2');

View File

@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, {
streams: [100, 200, 1000],
clients: [1, 2],
benchmarker: ['h2load']
}, { flags: ['--no-warnings', '--expose-http2'] });
}, { flags: ['--no-warnings'] });
function main({ requests, streams, clients }) {
fs.open(file, 'r', (err, fd) => {

View File

@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
streams: [100, 200, 1000],
clients: [1, 2],
benchmarker: ['h2load']
}, { flags: ['--no-warnings', '--expose-http2'] });
}, { flags: ['--no-warnings'] });
function main({ requests, streams, clients }) {
const http2 = require('http2');

View File

@ -7,7 +7,7 @@ const bench = common.createBenchmark(main, {
length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024],
size: [100000],
benchmarker: ['h2load']
}, { flags: ['--no-warnings', '--expose-http2'] });
}, { flags: ['--no-warnings'] });
function main({ streams, length, size }) {
const http2 = require('http2');

View File

@ -3358,7 +3358,6 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
"--experimental-modules",
"--experimental-repl-await",
"--experimental-vm-modules",
"--expose-http2", // keep as a non-op through v9.x
"--force-fips",
"--icu-data-dir",
"--inspect",
@ -3608,9 +3607,6 @@ static void ParseArgs(int* argc,
} else if (strcmp(arg, "--expose-internals") == 0 ||
strcmp(arg, "--expose_internals") == 0) {
config_expose_internals = true;
} else if (strcmp(arg, "--expose-http2") == 0 ||
strcmp(arg, "--expose_http2") == 0) {
// Keep as a non-op through v9.x
} else if (strcmp(arg, "-") == 0) {
break;
} else if (strcmp(arg, "--") == 0) {

View File

@ -1,4 +1,3 @@
// Flags: --expose-http2
'use strict';
const common = require('../common');