JS_GetRegExpFlags

This is an archived page. It's not actively maintained.

This article covers features introduced in SpiderMonkey 17

Get the flags of the given RegExp object.

Syntax

unsigned
JS_GetRegExpFlags(JSContext *cx, HandleObject obj)
Name Type Description
cx JSContext * A context.
obj JS::HandleObject The object to get the flags.

Description

JS_GetRegExpFlags returns flags of the specified object, obj.

If successful, JS_GetRegExpFlags returns the flags, otherwise returns false.

See Also