Skip to content

JsGetPrototype

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

Returns the prototype of an object.

Syntax

STDAPI_(JsErrorCode)
    JsGetPrototype(
    _In_ JsValueRef object,
    _Out_ JsValueRef *prototypeObject);

Parameters

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

Return Value

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

Remarks

Requires an active script context.

Clone this wiki locally