Determining if an object can be constructed

Michał Wadas michalwadas at
Fri Jan 20 08:01:09 UTC 2017

It would be equivalent to solving halting problem.

Any function like "isConstructor" have to return three possible values -
"yes" (native constructors, classes without constructor), "maybe" (can't
determine), "no" (arrow functions, methods, generators).

On 20/01/17 04:03, Scott Sauyet wrote:
> if there was any way to distinguish a function like this

More information about the es-discuss mailing list