Skip to content

Instantly share code, notes, and snippets.

@bakkot
Last active April 4, 2017 06:47
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bakkot/66b515f402b8cdbf3e405f8509ad3525 to your computer and use it in GitHub Desktop.
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