Lines Matching defs:toLocaleString
203 var backupNumberToLocaleString = Number.prototype.toLocaleString;
205 var backupRegExpToLocaleString = RegExp.prototype.toLocaleString;
209 Number.prototype.toLocaleString = function() { return "toLocaleString"; }
211 RegExp.prototype.toLocaleString = function() { return "toLocaleString2"; }
215 shouldBe("[1].toLocaleString()", "'toLocaleString'");
216 Number.prototype.toLocaleString = "invalid";
217 shouldBe("[1].toLocaleString()", "'1'");
219 shouldBe("[/r/].toLocaleString()", "'toLocaleString2'");
220 RegExp.prototype.toLocaleString = "invalid";
221 shouldBe("[/r/].toLocaleString()", "'toString2'");
233 Number.prototype.toLocaleString = backupNumberToLocaleString;
235 RegExp.prototype.toLocaleString = backupRegExpToLocaleString;