nanvm_harness/gen.expected/string.rs
1// Expectation of `nanvm/harness/fixtures/string.mjs`, generated by `fjs/nanvm/expected`. Do not edit: change the fixture and regenerate.
2
3use nanvm_lib::vm::unstable::{string_any, string_key};
4use nanvm_lib::vm::{Any, IVm, 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"), string_any("hello"))].to_object().to_any())
10}
11
12#[rustfmt::skip]
13pub const JSON: Option<&[u8]> = Some(&[0x22, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x22]);
14pub const THROWS: bool = false;