boa_engine 0.19.1

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

#[test]
fn pdt_year_of_week_basic() {
    run_test_actions([
        TestAction::run("let pdt = new Temporal.PlainDateTime(1976, 11, 18, 15, 23, 30, 123, 456, 789, 'iso8601')"),
        TestAction::assert_eq("pdt.yearOfWeek", 1976),
    ]);
}