Bradley Meck wrote: >> 1. every call to `new Foo(...args)` creates a distinct object not >> reference-equal to any other such call. > > Would this mean > > ``` > function factory() { return []; } > ``` > > would qualify as a constructor?
I'm thinking of that as a necessary, but not a sufficient condition. If it fails that test it cannot be a constructor. It's clear that there are other tests. It's not clear to me what they are. -- Scott _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss