This article covers features introduced in SpiderMonkey 17
Determine if a specified object is a RegExp.
Syntax
bool JS_ObjectIsRegExp(JSContext *cx, JS::HandleObject obj);
| Name | Type | Description |
|---|---|---|
cx |
JSContext * |
A context. |
obj |
JS::HandleObject |
The object to examine. |
Description
JS_ObjectIsRegExp determines if a specified object, obj, is a RegExp object. If so, JS_ObjectIsRegExp returns true. Otherwise it returns false.
