Skip to content

toLeopard: Custom block named "constructor" breaks project generation #136

@towerofnix

Description

@towerofnix

This actually causes a syntax error, presumably in Prettier or such:

SyntaxError: Constructor can't be a generator. (29:11)
  27 |
  28 |         
> 29 |         * constructor() {
     |           ^
  30 |           this.say("Oopsie")
  31 |         }
  32 |

Spooky! "constructor" needs to be a reserved word.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfmt: LeopardPertains to Leopard format (JavaScript)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions