| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 807e029600a49d559480093de7f018dfece441fa..3bb3ec27a797671c48c9f6109aa6f4a086238033 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -6952,7 +6952,7 @@ class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("String", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, String value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -9696,7 +9696,7 @@ class FileList extends Interceptor with ListMixin<File>, ImmutableListMixin<File
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("File", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, File value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -10574,7 +10574,7 @@ class HtmlAllCollection extends Interceptor with ListMixin<Node>, ImmutableListM
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("Node", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, Node value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -10645,7 +10645,7 @@ class HtmlCollection extends Interceptor with ListMixin<Node>, ImmutableListMixi
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("Node", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, Node value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -14381,7 +14381,7 @@ class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("MimeType", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, MimeType value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -15679,7 +15679,7 @@ class NodeList extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("Node", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, Node value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -16669,7 +16669,7 @@ class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("Plugin", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, Plugin value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -18350,7 +18350,7 @@ class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("SourceBuffer", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, SourceBuffer value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -18494,7 +18494,7 @@ class SpeechGrammarList extends Interceptor with ListMixin<SpeechGrammar>, Immut
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("SpeechGrammar", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, SpeechGrammar value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -20174,7 +20174,7 @@ class TextTrackCueList extends Interceptor with ListMixin<TextTrackCue>, Immutab
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("TextTrackCue", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, TextTrackCue value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -20243,7 +20243,7 @@ class TextTrackList extends EventTarget with ListMixin<TextTrack>, ImmutableList
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("TextTrack", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, TextTrack value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -20538,7 +20538,7 @@ class TouchList extends Interceptor with ListMixin<Touch>, ImmutableListMixin<To
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("Touch", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, Touch value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -22914,7 +22914,7 @@ class _ClientRectList extends Interceptor with ListMixin<Rect>, ImmutableListMix
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("Rect", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, Rect value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -22984,7 +22984,7 @@ class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("CssRule", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, CssRule value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -23045,7 +23045,7 @@ class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("_CSSValue", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, _CSSValue value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -23195,7 +23195,7 @@ class _EntryArray extends Interceptor with ListMixin<Entry>, ImmutableListMixin<
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("Entry", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, Entry value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -23256,7 +23256,7 @@ class _EntryArraySync extends Interceptor with ListMixin<_EntrySync>, ImmutableL
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("_EntrySync", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, _EntrySync value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -23360,7 +23360,7 @@ class _GamepadList extends Interceptor with ListMixin<Gamepad>, ImmutableListMix
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("Gamepad", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, Gamepad value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -23484,7 +23484,7 @@ class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("Node", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, Node value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -23634,7 +23634,7 @@ class _SpeechInputResultList extends Interceptor with ListMixin<SpeechInputResul
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("SpeechInputResult", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, SpeechInputResult value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -23695,7 +23695,7 @@ class _SpeechRecognitionResultList extends Interceptor with ListMixin<SpeechReco
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("SpeechRecognitionResult", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, SpeechRecognitionResult value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
| @@ -23756,7 +23756,7 @@ class _StyleSheetList extends Interceptor with ListMixin<StyleSheet>, ImmutableL
|
| if (JS("bool", "# >>> 0 !== # || # >= #", index,
|
| index, index, length))
|
| throw new RangeError.range(index, 0, length);
|
| - return this.item(index);
|
| + return JS("StyleSheet", "#[#]", this, index);
|
| }
|
| void operator[]=(int index, StyleSheet value) {
|
| throw new UnsupportedError("Cannot assign element of immutable List.");
|
|
|