Skip to main content

nanvm_harness/gen.fixtures/
nested.rs

1// @generated by `fjs compile`. Do not edit: recompile the source module instead.
2
3use nanvm_lib::vm::unstable::{f64_any, string_key};
4use nanvm_lib::vm::{Any, Array, IStaticFunction, 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 _b2: Any<A> = A::static_function(|_self, _args| { Ok(A::static_function(|_self, _args| {
10        let _b60: Any<A> = _args.rest(0).to_any();
11        Ok(_b60.clone())
12    }, 0, Array::default(), Some("(...$0)=>$0")).to_any()) }, 0, Array::default(), Some("()=>(...$0)=>$0")).to_any();
13    Ok([(string_key("default"), {
14        let _b3: Any<A> = (Any::call(_b2.clone(), [f64_any(0x3ff0000000000000)].to_array().to_any()))?;
15        (Any::call(_b3.clone(), [f64_any(0x4000000000000000), f64_any(0x4008000000000000)].to_array().to_any()))?
16    })].to_object().to_any())
17}