Boa 0.13.1

DEPRECATED. Use the boa_engine crate instead.
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");
}