- Notifications
You must be signed in to change notification settings - Fork1.2k
JsSerializedLoadScriptCallback
Limin Zhu edited this pageMar 16, 2017 ·2 revisions
Called by the runtime to load the source code of the serialized script.
typedef bool (CHAKRA_CALLBACK * JsSerializedLoadScriptCallback) (JsSourceContext sourceContext, _Out_ JsValueRef *value, _Out_ JsParseScriptAttributes *parseAttributes);
- sourceContext: The context passed to Js[Parse|Run]SerializedScriptCallback
- value: The script returned.
- parseAttributes: Parse Attributes returned
The codeJsNoError if the operation succeeded, a failure code otherwise.
This API is experimental and may have breaking change later. The callback is invoked on the current runtime execution thread, therefore execution isblocked until the callback completes.The callback can be used by hosts to prepare for garbage collection. For example, byreleasing unnecessary references on Chakra objects.
- 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!