Unverified Commit 6f5df21e authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

pass through --web-port in release mode too (#40465)

parent 3dcb961d
...@@ -288,6 +288,8 @@ class RunCommand extends RunCommandBase { ...@@ -288,6 +288,8 @@ class RunCommand extends RunCommandBase {
return DebuggingOptions.disabled( return DebuggingOptions.disabled(
buildInfo, buildInfo,
initializePlatform: argResults['web-initialize-platform'], initializePlatform: argResults['web-initialize-platform'],
hostname: featureFlags.isWebEnabled ? argResults['web-hostname'] : '',
port: featureFlags.isWebEnabled ? argResults['web-port'] : '',
); );
} else { } else {
return DebuggingOptions.enabled( return DebuggingOptions.enabled(
......
...@@ -494,7 +494,7 @@ class DebuggingOptions { ...@@ -494,7 +494,7 @@ class DebuggingOptions {
this.port, this.port,
}) : debuggingEnabled = true; }) : debuggingEnabled = true;
DebuggingOptions.disabled(this.buildInfo, { this.initializePlatform = true }) DebuggingOptions.disabled(this.buildInfo, { this.initializePlatform = true, this.port, this.hostname })
: debuggingEnabled = false, : debuggingEnabled = false,
useTestFonts = false, useTestFonts = false,
startPaused = false, startPaused = false,
...@@ -506,8 +506,6 @@ class DebuggingOptions { ...@@ -506,8 +506,6 @@ class DebuggingOptions {
traceSystrace = false, traceSystrace = false,
dumpSkpOnShaderCompilation = false, dumpSkpOnShaderCompilation = false,
verboseSystemLogs = false, verboseSystemLogs = false,
hostname = null,
port = null,
observatoryPort = null; observatoryPort = null;
final bool debuggingEnabled; final bool debuggingEnabled;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment