nanvm_harness/gen.fixtures/
object_is.rs1use nanvm_lib::vm::unstable::{f64_any, static_read, strict_eq, 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 _b1: Any<A> = A::static_function(|_self, _args| { static_read(&A::frame(_self)[0], "Object.is") }, 0, [runtime.clone()].to_array(), Some("()=>Object.is")).to_any();
10 let _b9: Any<A> = (static_read(&runtime, "Object.is"))?;
11 let _b12: Any<A> = (static_read(&runtime, "Object.is"))?;
12 Ok([(string_key("default"), [(strict_eq((Any::call(_b1.clone(), Array::default().to_any()))?, (Any::call(_b1.clone(), Array::default().to_any()))?))?, (strict_eq((static_read(&runtime, "Object.is"))?, (static_read(&runtime, "Object.is"))?))?, (strict_eq((Any::call(_b1.clone(), Array::default().to_any()))?, _b9.clone()))?, (Any::call(_b9.clone(), [f64_any(0x0000000000000000), f64_any(0x8000000000000000)].to_array().to_any()))?, (Any::call(_b12.clone(), [f64_any(0x7ff8000000000000), f64_any(0x7ff8000000000000)].to_array().to_any()))?, (Any::typeof_((static_read(&runtime, "Object.is"))?))?, ((static_read(&runtime, "Object.is"))?.to_string().map(|v| v.to_any()))?, (_b9.clone().to_string().map(|v| v.to_any()))?, ((string_any("") + ((Any::call(_b1.clone(), Array::default().to_any()))?.to_string().map(|v| v.to_any()))?)? + string_any(""))?].to_array().to_any())].to_object().to_any())
13}