fn create_instrinsics(&self) {
        let global = &self.global_obj;
        // Create intrinsics, add global objects here
        object::init(global);
        function::init(global);

        global.set_field_slice("String", string::create_constructor(global));
        global.set_field_slice("RegExp", regexp::create_constructor(global));
        global.set_field_slice("Array", array::create_constructor(global));
        global.set_field_slice("Boolean", boolean::create_constructor(global));
        global.set_field_slice("JSON", json::create_constructor(global));
        global.set_field_slice("Math", math::create_constructor(global));
        global.set_field_slice("console", console::create_constructor(global));
    }
// Sets up the default global objects within Global
Sets up the default global objects within Global
Sets up the default global objects within Global
fn create_instrinsics(&self) {
        let global = &self.global_obj;
        // Create intrinsics, add global objects here
        object::init(global);
        function::init(global);
        global.set_field_slice("String", string::create_constructor(global));
        global.set_field_slice("RegExp", regexp::create_constructor(global));
        global.set_field_slice("Array", array::create_constructor(global));
        global.set_field_slice("Boolean", boolean::create_constructor(global));
        global.set_field_slice("JSON", json::create_constructor(global));
        global.set_field_slice("Math", math::create_constructor(global));
        global.set_field_slice("console", console::create_constructor(global));
    }
fn create_instrinsics ( & self ) { let global = & self . global_obj ; // Create intrinsics, add global objects here object :: init ( global ) ; function :: init ( global ) ; global . set_field_slice ( " " , string :: create_constructor ( global ) ) ; global . set_field_slice ( " " , regexp :: create_constructor ( global ) ) ; global . set_field_slice ( " " , array :: create_constructor ( global ) ) ; global . set_field_slice ( " " , boolean :: create_constructor ( global ) ) ; global . set_field_slice ( " " , json :: create_constructor ( global ) ) ; global . set_field_slice ( " " , math :: create_constructor ( global ) ) ; global . set_field_slice ( " " , console :: create_constructor ( global ) ) ; }
Sets up the default global objects within Global
Sets up the default global objects within Global
&self
&self