class Foo { method(a, b) {} } // out: TypeError: method() takes 2 arguments but 1 were given Foo().method(1);