JsPreventExtension Function
Makes an object non-extensible.
Syntax
STDAPI_(JsErrorCode) JsPreventExtension(
_In_ JsValueRef object
);
Parameters
object
The object to make non-extensible.
Return Value
The code JsNoError
if the operation succeeded, a failure code otherwise.
Remarks
Requires an active script context.
Requirements
Header: jsrt.h