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

Unified Diff: sdk/lib/web_sql/dartium/web_sql_dartium.dart

Issue 12383073: Add List.insert. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use insertBefore and add is-check. Created 7 years, 9 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 | « sdk/lib/web_sql/dart2js/web_sql_dart2js.dart ('k') | tests/corelib/list_insert_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_sql/dartium/web_sql_dartium.dart
diff --git a/sdk/lib/web_sql/dartium/web_sql_dartium.dart b/sdk/lib/web_sql/dartium/web_sql_dartium.dart
index 80c44189e0e5c227e61326effcbb5e166675e878..0897782487018b6488e117819da5757c9762cedd 100644
--- a/sdk/lib/web_sql/dartium/web_sql_dartium.dart
+++ b/sdk/lib/web_sql/dartium/web_sql_dartium.dart
@@ -405,6 +405,10 @@ class SqlResultSetRowList extends NativeFieldWrapperClass1 implements List<Map>
Map max([int compare(Map a, Map b)]) =>
IterableMixinWorkaround.max(this, compare);
+ void insert(int index, Map element) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
Map removeAt(int pos) {
throw new UnsupportedError("Cannot remove from immutable List.");
}
« no previous file with comments | « sdk/lib/web_sql/dart2js/web_sql_dart2js.dart ('k') | tests/corelib/list_insert_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698