Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JsSerializedLoadScriptCallback

Limin Zhu edited this pageMar 16, 2017 ·2 revisions

Called by the runtime to load the source code of the serialized script.

Syntax

typedef bool (CHAKRA_CALLBACK * JsSerializedLoadScriptCallback) (JsSourceContext sourceContext, _Out_ JsValueRef *value, _Out_ JsParseScriptAttributes *parseAttributes);

Parameters

  • sourceContext: The context passed to Js[Parse|Run]SerializedScriptCallback
  • value: The script returned.
  • parseAttributes: Parse Attributes returned

Return Value

The codeJsNoError if the operation succeeded, a failure code otherwise.

Remarks

This API is experimental and may have breaking change later. The callback is invoked on the current runtime execution thread, therefore execution isblocked until the callback completes.The callback can be used by hosts to prepare for garbage collection. For example, byreleasing unnecessary references on Chakra objects.

Want to contribute to this Wiki?

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp