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 _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

