Created
February 8, 2024 11:00
-
-
Save wentout/b5b4377036a713a9e87af03a8636c501 to your computer and use it in GitHub Desktop.
Infinite Loops
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 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