JS_IsConstructor

This article covers features introduced in SpiderMonkey 24

Return whether the given function is a valid constructor.

Syntax

bool
JS_IsConstructor(JSFunction *fun);
Name Type Description
fun JSFunction * The function to examine.

Description

JS_IsConstructor determines if a specified function, fun is a valid constructor object. If so, JS_IsConstructor returns true. Otherwise it returns false.

See Also

Document Tags and Contributors

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