We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS


This article covers features introduced in SpiderMonkey 1.8.5

Freeze obj, and all objects it refers to, recursively.


JS_DeepFreezeObject(JSContext *cx, JS::Handle<JSObject*> obj);
Name Type Description
cx JSRuntime * The context. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext.
obj JS::Handle&lt;JSObject*&gt; An object to freeze.


JS_DeepFreezeObject freezes obj, and all objects it refers to, recursively. This will not recurse through non-extensible objects, on the assumption that those are already deep-frozen.

See also

Document Tags and Contributors

Contributors to this page: kscarfone, arai, fscholz, ethertank, trevorh, markg
Last updated by: kscarfone,