While delving into the inner workings of the Prisma ORM source code, I stumbled upon this specific section that caught my attention:
export class MigrateDev implements Command {
public static new(): MigrateDev {
return new MigrateDev()
}
...
This part has left me perplexed. How exactly does creating a new instance of the same class within its own constructor not lead to an infinite loop and eventual stack overflow?