Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't warn for missing super() in a constructor with an explicit return
It's ok at runtime as long as the constructor returns an object, e.g. class C {} class D extends C { constructor() { return {foo: 3}; } } console.log(new D()); // Object {foo: 3} ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=202696612
- Loading branch information
1 parent
7fa1896
commit efb87d0
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters