| Index: src/string.js
|
| ===================================================================
|
| --- src/string.js (revision 9006)
|
| +++ src/string.js (working copy)
|
| @@ -149,7 +149,7 @@
|
| position = 0;
|
| }
|
| if (position + patLength < subLength) {
|
| - index = position
|
| + index = position;
|
| }
|
| }
|
| }
|
| @@ -170,7 +170,7 @@
|
| ["String.prototype.localeCompare"]);
|
| }
|
| if (%_ArgumentsLength() === 0) return 0;
|
| - return %StringLocaleCompare(TO_STRING_INLINE(this),
|
| + return %StringLocaleCompare(TO_STRING_INLINE(this),
|
| TO_STRING_INLINE(other));
|
| }
|
|
|
| @@ -914,7 +914,9 @@
|
| this.special_string = str;
|
| }
|
|
|
| +ReplaceResultBuilder.prototype.__proto__ = null;
|
|
|
| +
|
| ReplaceResultBuilder.prototype.add = function(str) {
|
| str = TO_STRING_INLINE(str);
|
| if (str.length > 0) this.elements.push(str);
|
|
|