nanvm_harness/gen.fixtures/
method.rs1use 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 Ok([(string_key("default"), (Any::dot([(string_key("f"), A::static_function(|_self, _args| {
10 let _b98: Any<A> = _args.rest(0).to_any();
11 Any::dot(_b98.clone(), f64_any(0x0000000000000000)).end()
12 }, 0, [runtime.clone()].to_array(), Some("(...$0)=>$0[0]")).to_any())].to_object().to_any(), string_any("f")).end_call(&runtime, || Ok([f64_any(0x4045000000000000)].to_array().to_any())))?)].to_object().to_any())
13}