-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsRun
Alex Godoy Wolff edited this page Nov 16, 2016
·
2 revisions
Executes a script.
CHAKRA_API
JsRun(
_In_ JsValueRef script,
_In_ JsSourceContext sourceContext,
_In_ JsValueRef sourceUrl,
_In_ JsParseScriptAttributes parseAttributes,
_Out_ JsValueRef *result);
- 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
- parseAttributes: Attribute mask for parsing the script
- result: The result of the script, if any. This parameter can be null.
The code JsNoError if the operation succeeded, a failure code otherwise.
Requires an active script context.
Script source can be either JavascriptString or JavascriptExternalArrayBuffer. In case it is an ExternalArrayBuffer, and the encoding of the buffer is Utf16, JsParseScriptAttributeArrayBufferIsUtf16Encoded is expected on parseAttributes.
Use JavascriptExternalArrayBuffer with Utf8/ASCII script source for better performance and smaller memory footprint.
- Architecture Overview
- Building ChakraCore
- ChakraCore Code Structure
- Contributor Guidance
- Engineering Notes
- Embedding ChakraCore
- Testing ChakraCore
- Getting ChakraCore binaries
- Label Glossary
- Resources
- Roadmap / Release Notes
Want to contribute to this Wiki? Fork it and send a pull request!