Skip to main content

nanvm_harness/gen.expected/
parameters.rs

1// Expectation of `nanvm/harness/fixtures/parameters.mjs`, generated by `fjs/nanvm/expected`. Do not edit: change the fixture and regenerate.
2
3use nanvm_lib::vm::unstable::{f64_any, string_key};
4use nanvm_lib::vm::{Any, IVm, ToAny, ToArray, ToObject};
5
6#[rustfmt::skip]
7#[allow(clippy::if_same_then_else)]
8pub fn module<A: IVm>(_runtime: Any<A>) -> Result<Any<A>, Any<A>> {
9    Ok([(string_key("default"), [f64_any(0x4008000000000000), [f64_any(0x3ff0000000000000), f64_any(0x4000000000000000), f64_any(0x4008000000000000), [f64_any(0x4010000000000000), f64_any(0x4014000000000000)].to_array().to_any()].to_array().to_any(), true.to_any(), true.to_any(), true.to_any(), f64_any(0x3ff0000000000000), f64_any(0x3ff0000000000000), {
10        let _b2: Any<A> = [f64_any(0x4000000000000000), f64_any(0x4008000000000000)].to_array().to_any();
11        let _b3: Any<A> = [f64_any(0x4014000000000000)].to_array().to_any();
12        [f64_any(0x3ff0000000000000), _b2.clone(), f64_any(0x4010000000000000), _b3.clone(), _b2.clone(), _b3.clone()].to_array().to_any()
13    }, true.to_any(), true.to_any(), true.to_any(), true.to_any()].to_array().to_any())].to_object().to_any())
14}
15
16#[rustfmt::skip]
17pub const JSON: Option<&[u8]> = Some(&[0x5b, 0x33, 0x2c, 0x5b, 0x31, 0x2c, 0x32, 0x2c, 0x33, 0x2c, 0x5b, 0x34, 0x2c, 0x35, 0x5d, 0x5d, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x31, 0x2c, 0x31, 0x2c, 0x5b, 0x31, 0x2c, 0x5b, 0x32, 0x2c, 0x33, 0x5d, 0x2c, 0x34, 0x2c, 0x5b, 0x35, 0x5d, 0x2c, 0x5b, 0x32, 0x2c, 0x33, 0x5d, 0x2c, 0x5b, 0x35, 0x5d, 0x5d, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x5d]);
18pub const THROWS: bool = false;