MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

JS_ClearRegExpStatics

Clear the pending RegExp input and flags.

Syntax

bool
JS_ClearRegExpStatics(JSContext *cx, HandleObject obj);
Name Type Description
cx JSContext *

The context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext.

obj JS::HandleObject A pointer to a global object.

Description

JS_ClearRegExpStatics clears the pending input string and flags of the built-in RegExp object.

On successful, JS_ClearRegExpStatics returns true, otherwise returns false.

See Also

Document Tags and Contributors

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