#[repr(u32)]pub enum JSWhyMagic {
Show 16 variants
JS_ELEMENTS_HOLE = 0,
JS_NO_ITER_VALUE = 1,
JS_GENERATOR_CLOSING = 2,
JS_ARG_POISON = 3,
JS_SERIALIZE_NO_NODE = 4,
JS_IS_CONSTRUCTING = 5,
JS_HASH_KEY_EMPTY = 6,
JS_ION_ERROR = 7,
JS_ION_BAILOUT = 8,
JS_OPTIMIZED_OUT = 9,
JS_UNINITIALIZED_LEXICAL = 10,
JS_MISSING_ARGUMENTS = 11,
JS_INTERRUPT_REGEXP = 12,
JS_GENERIC_MAGIC = 13,
JS_ERROR_WITHOUT_CAUSE = 14,
JS_WHY_MAGIC_COUNT = 15,
}
Variants§
JS_ELEMENTS_HOLE = 0
a hole in a native object’s elements
JS_NO_ITER_VALUE = 1
there is not a pending iterator value
JS_GENERATOR_CLOSING = 2
exception value thrown when closing a generator
JS_ARG_POISON = 3
used in debug builds to catch tracing errors
JS_SERIALIZE_NO_NODE = 4
an empty subnode in the AST serializer
JS_IS_CONSTRUCTING = 5
magic value passed to natives to indicate construction
JS_HASH_KEY_EMPTY = 6
see class js::HashableValue
JS_ION_ERROR = 7
error while running Ion code
JS_ION_BAILOUT = 8
missing recover instruction result
JS_OPTIMIZED_OUT = 9
optimized out slot
JS_UNINITIALIZED_LEXICAL = 10
uninitialized lexical bindings that produce ReferenceError on touch.
JS_MISSING_ARGUMENTS = 11
arguments object can’t be created because environment is dead.
JS_INTERRUPT_REGEXP = 12
exception value thrown when interrupting irregexp
JS_GENERIC_MAGIC = 13
for local use
JS_ERROR_WITHOUT_CAUSE = 14
When an error object is created without the error cause argument, we set the error’s cause slot to this magic value.
JS_WHY_MAGIC_COUNT = 15
When an error object is created without the error cause argument, we set the error’s cause slot to this magic value.
Trait Implementations§
Source§impl Clone for JSWhyMagic
impl Clone for JSWhyMagic
Source§fn clone(&self) -> JSWhyMagic
fn clone(&self) -> JSWhyMagic
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more