boa_engine 0.21.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
10
11
use crate::{TestAction, run_test_actions};

#[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),
    ]);
}