super constructor calls for max/min classes

Erik Arvidsson erik.arvidsson at gmail.com
Tue Jul 10 09:16:15 PDT 2012


1) I'm in favor in principal.

We just need to work out the details here. Is it really only Object
that has issues? Aren't all the existing "classes" problematic since
they can be called instead of constructed?

class MyError extends Error {}

Error.call(this) returns a new Error object.

2) Leave it to the linters.

-- 
erik


More information about the es-discuss mailing list