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
use crate::syntax::{
    ast::{
        node::{Block, If, Node},
        Const,
    },
    parser::tests::check_parser,
};

#[test]
fn if_without_else_block() {
    check_parser(
        "if (true) {}",
        vec![If::new::<_, _, Node, _>(Const::from(true), Block::from(Vec::new()), None).into()],
    );
}

#[test]
fn if_without_else_block_with_trailing_newline() {
    check_parser(
        "if (true) {}\n",
        vec![If::new::<_, _, Node, _>(Const::from(true), Block::from(Vec::new()), None).into()],
    );
}