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

This commit is contained in:
Jonah Williams
2019-09-13 19:15:52 -07:00
committed by GitHub
parent 3dcb961d11
commit 6f5df21e5b
2 changed files with 3 additions and 3 deletions

View File

@@ -288,6 +288,8 @@ class RunCommand extends RunCommandBase {
return DebuggingOptions.disabled(
buildInfo,
initializePlatform: argResults['web-initialize-platform'],
hostname: featureFlags.isWebEnabled ? argResults['web-hostname'] : '',
port: featureFlags.isWebEnabled ? argResults['web-port'] : '',
);
} else {
return DebuggingOptions.enabled(

View File

@@ -494,7 +494,7 @@ class DebuggingOptions {
this.port,
}) : debuggingEnabled = true;
DebuggingOptions.disabled(this.buildInfo, { this.initializePlatform = true })
DebuggingOptions.disabled(this.buildInfo, { this.initializePlatform = true, this.port, this.hostname })
: debuggingEnabled = false,
useTestFonts = false,
startPaused = false,
@@ -506,8 +506,6 @@ class DebuggingOptions {
traceSystrace = false,
dumpSkpOnShaderCompilation = false,
verboseSystemLogs = false,
hostname = null,
port = null,
observatoryPort = null;
final bool debuggingEnabled;