Function mozjs::jsapi::IsCallable

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

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.