Skip to content

JsCreateReferenceError

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

Creates a new JavaScript ReferenceError error object

Syntax

STDAPI_(JsErrorCode)
    JsCreateReferenceError(
    _In_ JsValueRef message,
    _Out_ JsValueRef *error);

Parameters

  • message: Message for the error object.
  • error: The new error object.

Return Value

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

Remarks

Requires an active script context.

Clone this wiki locally