pub unsafe extern "system" fn JsRunSerialized(
buffer: JsValueRef,
scriptLoadCallback: JsSerializedLoadScriptCallback,
sourceContext: JsSourceContext,
sourceUrl: JsValueRef,
result: *mut JsValueRef
) -> JsErrorCode
Runs a serialized script.
Provides the ability to lazy load the script source only if/when it is needed.
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.
The serialized script as an ArrayBuffer (preferably ExternalArrayBuffer).
Callback called when the source code of the script needs to be loaded.
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.
The result of running the script, if any. This parameter can be null.
The code JsNoError if the operation succeeded, a failure code otherwise.