[Webkit-unassigned] [Bug 166665] New: Super property access in base class constructor doesn't work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 3 14:44:59 PST 2017


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

            Bug ID: 166665
           Summary: Super property access in base class constructor
                    doesn't work
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: adamk at chromium.org

Reproduction in jsc:

>>> class C { constructor() { print(typeof super.hasOwnProperty) } } new C()
Exception: TypeError: undefined is not an object (evaluating 'print')

This seems to work OK for derived classes:

>>> class Base { method() { } } class Derived extends Base { constructor() { super(); print(typeof super.method) } } new Derived()
function
[object Object]

-- 
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/20170103/9c32f123/attachment.html>


More information about the webkit-unassigned mailing list