JS_FreezeObject

This article covers features introduced in SpiderMonkey 1.8.5

Freezes an object. This means that other code cannot delete, add or change any properties on the object.

Syntax

JSBool JS_FreezeObject(JSContext *cx, 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 JSObject *  

Description

Please provide a description. 

See also

JavaScript Reference: The freeze method of Object

ECMAScript 5's Object.freeze(obj) method

Document Tags and Contributors

Contributors to this page: Sheppy, MarkGiffin
Last updated by: Sheppy,