nanvm_harness/gen.expected/
object_spread.rs1use nanvm_lib::vm::unstable::{f64_any, string_any, string_any_utf16, string_key};
4use nanvm_lib::vm::{Any, IVm, Object, 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 Ok([(string_key("default"), [[(string_key("a"), f64_any(0x3ff0000000000000)), (string_key("b"), f64_any(0x4000000000000000)), (string_key("c"), f64_any(0x4008000000000000))].to_object().to_any(), [(string_key("b"), f64_any(0x4000000000000000)), (string_key("a"), f64_any(0x3ff0000000000000))].to_object().to_any(), [(string_key("a"), f64_any(0x0000000000000000)), (string_key("b"), f64_any(0x4000000000000000))].to_object().to_any(), [(string_key("0"), string_any("p")), (string_key("z"), f64_any(0x0000000000000000))].to_object().to_any(), [(string_key("0"), string_any("a")), (string_key("1"), string_any_utf16(&[0xd83d])), (string_key("2"), string_any_utf16(&[0xde00]))].to_object().to_any(), Object::default().to_any()].to_array().to_any())].to_object().to_any())
10}
11
12#[rustfmt::skip]
13pub const JSON: Option<&[u8]> = Some(&[0x5b, 0x7b, 0x22, 0x61, 0x22, 0x3a, 0x31, 0x2c, 0x22, 0x62, 0x22, 0x3a, 0x32, 0x2c, 0x22, 0x63, 0x22, 0x3a, 0x33, 0x7d, 0x2c, 0x7b, 0x22, 0x62, 0x22, 0x3a, 0x32, 0x2c, 0x22, 0x61, 0x22, 0x3a, 0x31, 0x7d, 0x2c, 0x7b, 0x22, 0x61, 0x22, 0x3a, 0x30, 0x2c, 0x22, 0x62, 0x22, 0x3a, 0x32, 0x7d, 0x2c, 0x7b, 0x22, 0x30, 0x22, 0x3a, 0x22, 0x70, 0x22, 0x2c, 0x22, 0x7a, 0x22, 0x3a, 0x30, 0x7d, 0x2c, 0x7b, 0x22, 0x30, 0x22, 0x3a, 0x22, 0x61, 0x22, 0x2c, 0x22, 0x31, 0x22, 0x3a, 0x22, 0x5c, 0x75, 0x64, 0x38, 0x33, 0x64, 0x22, 0x2c, 0x22, 0x32, 0x22, 0x3a, 0x22, 0x5c, 0x75, 0x64, 0x65, 0x30, 0x30, 0x22, 0x7d, 0x2c, 0x7b, 0x7d, 0x5d]);
14pub const THROWS: bool = false;