Boa 0.10.0

Boa is a Javascript lexer, parser and Just-in-Time compiler written in Rust. Currently, it has support for some of the language.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::exec;

#[test]
fn global_this_exists_on_global_object_and_evaluates_to_an_object() {
    let scenario = r#"
        typeof globalThis;
        "#;

    assert_eq!(&exec(scenario), "\"object\"");
}