Is there somebody interested in this? The draft spec is rather simple: Reflect.isCallable (target)
1. If Type(target) is not Object, then throw a TypeError exception. 2. Return the result of calling the abstract operation IsCallable(target). Reflect.isConstructor (target) 1. If Type(target) is not Object, then throw a TypeError exception. 2. Return the result of calling the abstract operation IsConstructor(target). I am not sure about step 1, but it follows the style of Reflect.isExtensible On Tue, Dec 16, 2014 at 10:05 PM, Tom Schuster <t...@schuster.me> wrote: > > Hello, > > right now there is no way in normal JS code to replicate the IsConstructor > check defined in 7.2.4. > IsCallable can be done with "typeof == function". I think this might be > useful in some cases and is trivial to implement. > > Cheers, > Tom >
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss