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

Unified Diff: tests/language/state_mangling3_test.dart

Issue 11186048: Fix bad mangling of environment parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comments. Created 8 years, 2 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/language/state_mangling3_test.dart
diff --git a/tests/language/state_mangling_test.dart b/tests/language/state_mangling3_test.dart
similarity index 73%
copy from tests/language/state_mangling_test.dart
copy to tests/language/state_mangling3_test.dart
index 02df690ca51e966dc7f9395ebc47a5417bbbe578..195a2dd298066adc6bcf60a7e7cb641f475a60a1 100644
--- a/tests/language/state_mangling_test.dart
+++ b/tests/language/state_mangling3_test.dart
@@ -2,15 +2,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-foo(state) {
- if (state == null) return 0;
+foo(state0) {
+ if (state0 == null) return 0;
var sum = 0;
- for (int i = 0; i < state.length; i++) {
- sum += state[i];
+ for (int i = 0; i < state0.length; i++) {
+ sum += state0[i];
}
- state = inscrutableId(state);
- for (int i = 0; i < state.length; i++) {
- sum += state[i];
+ state0 = inscrutableId(state0);
+ for (int i = 0; i < state0.length; i++) {
+ sum += state0[i];
}
return sum;
}

Powered by Google App Engine
This is Rietveld 408576698