-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsRunSerialized
Doug Ilijev edited this page Nov 28, 2016
·
3 revisions
Runs a serialized script. Provides the ability to lazy load the script source only if/when it is needed.
CHAKRA_API
JsRunSerialized(
_In_ BYTE *buffer,
_In_ JsSerializedLoadScriptCallback scriptLoadCallback,
_In_ JsSourceContext sourceContext,
_In_ JsValueRef sourceUrl,
_Out_ JsValueRef *result);
- buffer: The serialized script
- scriptLoadCallback: Callback called when the source code of the script needs to be loaded
- sourceContext: A cookie identifying the script that can be used by debuggable script contexts. This context will passed into scriptLoadCallback.
- sourceUrl: The location the script came from.
- result: The result of running 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.
The runtime will hold on to the buffer until all instances of any functions created from the buffer are garbage collected.
- 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 Uncyclo? Fork it and send a pull request!