Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Unified Diff: tests/compiler/dart2js/cps_ir/expected/operators_4.js

Issue 1588813002: dart2js cps: Avoid comparing boolean values to boolean constants. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update expected output Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/cps_ir/expected/basic_10.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/cps_ir/expected/operators_4.js
diff --git a/tests/compiler/dart2js/cps_ir/expected/operators_4.js b/tests/compiler/dart2js/cps_ir/expected/operators_4.js
index f86a49098fff84a127297cde50654e0174e9c972..ccfc0a828dffef3b5bfb847fe6a543ecefb2b256 100644
--- a/tests/compiler/dart2js/cps_ir/expected/operators_4.js
+++ b/tests/compiler/dart2js/cps_ir/expected/operators_4.js
@@ -16,7 +16,7 @@ function() {
v0 = false;
} else
v0 = false;
- line = false === v0 ? "false" : String(v0);
+ line = v0 ? String(v0) : "false";
}
if (typeof dartPrint == "function")
dartPrint(line);
« no previous file with comments | « tests/compiler/dart2js/cps_ir/expected/basic_10.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698