Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Executes a script.
Syntax
STDAPI_(JsErrorCode) JsRunScript(
_In_z_ const wchar_t *script,
_In_ JsSourceContext sourceContext,
_In_z_ const wchar_t *sourceUrl,
_Out_ JsValueRef *result
);
Parameters
script
The script to run.
sourceContext
A cookie identifying the script that can be used by debuggable script contexts.
sourceUrl
The ___location the script came from.
result
The result of the script, if any. This parameter can be null.
Return Value
The code JsNoError
if the operation succeeded, a failure code otherwise.
Remarks
Requires an active script context.
Requirements
Header: jsrt.h