fn from_boolean(argument: &Value) -> Self {
        let mut obj = Object {
            kind: ObjectKind::Boolean,
            internal_slots: Box::new(HashMap::new()),
            properties: Box::new(HashMap::new()),
            sym_properties: Box::new(HashMap::new()),
            state: None,
        };

        obj.internal_slots
            .insert("BooleanData".to_string(), argument.clone());
        obj
    }
/// Return a new Boolean object whose [[BooleanData]] internal slot is set to argument.
Return a new Boolean object whose [[BooleanData]] internal slot is set to argument.
Return a new Boolean object whose [[ BooleanData ]] internal slot is set to argument .
fn from_boolean(argument: &Value) -> Self {
        let mut obj = Object {
            kind: ObjectKind::Boolean,
            internal_slots: Box::new(HashMap::new()),
            properties: Box::new(HashMap::new()),
            sym_properties: Box::new(HashMap::new()),
            state: None,
        };
        obj.internal_slots
            .insert("BooleanData".to_string(), argument.clone());
        obj
    }
fn from_boolean ( argument : & Value ) -> Self { let mut obj = Object { kind : ObjectKind :: Boolean , internal_slots : Box :: new ( HashMap :: new ( ) ) , properties : Box :: new ( HashMap :: new ( ) ) , sym_properties : Box :: new ( HashMap :: new ( ) ) , state : None , } ; obj . internal_slots . insert ( " " . to_string ( ) , argument . clone ( ) ) ; obj }
Return a new Boolean object whose [[BooleanData]] internal slot is set to argument.
Return a new Boolean object whose [[ BooleanData ]] internal slot is set to argument .
argument
&Value
argument
&Value