[Webkit-unassigned] [Bug 25527] New: String.prototype.replace and String.prototype.toLowerCase should be deletable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 3 14:01:26 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=25527

           Summary: String.prototype.replace and
                    String.prototype.toLowerCase should be deletable
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: erikcorry at google.com


delete String.prototype.replace and delete String.prototype.toLowerCase have no
effect in JSC.  This is causing compatibility issues with V8, Firefox and MSIE
as detailed in http://code.google.com/p/chromium/issues/detail?id=1717
AFAIKS it is a violation of the spec, which doesn't list the DontDelete
property for String.prototype.replace. Here is a test snippet:

<script>
delete String.prototype.replace;
alert("String.prototype.replace is " + ("foo".replace ? "not deletable" :
"deletable"));
</script>

Result for JSC: not deletable
Result for other JS implementations: deletable

Tested in Safari Version 4 Public Beta (4528.16)


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list