Partager via


JsCreateObject Function

Creates a new object.

Syntax

STDAPI_(JsErrorCode) JsCreateObject(  
   _Out_ JsValueRef *object  
);  

Parameters

object
The new object.

Return Value

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

Remarks

Requires an active script context.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)