Skip to content

Instantly share code, notes, and snippets.

@wentout
Created February 8, 2024 11:00
Show Gist options
  • Save wentout/b5b4377036a713a9e87af03a8636c501 to your computer and use it in GitHub Desktop.
Save wentout/b5b4377036a713a9e87af03a8636c501 to your computer and use it in GitHub Desktop.
Infinite Loops
class Base {
constructor() {
return new Extended;
}
}
class Extended extends Base {
constructor() {
super();
}
}
class Base { }
class Extended extends Base {
constructor() {
super();
return new Promise(async (resolve) => {
resolve(await new Extended);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment