Skip to main content

nanvm_harness/gen.fixtures/
spread.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, string_any, string_key, value_item,
5};
6use nanvm_lib::vm::{Any, IStaticFunction, 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 _b4: Any<A> = A::static_function(|_self, _args| {
12        let _b204: Any<A> = _args.rest(0).to_any();
13        Ok(_b204.clone())
14    }, 0, [runtime.clone()].to_array(), Some("(...$0)=>$0")).to_any();
15    Ok([(string_key("default"), {
16        let _b0: Any<A> = [f64_any(0x3ff0000000000000), f64_any(0x4000000000000000)].to_array().to_any();
17        [(spread_array([value_item(f64_any(0x0000000000000000)), spread_item(_b0.clone())?, value_item(f64_any(0x4008000000000000))]))?, (spread_array([spread_item(string_any("a😀"))?]))?, (Any::call(_b4.clone(), (spread_array([spread_item(_b0.clone())?, value_item(f64_any(0x4010000000000000))]))?))?, (Any::dot((spread_array([spread_item(_b0.clone())?, spread_item(_b0.clone())?]))?, string_any("length")).end())?, (Any::dot(_b0.clone(), string_any("at")).end_call(&runtime, || spread_array([spread_item([f64_any(0x3ff0000000000000)].to_array().to_any())?])))?].to_array().to_any()
18    })].to_object().to_any())
19}