We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS


This article covers features introduced in SpiderMonkey 24

Return whether the given function is a valid constructor.


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


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,