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


This article covers features introduced in SpiderMonkey 1.8.5

Freeze an object.


JS_FreezeObject(JSContext *cx, JS::Handle<JSObject*> 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::Handle&lt;JSObject*&gt; An object to freeze.


Freezes an object. This means that other code cannot delete, add or change any properties on the object. See ES5's Object.freeze method.

See also

Document Tags and Contributors

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