JS::IsCallable

This article covers features introduced in SpiderMonkey 38

Return whether the given function object is callable/a valid constructor.

Syntax

bool
JS::IsCallable(JSObject *obj);
bool
JS::IsConstructor(JSObject *obj);
Name Type Description
obj JSObject * Pointer to the function.

Description

JS::IsCallable returns whether the given function object is callable.

JS::IsConstructor returns whether the given function object is a valid constructor.

See Also

Document Tags and Contributors

 Contributors to this page: arai, kscarfone
 Last updated by: arai,