ScriptFailedToParseParameter

@Serializable
data class ScriptFailedToParseParameter(val scriptId: String, val url: String, val startLine: Int, val startColumn: Int, val endLine: Int, val endColumn: Int, val executionContextId: Int, val hash: String, val buildId: String, val executionContextAuxData: Map<String, JsonElement>? = null, val sourceMapURL: String? = null, val hasSourceURL: Boolean? = null, val isModule: Boolean? = null, val length: Int? = null, val stackTrace: Runtime.StackTrace? = null, val codeOffset: Int? = null, val scriptLanguage: Debugger.ScriptLanguage? = null, val embedderName: String? = null)

Fired when virtual machine fails to parse the script.

Constructors

Link copied to clipboard
constructor(scriptId: String, url: String, startLine: Int, startColumn: Int, endLine: Int, endColumn: Int, executionContextId: Int, hash: String, buildId: String, executionContextAuxData: Map<String, JsonElement>? = null, sourceMapURL: String? = null, hasSourceURL: Boolean? = null, isModule: Boolean? = null, length: Int? = null, stackTrace: Runtime.StackTrace? = null, codeOffset: Int? = null, scriptLanguage: Debugger.ScriptLanguage? = null, embedderName: String? = null)

Properties

Link copied to clipboard

For Wasm modules, the content of the build_id custom section. For JavaScript the debugId magic comment.

Link copied to clipboard
val codeOffset: Int? = null

If the scriptLanguage is WebAssembly, the code section offset in the module.

Link copied to clipboard
val embedderName: String? = null

The name the embedder supplied for this script.

Link copied to clipboard

Length of the last line of the script.

Link copied to clipboard

Last line of the script.

Link copied to clipboard
val executionContextAuxData: Map<String, JsonElement>? = null

Embedder-specific auxiliary data likely matching {isDefault: boolean, type: 'default'|'isolated'|'worker', frameId: string}

Link copied to clipboard

Specifies script creation context.

Link copied to clipboard

Content hash of the script, SHA-256.

Link copied to clipboard
val hasSourceURL: Boolean? = null

True, if this script has sourceURL.

Link copied to clipboard
val isModule: Boolean? = null

True, if this script is ES6 module.

Link copied to clipboard
val length: Int? = null

This script length.

Link copied to clipboard

Identifier of the script parsed.

Link copied to clipboard

The language of the script.

Link copied to clipboard
val sourceMapURL: String? = null

URL of source map associated with script (if any).

Link copied to clipboard

JavaScript top stack frame of where the script parsed event was triggered if available.

Link copied to clipboard

Column offset of the script within the resource with given URL.

Link copied to clipboard

Line offset of the script within the resource with given URL (for script tags).

Link copied to clipboard
val url: String

URL or name of the script parsed (if any).