feat: support dns-result-order Node.js cli flag (#39501)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
trop[bot]
2023-08-16 14:07:15 -04:00
committed by GitHub
parent 9dea18c1db
commit 04994de9e6
6 changed files with 185 additions and 3 deletions

View File

@@ -245,9 +245,13 @@ bool IsAllowedOption(base::StringPiece option) {
});
// This should be aligned with what's possible to set via the process object.
static constexpr auto options = base::MakeFixedFlatSet<base::StringPiece>(
{"--trace-warnings", "--trace-deprecation", "--throw-deprecation",
"--no-deprecation"});
static constexpr auto options = base::MakeFixedFlatSet<base::StringPiece>({
"--trace-warnings",
"--trace-deprecation",
"--throw-deprecation",
"--no-deprecation",
"--dns-result-order",
});
if (debug_options.contains(option))
return electron::fuses::IsNodeCliInspectEnabled();