Skip to content

Commit 20ed5e0

Browse files
sigmundchCommit Bot
authored and
Commit Bot
committed
[test_runner]: cleanup on Dart2jsCompilationCommand
Changes are: * remove case in createOutput, this is unreachable and now handled by the subclass * remove "|| true" - it was meant for debugging and I forgot to delete it. Change-Id: I32dbc34ec51c02c9f311fa1b3a246b3cb73db194 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/229380 Reviewed-by: Alexander Thomas <[email protected]>
1 parent 6f91770 commit 20ed5e0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/test_runner/lib/src/command.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,6 @@ class CompilationCommand extends ProcessCommand {
186186
if (displayName == 'precompiler' || displayName == 'app_jit') {
187187
return VMCommandOutput(
188188
this, exitCode, timedOut, stdout, stderr, time, pid);
189-
} else if (displayName == 'dart2js') {
190-
return Dart2jsCompilerCommandOutput(
191-
this, exitCode, timedOut, stdout, stderr, time, compilationSkipped);
192189
} else if (displayName == 'dartdevc') {
193190
return DevCompilerCommandOutput(this, exitCode, timedOut, stdout, stderr,
194191
time, compilationSkipped, pid);
@@ -263,7 +260,7 @@ class Dart2jsCompilationCommand extends CompilationCommand {
263260
int index = 0})
264261
: super("dart2js", outputFile, bootstrapDependencies, executable,
265262
arguments, environmentOverrides,
266-
alwaysCompile: alwaysCompile || true,
263+
alwaysCompile: alwaysCompile,
267264
workingDirectory: workingDirectory,
268265
index: index);
269266

0 commit comments

Comments
 (0)