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

Exception: Constructors of derived class must contain a super call when the memberVariables option is enabled #97

Description

@stefanr

When the memberVariables option in traceur is enabled I get the following exception:

Uncaught exception: [ 'annotations.js:29:3: Constructors of derived class must contain a super call when the memberVariables option is enabled' ]

Tested with (Options: --annotations --types --member-variables):

import {Injector, Inject} from "di/src";
[...]

This would fix the problem:

[...]
class InjectPromise extends Inject {
  constructor(...tokens) {
    super(...tokens);
    this.isPromise = true;
    this.isLazy = false;
  }
}
[...]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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