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
11
12
13
14
15
16
17
18
use crate::exec;

#[test]
fn undefined_direct_evaluation() {
    let scenario = r#"
        undefined;
        "#;
    assert_eq!(&exec(scenario), "undefined");
}

#[test]
fn undefined_assignment() {
    let scenario = r#"
        a = undefined;
        a
        "#;
    assert_eq!(&exec(scenario), "undefined");
}