feat: support dns-result-order Node.js cli flag (#39376)
* feat: support dns-result-order Node.js cli flag * chore: update docs Co-authored-by: Erick Zhao <erick@hotmail.ca> * chore: remove patch --------- Co-authored-by: Erick Zhao <erick@hotmail.ca>
This commit is contained in:
parent
ef5d5f888d
commit
bee5d94886
4 changed files with 43 additions and 3 deletions
|
@ -244,9 +244,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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue