-
-
Save bakkot/66b515f402b8cdbf3e405f8509ad3525 to your computer and use it in GitHub Desktop.
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
class A { | |
constructor(f) { | |
f && f(); | |
} | |
} | |
class B extends A { | |
constructor() { | |
const f = () => super(); | |
super(f); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment