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

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

Issue 1562893002: dart2js cps: Generate increment and compound operators. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Also compound string concatenation 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
Index: tests/compiler/dart2js/js_backend_cps_ir_codeUnitAt_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_codeUnitAt_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_codeUnitAt_test.dart
index 9e08249a7263737546e53e8f3a5a0aab40c03a8a..08563a722fa11a60db1fffeea3495a8c0f70f392 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_codeUnitAt_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_codeUnitAt_test.dart
@@ -43,7 +43,7 @@ main() {
}""",r"""
function(s) {
var v0 = s.length, sum = 0, i = 0;
- for (; i < v0; sum = sum + s.charCodeAt(i), i = i + 1)
+ for (; i < v0; sum += s.charCodeAt(i), ++i)
;
return sum;
}"""),

Powered by Google App Engine
This is Rietveld 408576698