pub struct ScriptFailedToParseEventBuilder { /* private fields */ }
Available on crate features
Debugger
and Runtime
only.Implementations§
Source§impl ScriptFailedToParseEventBuilder
impl ScriptFailedToParseEventBuilder
Sourcepub fn start_line(&mut self, v: u32) -> &mut Self
pub fn start_line(&mut self, v: u32) -> &mut Self
Line offset of the script within the resource with given URL (for script tags).
Sourcepub fn start_column(&mut self, v: u32) -> &mut Self
pub fn start_column(&mut self, v: u32) -> &mut Self
Column offset of the script within the resource with given URL.
Sourcepub fn end_column(&mut self, v: u32) -> &mut Self
pub fn end_column(&mut self, v: u32) -> &mut Self
Length of the last line of the script.
Sourcepub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
pub fn execution_context_id(&mut self, v: ExecutionContextId) -> &mut Self
Specifies script creation context.
Sourcepub fn execution_context_aux_data(
&mut self,
v: ScriptFailedToParseEventExecutionContextAuxData,
) -> &mut Self
pub fn execution_context_aux_data( &mut self, v: ScriptFailedToParseEventExecutionContextAuxData, ) -> &mut Self
Embedder-specific auxiliary data.
Sourcepub fn source_map_url(&mut self, v: String) -> &mut Self
pub fn source_map_url(&mut self, v: String) -> &mut Self
URL of source map associated with script (if any).
Sourcepub fn has_source_url(&mut self, v: bool) -> &mut Self
pub fn has_source_url(&mut self, v: bool) -> &mut Self
True, if this script has sourceURL.
Sourcepub fn stack_trace(&mut self, v: StackTrace) -> &mut Self
Available on crate feature experimental
only.
pub fn stack_trace(&mut self, v: StackTrace) -> &mut Self
experimental
only.JavaScript top stack frame of where the script parsed event was triggered if available.
Sourcepub fn code_offset(&mut self, v: u32) -> &mut Self
Available on crate feature experimental
only.
pub fn code_offset(&mut self, v: u32) -> &mut Self
experimental
only.If the scriptLanguage is WebAssembly, the code section offset in the module.
Sourcepub fn script_language(&mut self, v: ScriptLanguage) -> &mut Self
Available on crate feature experimental
only.
pub fn script_language(&mut self, v: ScriptLanguage) -> &mut Self
experimental
only.The language of the script.
Sourcepub fn embedder_name(&mut self, v: String) -> &mut Self
Available on crate feature experimental
only.
pub fn embedder_name(&mut self, v: String) -> &mut Self
experimental
only.The name the embedder supplied for this script.
pub fn build(&mut self) -> Result<ScriptFailedToParseEvent, &'static str>
Trait Implementations§
Source§impl Clone for ScriptFailedToParseEventBuilder
impl Clone for ScriptFailedToParseEventBuilder
Source§fn clone(&self) -> ScriptFailedToParseEventBuilder
fn clone(&self) -> ScriptFailedToParseEventBuilder
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 moreAuto Trait Implementations§
impl Freeze for ScriptFailedToParseEventBuilder
impl RefUnwindSafe for ScriptFailedToParseEventBuilder
impl Send for ScriptFailedToParseEventBuilder
impl Sync for ScriptFailedToParseEventBuilder
impl Unpin for ScriptFailedToParseEventBuilder
impl UnwindSafe for ScriptFailedToParseEventBuilder
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