[Webkit-unassigned] [Bug 157972] New: super should not depend on __proto__

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat May 21 01:00:12 PDT 2016


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

            Bug ID: 157972
           Summary: super should not depend on __proto__
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: OS X 10.11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

Consider the following code:

```js
class C extends Object {}
delete Object.prototype.__proto__
let c = new C
```

WebKit Nightly throws `TypeError: undefined is not a constructor`.
However, `super` should call internal `[[GetPrototypeOf]]`, not the `__proto__` getter.
This code works fine both in Chrome Canary and Firefox.

-- 
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/20160521/988cd4e0/attachment.html>


More information about the webkit-unassigned mailing list