Struct SyntaxError
#[repr(transparent)]
pub struct SyntaxError { /* private fields */ }
A SyntaxError is thrown when the JavaScript engine encounters tokens or
token order that does not conform to the syntax of the language when
parsing code.
Implementations
impl SyntaxError
fn new_with_options(message: &str, options: &ErrorOptions) -> SyntaxErrorCreates a new
SyntaxErrorwith the given message and a typedErrorOptionsdictionary whosecauseproperty indicates the original cause of the error.
impl SyntaxError
fn new(message: &str) -> SyntaxErrorA
SyntaxErroris thrown when the JavaScript engine encounters tokens or token order that does not conform to the syntax of the language when parsing code.
Trait Implementations
impl AsRef<Error> for SyntaxError
fn as_ref(&self) -> &Error
impl AsRef<JsValue> for SyntaxError
fn as_ref(&self) -> &JsValue
impl AsRef<Object> for SyntaxError
fn as_ref(&self) -> &Object
impl AsRef<SyntaxError> for SyntaxError
fn as_ref(&self) -> &SyntaxError
impl Clone for SyntaxError
fn clone(&self) -> Self
impl Debug for SyntaxError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Deref for SyntaxError
type Target = Error;fn deref(&self) -> &Error
impl Eq for SyntaxError
impl ErasableGeneric for SyntaxError
type Repr = JsValue;
impl From<JsValue> for SyntaxError
fn from(obj: JsValue) -> Self
impl FromWasmAbi for SyntaxError
type Abi = <JsValue as FromWasmAbi>::Abi;unsafe fn from_abi(js: Self::Abi) -> Self
impl IntoJsGeneric for SyntaxError
where
SyntaxError: JsGeneric,
type JsCanon = SyntaxError;fn to_js(self) -> SyntaxError
impl IntoWasmAbi for SyntaxError
type Abi = <JsValue as IntoWasmAbi>::Abi;fn into_abi(self) -> Self::Abi
impl JsCast for SyntaxError
fn instanceof(val: &JsValue) -> boolfn unchecked_from_js(val: JsValue) -> Selffn unchecked_from_js_ref(val: &JsValue) -> &Self
impl LongRefFromWasmAbi for SyntaxError
type Abi = <JsValue as LongRefFromWasmAbi>::Abi;type Anchor = SyntaxError;unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
impl OptionFromWasmAbi for SyntaxError
fn is_none(abi: &Self::Abi) -> bool
impl OptionIntoWasmAbi for SyntaxError
fn none() -> Self::Abi
impl PartialEq for SyntaxError
fn eq(&self, other: &Self) -> bool
impl Promising for SyntaxError
type Resolution = SyntaxError;
impl RefFromWasmAbi for SyntaxError
type Abi = <JsValue as RefFromWasmAbi>::Abi;type Anchor = ManuallyDrop<SyntaxError>;unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
impl StructuralPartialEq for SyntaxError
impl UpcastFrom<SyntaxError> for SyntaxError
impl WasmDescribe for SyntaxError
fn describe()