Skip to content
This repository was archived by the owner on May 19, 2018. It is now read-only.
/ babylon Public archive
This repository was archived by the owner on May 19, 2018. It is now read-only.

super.foo() should be allowed in class properties #498

@loganfsmyth

Description

@loganfsmyth

Pulled from babel/babel#5104 but going to leave that open so we make sure the transformation also works once we fix the parsing for it.

Input Code

class Fails extends class { c(){} } {
  c = super.c();
}

Expected Behavior

Should parse successfully.

Current Behavior

Throws the syntax error 'super' outside of function or class (2:5)

Your Environment

software version
Babylon
node
npm
Operating System

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions