Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JS_ClearRegExpStatics

This article needs a technical review. How you can help.

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,