Skip to main content

nanvm_harness/gen.fixtures/
arguments.rs

1// @generated by `fjs compile`. Do not edit: recompile the source module instead.
2
3use nanvm_lib::vm::unstable::{
4    f64_any, spread_array, spread_item, strict_eq, strict_ne, string_any, string_key,
5};
6use nanvm_lib::vm::{Any, Array, IStaticFunction, Nullish, ToAny, ToArray, ToObject};
7
8#[rustfmt::skip]
9#[allow(clippy::if_same_then_else)]
10pub fn module<A: IStaticFunction>(_runtime: Any<A>) -> Result<Any<A>, Any<A>> {
11    let _b1: Any<A> = A::static_function(|_self, _args| {
12        let _b154: Any<A> = _args.rest(0).to_any();
13        Ok(_b154.clone())
14    }, 0, Array::default(), Some("(...$0)=>$0")).to_any();
15    let _b2: Any<A> = [f64_any(0x3ff0000000000000), f64_any(0x4000000000000000), f64_any(0x4008000000000000)].to_array().to_any();
16    let _b3: Any<A> = (Any::call(_b1.clone(), (spread_array([spread_item(_b2.clone())?]))?))?;
17    let _b7: Any<A> = A::static_function(|_self, _args| {
18        let _b664: Any<A> = _args.rest(0).to_any();
19        Any::call(A::frame(_self)[0].clone(), (spread_array([spread_item(_b664.clone())?]))?)
20    }, 0, [_b1.clone()].to_array(), Some("(...$1)=>$0(...$1)")).to_any();
21    let _b8: Any<A> = (Any::call(_b7.clone(), (spread_array([spread_item(_b2.clone())?]))?))?;
22    let _b10: Any<A> = A::static_function(|_self, _args| { Ok(_args.argument(0)) }, 2, Array::default(), Some("($0,$1)=>$0")).to_any();
23    let _b13: Any<A> = A::static_function(|_self, _args| { Ok(_args.argument(1)) }, 2, Array::default(), Some("($0,$1)=>$1")).to_any();
24    let _b15: Any<A> = A::static_function(|_self, _args| { Ok(f64_any(0x401c000000000000)) }, 0, Array::default(), Some("()=>7")).to_any();
25    let _b27: Any<A> = A::static_function(|_self, _args| {
26        let _b2364: Any<A> = _args.rest(1).to_any();
27        Ok(_b2364.clone())
28    }, 1, Array::default(), Some("($0,...$1)=>$1")).to_any();
29    Ok([(string_key("default"), [(Any::dot(_b10.clone(), string_any("length")).end())?, (Any::dot(_b13.clone(), string_any("length")).end())?, (Any::dot(_b15.clone(), string_any("length")).end())?, (Any::call(_b10.clone(), [f64_any(0x3ff0000000000000), f64_any(0x4000000000000000), f64_any(0x4008000000000000), f64_any(0x4010000000000000)].to_array().to_any()))?, (Any::call(_b13.clone(), [f64_any(0x3ff0000000000000), f64_any(0x4000000000000000), f64_any(0x4008000000000000), f64_any(0x4010000000000000)].to_array().to_any()))?, (strict_eq((Any::call(_b10.clone(), Array::default().to_any()))?, Nullish::Undefined.to_any()))?, (strict_eq((Any::call(_b13.clone(), [f64_any(0x3ff0000000000000)].to_array().to_any()))?, Nullish::Undefined.to_any()))?, (Any::call(_b15.clone(), [f64_any(0x3ff0000000000000), f64_any(0x4000000000000000), f64_any(0x4008000000000000)].to_array().to_any()))?, (Any::dot((Any::call(_b27.clone(), Array::default().to_any()))?, string_any("length")).end())?, (Any::dot((Any::call(_b27.clone(), [f64_any(0x3ff0000000000000)].to_array().to_any()))?, string_any("length")).end())?, (Any::dot((Any::call(_b27.clone(), [f64_any(0x3ff0000000000000), Nullish::Undefined.to_any()].to_array().to_any()))?, string_any("length")).end())?, (Any::dot((Any::call(_b27.clone(), [Nullish::Undefined.to_any(), Nullish::Undefined.to_any(), Nullish::Undefined.to_any()].to_array().to_any()))?, string_any("length")).end())?, _b3.clone(), (strict_eq(_b3.clone(), _b2.clone()))?, (strict_eq((Any::dot(_b3.clone(), f64_any(0x0000000000000000)).end())?, (Any::dot(_b2.clone(), f64_any(0x0000000000000000)).end())?))?, _b8.clone(), (strict_eq(_b8.clone(), _b3.clone()))?, (strict_ne((Any::call(_b1.clone(), Array::default().to_any()))?, (Any::call(_b1.clone(), Array::default().to_any()))?))?, (Any::dot((Any::call(_b7.clone(), Array::default().to_any()))?, string_any("length")).end())?].to_array().to_any())].to_object().to_any())
30}