nanvm_harness/gen.fixtures/
parameters.rs1use nanvm_lib::vm::unstable::{f64_any, strict_eq, strict_ne, string_any, string_key};
4use nanvm_lib::vm::{Any, Array, IStaticFunction, Nullish, ToAny, ToArray, ToObject};
5
6#[rustfmt::skip]
7#[allow(clippy::if_same_then_else)]
8pub fn module<A: IStaticFunction>(_runtime: Any<A>) -> Result<Any<A>, Any<A>> {
9 let _b8: Any<A> = A::static_function(|_self, _args| {
10 let _b767: Any<A> = _args.rest(1).to_any();
11 Ok(A::static_function(|_self, _args| {
12 let _b680: Any<A> = _args.rest(1).to_any();
13 Ok([A::frame(_self)[0].clone(), A::frame(_self)[1].clone(), _args.argument(0), _b680.clone(), A::frame(_self)[1].clone(), _b680.clone()].to_array().to_any())
14 }, 1, [_args.argument(0), _b767.clone()].to_array(), Some("($2,...$3)=>[$0,$1,$2,$3,$1,$3]")).to_any())
15 }, 1, Array::default(), Some("($0,...$1)=>($2,...$3)=>[$0,$1,$2,$3,$1,$3]")).to_any();
16 let _b9: Any<A> = (Any::call(_b8.clone(), [f64_any(0x3ff0000000000000), f64_any(0x4000000000000000), f64_any(0x4008000000000000)].to_array().to_any()))?;
17 let _b10: Any<A> = (Any::call(_b9.clone(), [f64_any(0x4010000000000000), f64_any(0x4014000000000000)].to_array().to_any()))?;
18 let _b11: Any<A> = (Any::call(_b9.clone(), [f64_any(0x4018000000000000)].to_array().to_any()))?;
19 let _b17: Any<A> = A::static_function(|_self, _args| {
20 let _b1550: Any<A> = _args.rest(3).to_any();
21 Ok([_args.argument(0), _args.argument(1), _args.argument(2), _b1550.clone()].to_array().to_any())
22 }, 3, Array::default(), Some("($0,$1,$2,...$3)=>[$0,$1,$2,$3]")).to_any();
23 Ok([(string_key("default"), [(Any::dot(_b17.clone(), string_any("length")).end())?, (Any::call(_b17.clone(), [f64_any(0x3ff0000000000000), f64_any(0x4000000000000000), f64_any(0x4008000000000000), f64_any(0x4010000000000000), f64_any(0x4014000000000000)].to_array().to_any()))?, (strict_eq((Any::dot((Any::call(_b17.clone(), Array::default().to_any()))?, f64_any(0x0000000000000000)).end())?, Nullish::Undefined.to_any()))?, (strict_eq((Any::dot((Any::call(_b17.clone(), [Nullish::Undefined.to_any()].to_array().to_any()))?, f64_any(0x3ff0000000000000)).end())?, Nullish::Undefined.to_any()))?, (strict_eq((Any::dot((Any::dot((Any::call(_b17.clone(), [f64_any(0x3ff0000000000000), f64_any(0x4000000000000000), f64_any(0x4008000000000000), Nullish::Undefined.to_any()].to_array().to_any()))?, f64_any(0x4008000000000000)).end())?, f64_any(0x0000000000000000)).end())?, Nullish::Undefined.to_any()))?, (Any::dot((Any::dot((Any::call(_b17.clone(), [f64_any(0x3ff0000000000000), f64_any(0x4000000000000000), f64_any(0x4008000000000000), Nullish::Undefined.to_any()].to_array().to_any()))?, f64_any(0x4008000000000000)).end())?, string_any("length")).end())?, (Any::dot(_b9.clone(), string_any("length")).end())?, _b10.clone(), (strict_eq((Any::dot(_b10.clone(), f64_any(0x3ff0000000000000)).end())?, (Any::dot(_b10.clone(), f64_any(0x4010000000000000)).end())?))?, (strict_eq((Any::dot(_b10.clone(), f64_any(0x4008000000000000)).end())?, (Any::dot(_b10.clone(), f64_any(0x4014000000000000)).end())?))?, (strict_eq((Any::dot(_b10.clone(), f64_any(0x3ff0000000000000)).end())?, (Any::dot(_b11.clone(), f64_any(0x3ff0000000000000)).end())?))?, (strict_ne((Any::dot(_b10.clone(), f64_any(0x4008000000000000)).end())?, (Any::dot(_b11.clone(), f64_any(0x4008000000000000)).end())?))?].to_array().to_any())].to_object().to_any())
24}