Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.