Skip to main content

nanvm_harness/gen.fixtures/
object_entries_throws.rs

1// @generated by `fjs compile`. Do not edit: recompile the source module instead.
2
3use nanvm_lib::vm::unstable::{spread_entries, spread_object, static_read, string_key};
4use nanvm_lib::vm::{Any, IVm, Nullish, ToAny, ToArray, ToObject};
5
6#[rustfmt::skip]
7#[allow(clippy::if_same_then_else)]
8pub fn module<A: IVm>(runtime: Any<A>) -> Result<Any<A>, Any<A>> {
9    let _b1: Any<A> = (static_read(&runtime, "Object.entries"))?;
10    Ok([(string_key("default"), [spread_object([spread_entries(Nullish::Null.to_any())]), (Any::call(_b1.clone(), [Nullish::Null.to_any()].to_array().to_any()))?].to_array().to_any())].to_object().to_any())
11}