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

JsRunScriptWithParserState

rhuanjl edited this pageSep 1, 2018 ·1 revision

Deserializes the cache of initial parser state and (along with the same script source) executes the script and returns the result.

Syntax

CHAKRA_API    JsRunScriptWithParserState(        _In_ JsValueRef script,        _In_ JsSourceContext sourceContext,        _In_ JsValueRef sourceUrl,        _In_ JsParseScriptAttributes parseAttributes,        _In_ JsValueRef parserState,        _Out_ JsValueRef * result);

Parameters

  • script: The script to run.
  • sourceContext: A cookie identifying the script that can be used by debuggable script contexts.
  • sourceUrl: The location the script came from
  • parseAttributes: Attribute mask for parsing the script
  • parserState: A buffer containing a cache of the parser state generated byJsSerializeParserState.
  • result: The result of the script, if any. This parameter can be null.

Return Value

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

Remarks

This API is experimental and may have breaking changes later.

Requires an active script context.Script source can be either JavascriptString or JavascriptExternalArrayBuffer. In case it is an ExternalArrayBuffer, and the encoding of the buffer is Utf16, JsParseScriptAttributeArrayBufferIsUtf16Encoded is expected on parseAttributes.Use JavascriptExternalArrayBuffer with Utf8/ASCII script source for better performance and smaller memory footprint.

Want to contribute to this Wiki?

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp