Skip to main content

nanvm_demos/gen.samples/
identifiers.rs

1// @generated by `fjs compile`. Do not edit: recompile the source module instead.
2
3use nanvm_lib::vm::unstable::{f64_any, string_any, string_key};
4use nanvm_lib::vm::{Any, 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 _b0: Any<A> = [(string_key("if"), f64_any(0x4008000000000000)), (string_key("default"), f64_any(0x4010000000000000))].to_object().to_any();
10    Ok([(string_key("default"), A::static_function(|_self, _args| {
11        let _b362: Any<A> = _args.rest(0).to_any();
12        Ok([(f64_any(0x3ff0000000000000) + (Any::dot(_b362.clone(), f64_any(0x0000000000000000)).end())?)?, f64_any(0x4000000000000000), (Any::dot(A::frame(_self)[0].clone(), string_any("if")).end())?, (Any::dot(A::frame(_self)[0].clone(), string_any("default")).end())?].to_array().to_any())
13    }, 0, [_b0.clone()].to_array(), Some("(...$1)=>[1+$1[0],2,$0.if,$0.default]")).to_any())].to_object().to_any())
14}