[Webkit-unassigned] [Bug 152108] New: 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
Wed Dec 9 23:37:19 PST 2015


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

            Bug ID: 152108
           Summary: ES6 Class syntax. Invoking method of parent class in
                    constructor before super() lead to crash
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: gskachkov at gmail.com

Invoking method of parent class in constructor before super() lead to crash. See example:
<script>
   class A {
      getValue() {
         return 'test-value';
      }
   }

  class B extends A {
     constructor () {
        let _value  = super.getValue();
        super();
        this.value = _value;
     }
  }

  let b = new B();
  console.log(b.value);
</script>

-- 
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/20151210/61d9ef2b/attachment.html>


More information about the webkit-unassigned mailing list