[Webkit-unassigned] [Bug 144281] New: ES6 classes: Invalid test for super() call

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 27 15:13:13 PDT 2015


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

            Bug ID: 144281
           Summary: ES6 classes: Invalid test for super() call
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: arv at chromium.org

http://trac.webkit.org/browser/trunk/LayoutTests/js/script-tests/class-syntax-super.js#L40

shouldThrow('x = class extends Base { constructor() { super(); } super() {} }', '"SyntaxError: \'super\' keyword unexpected here"');

If you reformat this:

x = class extends Base {
  constructor() {
    super();
  }
  super() {
  }
}

It should be clear that all this does is define a method named super. There is on restriction on method names like that. Method names can be any keyword.

-- 
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/20150427/b2aaa9ee/attachment.html>


More information about the webkit-unassigned mailing list