[Webkit-unassigned] [Bug 147930] New: X.[[SetPrototypeOf]](Y) should succeed if X.[[Prototype]] is already Y even if X is not extensible

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 12 01:12:12 PDT 2015


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

            Bug ID: 147930
           Summary: X.[[SetPrototypeOf]](Y) should succeed if
                    X.[[Prototype]] is already Y even if X is not
                    extensible
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: 446240525 at qq.com
                CC: utatane.tea at gmail.com

js> var proto = {}
js> var obj = Object.preventExtensions(Object.create(proto))
js> Object.setPrototypeOf(obj ,proto)
TypeError: Attempted to assign to readonly property. // should return obj
js> Reflect.setPrototypeOf(obj, proto)
false // should be true

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150812/8ffd684b/attachment.html>


More information about the webkit-unassigned mailing list