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

Unified Diff: compiler/lib/implementation/array.js

Issue 8273004: Implement removeRange, and update some documentation on the list interface. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 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: compiler/lib/implementation/array.js
===================================================================
--- compiler/lib/implementation/array.js (revision 394)
+++ compiler/lib/implementation/array.js (working copy)
@@ -4,13 +4,13 @@
function native_ArrayFactory__new(typeToken, length) {
return RTT.setTypeInfo(
- new Array(length),
+ new Array(length),
Array.$lookupRTT(RTT.getTypeInfo(typeToken).typeArgs));
}
function native_ListFactory__new(typeToken, length) {
return RTT.setTypeInfo(
- new Array(length),
+ new Array(length),
Array.$lookupRTT(RTT.getTypeInfo(typeToken).typeArgs));
}
@@ -40,3 +40,7 @@
}
native__ArrayJsUtil__throwIndexOutOfRangeException(index);
}
+
+function native_ObjectArray__splice(start, length) {
+ this.splice(start, length);
+}

Powered by Google App Engine
This is Rietveld 408576698