Skip to main content

nanvm_harness/gen.expected/
string_from_char_code.rs

1// Expectation of `nanvm/harness/fixtures/string-from-char-code.mjs`, generated by `fjs/nanvm/expected`. Do not edit: change the fixture and regenerate.
2
3use nanvm_lib::vm::unstable::{f64_any, string_any, string_any_utf16, string_key};
4use nanvm_lib::vm::{Any, IVm, 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_any("\u{5}\u{6}"), string_any(""), string_any("\u{5}"), string_any("\u{5}\u{6}\u{7}"), string_any("\u{0}￿A￿￿A\u{0}\u{0}\u{0}\u{0}\u{0}"), [string_any("\u{0}"), string_any("￿"), string_any("A"), string_any("￿"), string_any("￿"), string_any("A"), string_any("\u{0}"), string_any("\u{0}"), string_any("\u{0}"), string_any("\u{0}"), string_any("\u{0}")].to_array().to_any(), [string_any("\u{0}"), string_any("\u{0}"), string_any("\u{1}"), string_any("\u{0}"), string_any("A"), string_any("\u{0}"), string_any("\u{0}"), string_any("B"), string_any("\u{0}"), string_any("\u{0}"), string_any("C"), string_any("D")].to_array().to_any(), string_any_utf16(&[0xd800]), string_any_utf16(&[0xdc00]), string_any("😀"), [f64_any(0x3ff0000000000000), f64_any(0x3ff0000000000000), true.to_any(), true.to_any(), string_any("function"), string_any("function fromCharCode() { [native code] }")].to_array().to_any()].to_array().to_any())].to_object().to_any())
10}
11
12#[rustfmt::skip]
13pub const JSON: Option<&[u8]> = Some(&[0x5b, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x35, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x36, 0x22, 0x2c, 0x22, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x35, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x35, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x36, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x37, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0xef, 0xbf, 0xbf, 0x41, 0xef, 0xbf, 0xbf, 0xef, 0xbf, 0xbf, 0x41, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x5b, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0xef, 0xbf, 0xbf, 0x22, 0x2c, 0x22, 0x41, 0x22, 0x2c, 0x22, 0xef, 0xbf, 0xbf, 0x22, 0x2c, 0x22, 0xef, 0xbf, 0xbf, 0x22, 0x2c, 0x22, 0x41, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x5d, 0x2c, 0x5b, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x31, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x41, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x42, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x30, 0x30, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x43, 0x22, 0x2c, 0x22, 0x44, 0x22, 0x5d, 0x2c, 0x22, 0x5c, 0x75, 0x64, 0x38, 0x30, 0x30, 0x22, 0x2c, 0x22, 0x5c, 0x75, 0x64, 0x63, 0x30, 0x30, 0x22, 0x2c, 0x22, 0xf0, 0x9f, 0x98, 0x80, 0x22, 0x2c, 0x5b, 0x31, 0x2c, 0x31, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x22, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x2c, 0x22, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x66, 0x72, 0x6f, 0x6d, 0x43, 0x68, 0x61, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x28, 0x29, 0x20, 0x7b, 0x20, 0x5b, 0x6e, 0x61, 0x74, 0x69, 0x76, 0x65, 0x20, 0x63, 0x6f, 0x64, 0x65, 0x5d, 0x20, 0x7d, 0x22, 0x5d, 0x5d]);
14pub const THROWS: bool = false;