class A {
constructor() {
}
}
class B extends A {
constructor() {
super();
}
}
class C extends B {
constructor() {
super();
}
}
new C();
Result:
Uncaught Error: Too much recursion - the stack is about to overflow
at line 7 col 1
super();
^
in function called from line 7 col 7
super();
^
[.......]
in function called from line 7 col 7
super();
^
Execution Interrupted
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Example:
Result: