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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_array.dart

Issue 11543017: Revert r16032: it revealed a bug in our bailout environment computation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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: sdk/lib/_internal/compiler/implementation/lib/js_array.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/lib/js_array.dart (revision 16033)
+++ sdk/lib/_internal/compiler/implementation/lib/js_array.dart (working copy)
@@ -181,10 +181,4 @@
checkGrowable(this, 'set length');
JS('void', r'#.length = #', this, newLength);
}
-
- E operator [](int index) {
- if (index is !int) throw new ArgumentError(index);
- if (index >= length || index < 0) throw new RangeError.value(index);
- return JS('var', '#[#]', this, index);
- }
}

Powered by Google App Engine
This is Rietveld 408576698