This article covers features introduced in SpiderMonkey 1.8.5
obj, and all objects it refers to, recursively.
bool JS_DeepFreezeObject(JSContext *cx, JS::Handle<JSObject*> obj);
||The context. Requires request. In a
||An object to freeze.|
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.