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

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

Issue 8424012: Add optional arguments to our indexOf/lastIndexOf methods. (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/string.js
===================================================================
--- compiler/lib/implementation/string.js (revision 942)
+++ compiler/lib/implementation/string.js (working copy)
@@ -18,11 +18,11 @@
return typeof other == 'string' && this == other;
}
-function native_StringImplementation_indexOf(other, startIndex) {
+function native_StringImplementation__nativeIndexOf(other, startIndex) {
return this.indexOf(other, startIndex);
}
-function native_StringImplementation_lastIndexOf(other, fromIndex) {
+function native_StringImplementation__nativeLastIndexOf(other, fromIndex) {
if (other == "") {
return Math.min(this.length, fromIndex);
}

Powered by Google App Engine
This is Rietveld 408576698