Skip to content

JsCreateContext

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

Creates a script context for running scripts.

Syntax

STDAPI_(JsErrorCode)
    JsCreateContext(
    _In_ JsRuntimeHandle runtime,
    _Out_ JsContextRef *newContext);

Parameters

  • runtime: The runtime the script context is being created in.
  • newContext: The created script context.

Return Value

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

Remarks

Each script context has its own global object that is isolated from all other script contexts.

Clone this wiki locally