Skip to content

JsSetPrototype

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

Sets the prototype of an object.

Syntax

STDAPI_(JsErrorCode)
    JsSetPrototype(
    _In_ JsValueRef object,
    _In_ JsValueRef prototypeObject);

Parameters

  • object: The object whose prototype is to be changed.
  • prototypeObject: The object's new prototype.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

Clone this wiki locally