Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

call super in derived classes #12

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

icecream17
Copy link

Identify the Bug

At atom/atom#22099 section Motivation, I saw that there's an error:

npm test

> [email protected] test
> mocha test        


C:\Users\Steven\Documents\GitHub\clones\joanna\node_modules\donna\src\nodes\file.coffee:20:7: error: Can't reference 'this' before calling super in derived class constructors
      @methods = []
      ^

Description of the Change

Calls super in those classes

Alternate Designs

None

Possible Drawbacks

I'm not sure why super wasn't called in the first place, maybe I'm missing something.

Verification Process

Release Notes

Call super in derived classes

@icecream17 icecream17 marked this pull request as ready for review December 10, 2021 14:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant