We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca09656 commit 5cb5422Copy full SHA for 5cb5422
test/common/index.js
@@ -82,7 +82,6 @@ function parseTestFlags(filename = process.argv[1]) {
82
}
83
return source
84
.substring(flagStart, flagEnd)
85
- .replace(/_/g, '-')
86
.split(/\s+/)
87
.filter(Boolean);
88
@@ -98,9 +97,8 @@ if (process.argv.length === 2 &&
98
97
require('cluster').isPrimary &&
99
fs.existsSync(process.argv[1])) {
100
const flags = parseTestFlags();
101
- const args = process.execArgv.map((arg) => arg.replace(/_/g, '-'));
102
for (const flag of flags) {
103
- if (!args.includes(flag) &&
+ if (!process.execArgv.includes(flag) &&
104
// If the binary is build without `intl` the inspect option is
105
// invalid. The test itself should handle this case.
106
(process.features.inspector || !flag.startsWith('--inspect'))) {
0 commit comments