ScriptFailedToParse

@Serializable
data class ScriptFailedToParse(val scriptId: ScriptId, val url: String, val startLine: Int, val startColumn: Int, val endLine: Int, val endColumn: Int, val executionContextId: ExecutionContextId, val hash: String, val buildId: String, val executionContextAuxData: JsonObject? = null, val sourceMapURL: String? = null, val hasSourceURL: Boolean? = null, val isModule: Boolean? = null, val length: Int? = null, val stackTrace: StackTrace? = null, val codeOffset: Int? = null, val scriptLanguage: ScriptLanguage? = null, val embedderName: String? = null) : DebuggerEvent

Fired when virtual machine fails to parse the script.

Official doc

Constructors

Link copied to clipboard
constructor(scriptId: ScriptId, url: String, startLine: Int, startColumn: Int, endLine: Int, endColumn: Int, executionContextId: ExecutionContextId, hash: String, buildId: String, executionContextAuxData: JsonObject? = null, sourceMapURL: String? = null, hasSourceURL: Boolean? = null, isModule: Boolean? = null, length: Int? = null, stackTrace: StackTrace? = null, codeOffset: Int? = null, scriptLanguage: 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

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

Link copied to clipboard

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: JsonObject?

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

True, if this script has sourceURL.

Link copied to clipboard

True, if this script is ES6 module.

Link copied to clipboard
val length: Int?

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

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).