We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE


Obsolete since JSAPI 15
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

This article covers features introduced in SpiderMonkey 1.8.5

Flushes the code cache for the current thread. The operation might be delayed if the cache cannot be flushed currently because native code is currently executing.


JS_FlushCaches(JSContext *cx);
Name Type Description
cx JSContext * The context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext.



See also

Document Tags and Contributors

 Contributors to this page: arai, Sheppy, markg
 Last updated by: arai,