- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.2k
JsParseSerialized
        Derek Morris edited this page Apr 6, 2017 
        ·
        3 revisions
      
    Parses a serialized script and returns a function representing the script. Provides the ability to lazy load the script source only if/when it is needed.
CHAKRA_API
       JsParseSerialized(
        _In_ JsValueRef buffer,
        _In_ JsSerializedLoadScriptCallback scriptLoadCallback,
        _In_ JsSourceContext sourceContext,
        _In_ JsValueRef sourceUrl,
        _Out_ JsValueRef *result);
- buffer: The serialized script as an ArrayBuffer (preferably ExternalArrayBuffer)
- scriptLoadCallback: Callback called when the source code of the script needs to be loaded. This is an optional parameter, set to null if not needed.
- 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: A function representing the script code.
The code JsNoError if the operation succeeded, a failure code otherwise.
This API is experimental and may have breaking change later.
Requires an active script context.
- 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!