boa_engine 0.16.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::Const, parser::tests::check_parser};
use boa_interner::{Interner, Sym};

#[test]
fn check_string() {
    // Check empty string
    check_parser(
        "\"\"",
        vec![Const::from(Sym::EMPTY_STRING).into()],
        Interner::default(),
    );

    // Check non-empty string
    let mut interner = Interner::default();
    check_parser(
        "\"hello\"",
        vec![Const::from(interner.get_or_intern_static("hello")).into()],
        interner,
    );
}