Skip to content

Instantly share code, notes, and snippets.

@cristiancavalli
Last active April 20, 2017 18:03
Show Gist options
  • Save cristiancavalli/258e06e313af93d5904dd16a88971122 to your computer and use it in GitHub Desktop.
Save cristiancavalli/258e06e313af93d5904dd16a88971122 to your computer and use it in GitHub Desktop.
class a {
constructor (b) {
this.b = b;
return Object.assign(
this.constructor,
this
);
}
}
const c = new (new a(2))(3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment