Index: sdk/lib/web_sql/dart2js/web_sql_dart2js.dart |
diff --git a/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart b/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart |
index 7af7f4511fe4ab3cc7da4bda53e1636fe23c0e73..6592ea87915f4b4bf0599fbe7780e6300cca6306 100644 |
--- a/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart |
+++ b/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart |
@@ -210,7 +210,7 @@ class SqlResultSet extends Interceptor { |
// http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist |
@Experimental() // deprecated |
@Native("SQLResultSetRowList") |
-class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableListMixin<Map> implements JavaScriptIndexingBehavior, List<Map> { |
+class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> { |
// To suppress missing implicit constructor warnings. |
factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); } |
@@ -222,7 +222,7 @@ class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList |
if (JS("bool", "# >>> 0 !== # || # >= #", index, |
index, index, length)) |
throw new RangeError.index(index, this); |
- return JS("Map", "#[#]", this, index); |
+ return this.item(index); |
} |
void operator[]=(int index, Map value) { |
throw new UnsupportedError("Cannot assign element of immutable List."); |
@@ -264,8 +264,13 @@ class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList |
@DomName('SQLResultSetRowList.item') |
@DocsEditable() |
- @Creates('=Object') |
- Object item(int index) native; |
+ Map item(int index) { |
+ return convertNativeToDart_Dictionary(_item_1(index)); |
+ } |
+ @JSName('item') |
+ @DomName('SQLResultSetRowList.item') |
+ @DocsEditable() |
+ _item_1(index) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |