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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart

Issue 1276843008: dart2js cps: Change rewriting of equality operators. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update test + minor improvement in logical rewriter Created 5 years, 4 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
Index: tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
index 138e68446547196ae53442b8289a4d0b59c5a1dc..534db6334865eb6cf039eb6d6f1009ba81218c35 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_operators_test.dart
@@ -40,14 +40,14 @@ get foo => foo;
main() { print(foo && foo); }
""", """
function() {
- P.print(V.foo() ? !!P.identical(V.foo(), true) : false);
+ P.print(V.foo() ? V.foo() === true : false);
}"""),
const TestEntry("""
get foo => foo;
main() { print(foo || foo); }
""","""
function() {
- P.print(V.foo() ? true : !!P.identical(V.foo(), true));
+ P.print(V.foo() ? true : V.foo() === true);
}"""),
// Needs interceptor calling convention
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698