[Webkit-unassigned] [Bug 128204] New: Functions cannot freeze themselves.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 4 12:54:32 PST 2014


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

           Summary: Functions cannot freeze themselves.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL: http://jsfiddle.net/q2FAC/
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bsw at mit.edu


If a function calls Object.freeze on itself, the call errors with "[Error] TypeError: Attempting to change value of a readonly property."

Example:

function freezeIt(obj) {
    Object.freeze(obj);
}

freezeIt(freezeIt);


This is inconsistent both with the ECMA specification and with the behavior in Chrome/V8.

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



More information about the webkit-unassigned mailing list