fn construct_and_call() {
        let realm = Realm::create();
        let mut engine = Executor::new(realm);
        let init = r#"
        const hello = new String('Hello');
        const world = String('world');
        "#;
        forward(&mut engine, init);
        let hello = forward_val(&mut engine, "hello").unwrap();
        let world = forward_val(&mut engine, "world").unwrap();

        assert_eq!(hello.is_object(), true);
        assert_eq!(world.is_string(), true);
    }
/// Test the correct type is returned from call and construct
Test the correct type is returned from call and construct
Test the correct type is returned from call and construct
fn construct_and_call() {
        let realm = Realm::create();
        let mut engine = Executor::new(realm);
        let init = r#"
        const hello = new String('Hello');
        const world = String('world');
        "#;
        forward(&mut engine, init);
        let hello = forward_val(&mut engine, "hello").unwrap();
        let world = forward_val(&mut engine, "world").unwrap();
        assert_eq!(hello.is_object(), true);
        assert_eq!(world.is_string(), true);
    }
fn construct_and_call ( ) { let realm = Realm :: create ( ) ; let mut engine = Executor :: new ( realm ) ; let init = r#"
        const hello = new String('Hello');
        const world = String('world');
        "# ; forward ( & mut engine , init ) ; let hello = forward_val ( & mut engine , " " ) . unwrap ( ) ; let world = forward_val ( & mut engine , " " ) . unwrap ( ) ; assert_eq ! ( hello is_object ( ) true ) ; assert_eq ! ( world is_string ( ) true ) ; }
Test the correct type is returned from call and construct
Test the correct type is returned from call and construct