[Webkit-unassigned] [Bug 169040] Class Proxy can't be extended

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 17 11:53:39 PDT 2017


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

--- Comment #6 from GSkachkov <gskachkov at gmail.com> ---
(In reply to Saam Barati from comment #3)
> What does the spec say here? Were we performing the Get() twice? This is
> observable behavior.

Ohh, I did not found something special about this in spec. 
But what I see, that there is unexpected behavior. For ordinary function:
```
function Foo() {}
class Bar extends Foo {}
Bar.__proto__ === Foo; // true
class A {}
class B extends A {}
B.__proto__ === A; // true
```
But for Proxy object:
```
class SuperClass {}
let ProxiedSuperClass = new Proxy(SuperClass, {});
class A extends ProxiedSuperClass {
    constructor() {
        super();
    }
}
A.__proto__ === ProxiedSuperClass; // Expected true, but false; true is A.__proto__ === ProxiedSuperClass.__proto__
```

-- 
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/20170417/fa8fd543/attachment.html>


More information about the webkit-unassigned mailing list