Skip to main content

nanvm_harness/gen.fixtures/
intrinsic_throws.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, 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 _b0: Any<A> = A::static_function(|_self, _args| Any::dot(_args.argument(0), string_any("slice")).end_call_native(|| Ok([_args.argument(1), _args.argument(2)].to_array().to_any())), 3, Array::default(), Some("($0,$1,$2)=>$0.slice($1,$2)")).to_any();
10    Ok([(string_key("default"), [(Any::call(_b0.clone(), [string_any("ab"), f64_any(0x0000000000000000), f64_any(0x3ff0000000000000)].to_array().to_any()))?, (Any::call(_b0.clone(), [f64_any(0x4014000000000000), f64_any(0x0000000000000000), f64_any(0x3ff0000000000000)].to_array().to_any()))?].to_array().to_any())].to_object().to_any())
11}