You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 by JsSerializeParserState.
result: The result of the script, if any. This parameter can be null.
Return Value
The code JsNoError 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.