[Webkit-unassigned] [Bug 152108] ES6 Class syntax. Invoking method of parent class in constructor before super() lead to crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 25 22:58:41 PDT 2016


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

Joseph Pecoraro <joepeck at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joepeck at webkit.org
           Assignee|webkit-unassigned at lists.web |joepeck at webkit.org
                   |kit.org                     |

--- Comment #2 from Joseph Pecoraro <joepeck at webkit.org> ---
(In reply to comment #0)
> Invoking method of parent class in constructor before super() lead to crash.
>
>   class B extends A {
>      constructor () {
>         let _value  = super.getValue();
>         super();
>         this.value = _value;
>      }
>   }

I think this was supposed to be an arrow function:

    let _value = () => { super.getValue() };
    _value();
    super();

At least Based on the FIXME in the LayoutTests/js test.

However, it looks like this has been fixed! Lets enable the test to ensure we get a bit extra coverage and remove the FIXMEs in LayoutTests.

-- 
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/20160326/9b6def0f/attachment.html>


More information about the webkit-unassigned mailing list