struct Protocol::Debugger::ScriptFailedToParse

Overview

Fired when virtual machine fails to parse the script.

Included Modules

Defined in:

protocol/debugger.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def code_offset : Int::Primitive | Nil #

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


[View source]
def embedder_name : String | Nil #

The name the embedder supplied for this script.


[View source]
def end_column : Int::Primitive #

Length of the last line of the script.


[View source]
def end_line : Int::Primitive #

Last line of the script.


[View source]
def execution_context_aux_data : JSON::Any | Nil #

Embedder-specific auxiliary data.


[View source]
def execution_context_id : Runtime::ExecutionContextId #

Specifies script creation context.


[View source]
def has_source_url : Bool | Nil #

True, if this script has sourceURL.


[View source]
def hash : String #

Content hash of the script, SHA-256.


[View source]
def is_module : Bool | Nil #

True, if this script is ES6 module.


[View source]
def length : Int::Primitive | Nil #

This script length.


[View source]
def script_id : Runtime::ScriptId #

Identifier of the script parsed.


[View source]
def script_language : Debugger::ScriptLanguage | Nil #

The language of the script.


[View source]
def source_map_url : String | Nil #

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


[View source]
def stack_trace : Runtime::StackTrace | Nil #

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


[View source]
def start_column : Int::Primitive #

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


[View source]
def start_line : Int::Primitive #

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


[View source]
def url : String #

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


[View source]