[Webkit-unassigned] [Bug 141871] New: Throwing a frozen object makes it claim to be unfrozen

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 21 16:45:47 PST 2015


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

            Bug ID: 141871
           Summary: Throwing a frozen object makes it claim to be unfrozen
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Macintosh Intel
                OS: Mac OS X 10.9
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: erights at gmail.com

This occurs on Safari 7.0.5 (9537.77.4). Discovered by Kevin Reid.

Test case:

var o = Object.freeze([1, 2]); try { console.log(Object.isFrozen(o)); throw o; } catch (e) { console.log(e.toString(), Object.isFrozen(e), e === o); }

Output in Safari;
[Log] true
[Log] 1,2 false true



Throwing o made the subsequent isFrozen claim that it isn't. But as far as we can tell so far by attempting to mutate it, it actually is so anyway.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150222/c7516ac1/attachment-0002.html>


More information about the webkit-unassigned mailing list