class Base { foo() { // out: SyntaxError: "super" used in class without a superclass super.doesNotExist; } } Base().foo();