pub struct ScriptFailedToParseEvent { /* private fields */ }
Available on crate features
Debugger
and Runtime
only.Expand description
Fired when virtual machine fails to parse the script.
Implementations§
Source§impl ScriptFailedToParseEvent
impl ScriptFailedToParseEvent
pub fn builder() -> ScriptFailedToParseEventBuilder
Sourcepub fn start_line(&self) -> u32
pub fn start_line(&self) -> u32
Line offset of the script within the resource with given URL (for script tags).
Sourcepub fn start_column(&self) -> u32
pub fn start_column(&self) -> u32
Column offset of the script within the resource with given URL.
Sourcepub fn end_column(&self) -> u32
pub fn end_column(&self) -> u32
Length of the last line of the script.
Sourcepub fn execution_context_id(&self) -> &ExecutionContextId
pub fn execution_context_id(&self) -> &ExecutionContextId
Specifies script creation context.
Sourcepub fn execution_context_aux_data(
&self,
) -> Option<&ScriptFailedToParseEventExecutionContextAuxData>
pub fn execution_context_aux_data( &self, ) -> Option<&ScriptFailedToParseEventExecutionContextAuxData>
Embedder-specific auxiliary data.
Sourcepub fn source_map_url(&self) -> Option<&String>
pub fn source_map_url(&self) -> Option<&String>
URL of source map associated with script (if any).
Sourcepub fn has_source_url(&self) -> Option<&bool>
pub fn has_source_url(&self) -> Option<&bool>
True, if this script has sourceURL.
Sourcepub fn stack_trace(&self) -> Option<&StackTrace>
Available on crate feature experimental
only.
pub fn stack_trace(&self) -> Option<&StackTrace>
experimental
only.JavaScript top stack frame of where the script parsed event was triggered if available.
Sourcepub fn code_offset(&self) -> Option<&u32>
Available on crate feature experimental
only.
pub fn code_offset(&self) -> Option<&u32>
experimental
only.If the scriptLanguage is WebAssembly, the code section offset in the module.
Sourcepub fn script_language(&self) -> Option<&ScriptLanguage>
Available on crate feature experimental
only.
pub fn script_language(&self) -> Option<&ScriptLanguage>
experimental
only.The language of the script.
Sourcepub fn embedder_name(&self) -> Option<&String>
Available on crate feature experimental
only.
pub fn embedder_name(&self) -> Option<&String>
experimental
only.The name the embedder supplied for this script.
Trait Implementations§
Source§impl Clone for ScriptFailedToParseEvent
impl Clone for ScriptFailedToParseEvent
Source§fn clone(&self) -> ScriptFailedToParseEvent
fn clone(&self) -> ScriptFailedToParseEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ScriptFailedToParseEvent
impl Debug for ScriptFailedToParseEvent
Source§impl<'de> Deserialize<'de> for ScriptFailedToParseEvent
impl<'de> Deserialize<'de> for ScriptFailedToParseEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScriptFailedToParseEvent
impl RefUnwindSafe for ScriptFailedToParseEvent
impl Send for ScriptFailedToParseEvent
impl Sync for ScriptFailedToParseEvent
impl Unpin for ScriptFailedToParseEvent
impl UnwindSafe for ScriptFailedToParseEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more