pub unsafe extern "system" fn JsParseSerialized(
buffer: JsValueRef,
scriptLoadCallback: JsSerializedLoadScriptCallback,
sourceContext: JsSourceContext,
sourceUrl: JsValueRef,
result: *mut JsValueRef
) -> JsErrorCode
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.
Requires an active script context.
The serialized script as an ArrayBuffer (preferably ExternalArrayBuffer).
Callback called when the source code of the script needs to be loaded.
This is an optional parameter, set to null if not needed.
A cookie identifying the script that can be used by debuggable script contexts.
This context will passed into scriptLoadCallback.
The location the script came from.
A function representing the script code.
The code JsNoError if the operation succeeded, a failure code otherwise.