Class ScriptFailedToParseEventArgs
Fired when virtual machine fails to parse the script.
public sealed record ScriptFailedToParseEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<ScriptFailedToParseEventArgs>
- Inheritance
-
EventArgsScriptFailedToParseEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.AdditionalMessageData
Constructors
ScriptFailedToParseEventArgs(ScriptId, string, long, long, long, long, ExecutionContextId, string, string, JsonElement?, string?, bool?, bool?, long?, StackTrace?, long?, ScriptLanguage?, string?)
Fired when virtual machine fails to parse the script.
public ScriptFailedToParseEventArgs(ScriptId ScriptId, string Url, long StartLine, long StartColumn, long EndLine, long EndColumn, ExecutionContextId ExecutionContextId, string Hash, string BuildId, JsonElement? ExecutionContextAuxData = null, string? SourceMapURL = null, bool? HasSourceURL = null, bool? IsModule = null, long? Length = null, StackTrace? StackTrace = null, long? CodeOffset = null, ScriptLanguage? ScriptLanguage = null, string? EmbedderName = null)
Parameters
ScriptIdScriptIdIdentifier of the script parsed.
UrlstringURL or name of the script parsed (if any).
StartLinelongLine offset of the script within the resource with given URL (for script tags).
StartColumnlongColumn offset of the script within the resource with given URL.
EndLinelongLast line of the script.
EndColumnlongLength of the last line of the script.
ExecutionContextIdExecutionContextIdSpecifies script creation context.
HashstringContent hash of the script, SHA-256.
BuildIdstringFor Wasm modules, the content of the build_id custom section. For JavaScript the debugId magic comment.
ExecutionContextAuxDataJsonElement?Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
SourceMapURLstringURL of source map associated with script (if any).
HasSourceURLbool?True, if this script has sourceURL.
IsModulebool?True, if this script is ES6 module.
Lengthlong?This script length.
StackTraceStackTraceJavaScript top stack frame of where the script parsed event was triggered if available.
CodeOffsetlong?If the scriptLanguage is WebAssembly, the code section offset in the module.
ScriptLanguageScriptLanguage?The language of the script.
EmbedderNamestringThe name the embedder supplied for this script.
Properties
BuildId
For Wasm modules, the content of the build_id custom section. For JavaScript the debugId magic comment.
public string BuildId { get; init; }
Property Value
CodeOffset
If the scriptLanguage is WebAssembly, the code section offset in the module.
public long? CodeOffset { get; init; }
Property Value
- long?
EmbedderName
The name the embedder supplied for this script.
public string? EmbedderName { get; init; }
Property Value
EndColumn
Length of the last line of the script.
public long EndColumn { get; init; }
Property Value
EndLine
Last line of the script.
public long EndLine { get; init; }
Property Value
ExecutionContextAuxData
Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}
public JsonElement? ExecutionContextAuxData { get; init; }
Property Value
ExecutionContextId
Specifies script creation context.
public ExecutionContextId ExecutionContextId { get; init; }
Property Value
HasSourceURL
True, if this script has sourceURL.
public bool? HasSourceURL { get; init; }
Property Value
- bool?
Hash
Content hash of the script, SHA-256.
public string Hash { get; init; }
Property Value
IsModule
True, if this script is ES6 module.
public bool? IsModule { get; init; }
Property Value
- bool?
Length
This script length.
public long? Length { get; init; }
Property Value
- long?
ScriptId
Identifier of the script parsed.
public ScriptId ScriptId { get; init; }
Property Value
ScriptLanguage
The language of the script.
public ScriptLanguage? ScriptLanguage { get; init; }
Property Value
SourceMapURL
URL of source map associated with script (if any).
public string? SourceMapURL { get; init; }
Property Value
StackTrace
JavaScript top stack frame of where the script parsed event was triggered if available.
public StackTrace? StackTrace { get; init; }
Property Value
StartColumn
Column offset of the script within the resource with given URL.
public long StartColumn { get; init; }
Property Value
StartLine
Line offset of the script within the resource with given URL (for script tags).
public long StartLine { get; init; }
Property Value
Url
URL or name of the script parsed (if any).
public string Url { get; init; }