This article covers features introduced in SpiderMonkey 17

Return whether the given function object equals the specified native function.

Syntax

bool
JS_IsNativeFunction(JSObject *funobj, JSNative call);
Name Type Description
funobj JSObject * The function object to examine.
call JSNative The native function to compare.

Description

JS_IsNativeFunction determines if a specified function object, funobj equals a specified native function, call. If so, JS_IsNativeFunction returns true. Otherwise it returns false.

See Also