Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

error from generated code of super calls #51

@sigmundch

Description

@sigmundch

I am not using chrome canary, but Chrome 42 with the ES6 flags, so maybe that's the reason behind the issue I run into. Basically I get this error if I open the existing sunflower.html:

Uncaught TypeError: A 'super' constructor call may only appear as the first statement of a function, and its arguments may not access 'this'. Other forms are not yet supported.

which seems to come from here:

  class SunflowerSeed extends dart.mixin(Circle, CirclePainter) {
    constructor(x, y, radius, color) {
      if (color === undefined) color = null;
      super(x, y, radius);
      if (color !== null) this.color = color;
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions