Function js::jsapi::IsCallable [] [src]

pub unsafe extern "C" fn IsCallable(obj: *mut JSObject) -> bool

Return true if the given object is callable. In ES6 terms, an object is callable if it has a [[Call]] internal method.

Implements: ES6 7.2.3 IsCallable(argument).

Functions are callable. A scripted proxy or wrapper is callable if its target is callable. Most other objects aren't callable.