Skip to content

JsSerializedScriptLoadSourceCallback

Limin Zhu edited this page Mar 14, 2017 · 2 revisions

Called by the runtime to load the source code of the serialized script. The caller must keep the script buffer valid until the JsSerializedScriptUnloadCallback.

Syntax

typedef bool (CALLBACK * JsSerializedScriptLoadSourceCallback)(_In_ JsSourceContext sourceContext, _Outptr_result_z_ const wchar_t** scriptBuffer);

Parameters

  • sourceContext: The context passed to Js[Parse|Run]SerializedScriptWithCallback
  • scriptBuffer: The script returned.

Return Value

true if the operation succeeded, false otherwise.

Remarks

This callback is Windows-only.

Clone this wiki locally