nanvm_harness/gen.fixtures/nullish.rs
1// @generated by `fjs compile`. Do not edit: recompile the source module instead.
2
3use nanvm_lib::vm::unstable::{string_any, string_key};
4use nanvm_lib::vm::{Any, IVm, Nullish, ToAny, 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 Ok([(string_key("default"), (Any::dot((Any::dot([(string_key("a"), Nullish::Null.to_any())].to_object().to_any(), string_any("a")).end())?, string_any("x")).end())?)].to_object().to_any())
10}