Skip to content

JsPreventExtension

Limin Zhu edited this page Oct 9, 2015 · 1 revision

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.

Clone this wiki locally