boa_engine 0.19.0

Boa is a Javascript lexer, parser and compiler written in Rust. Currently, it has support for some of the language.
Documentation
use crate::Context;

#[test]
fn create_byte_data_block() {
    let context = &mut Context::default();
    // Sunny day
    assert!(super::create_byte_data_block(100, None, context).is_ok());

    // Rainy day
    assert!(super::create_byte_data_block(u64::MAX, None, context).is_err());
}

#[test]
fn create_shared_byte_data_block() {
    let context = &mut Context::default();
    // Sunny day
    assert!(super::shared::create_shared_byte_data_block(100, context).is_ok());

    // Rainy day
    assert!(super::shared::create_shared_byte_data_block(u64::MAX, context).is_err());
}