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

Unified Diff: runtime/vm/object_test.cc

Issue 1661413002: Improve regenerated source code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object_test.cc
diff --git a/runtime/vm/object_test.cc b/runtime/vm/object_test.cc
index d681c08c821837cb78dfd05dadf23a11f6e8dd5b..8cc81eef9391a53a0f61dd816e5935f5ef3147dc 100644
--- a/runtime/vm/object_test.cc
+++ b/runtime/vm/object_test.cc
@@ -196,10 +196,16 @@ VM_TEST_CASE(GenerateExactSource) {
" static fly() { return 5; }\n"
" void catcher(x) {\n"
" try {\n"
- " if (x) {\n"
- " fly();\n"
+ " if (x is! List) {\n"
+ " for (int i = 0; i < x; i++) {\n"
+ " fly();\n"
+ " ++i;\n"
+ " }\n"
" } else {\n"
- " !fly();\n"
+ " for (int i = 0; i < x; i--) {\n"
+ " !fly();\n"
+ " --i;\n"
+ " }\n"
" }\n"
" } on Blah catch (a) {\n"
" _print(17);\n"
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698