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

Unified Diff: lib/compiler/implementation/lib/interceptors.dart

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: lib/compiler/implementation/lib/interceptors.dart
diff --git a/lib/compiler/implementation/lib/interceptors.dart b/lib/compiler/implementation/lib/interceptors.dart
index e193e9fec8396e1f8e32d8166a12fefba76e8c8c..609f0f5a4647829eb068f4744157d09bb9cdc6a3 100644
--- a/lib/compiler/implementation/lib/interceptors.dart
+++ b/lib/compiler/implementation/lib/interceptors.dart
@@ -246,9 +246,9 @@ insertRange$3(receiver, start, length, initialValue) {
return listInsertRange(receiver, start, length, initialValue);
}
-last(receiver) {
+get$last(receiver) {
if (!isJsArray(receiver)) {
- return UNINTERCEPTED(receiver.last());
+ return UNINTERCEPTED(receiver.last);
}
return receiver[receiver.length - 1];
}

Powered by Google App Engine
This is Rietveld 408576698