-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsSerializedLoadScriptCallback
Alex Godoy Wolff edited this page Nov 16, 2016
·
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 code JsNoError if the operation succeeded, a failure code otherwise.
The callback is invoked on the current runtime execution thread, therefore execution is blocked until the callback completes. The callback can be used by hosts to prepare for garbage collection. For example, by releasing 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!