Skip to main content

nanvm_harness/gen.expected/
string_methods.rs

1// Expectation of `nanvm/harness/fixtures/string-methods.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_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("ell"), string_any("rld"), string_any("ell"), string_any("**hello, wörld"), string_any("hello, wörldab"), string_any("hello, wörldhello, wörld"), [string_any("hello"), string_any("wörld")].to_array().to_any(), string_any("heLlo, wörld"), string_any("heLLo, wörLd"), f64_any(0x4010000000000000), f64_any(0x4010000000000000), true.to_any(), true.to_any(), true.to_any(), string_any("e"), string_any("d"), string_any("e"), f64_any(0x4059400000000000), f64_any(0x406ec00000000000), string_any("x"), string_any("x "), string_any("  x"), string_any("hello, wörld!1"), false.to_any(), string_any("a�")].to_array().to_any())].to_object().to_any())
10}
11
12#[rustfmt::skip]
13pub const JSON: Option<&[u8]> = Some(&[0x5b, 0x22, 0x65, 0x6c, 0x6c, 0x22, 0x2c, 0x22, 0x72, 0x6c, 0x64, 0x22, 0x2c, 0x22, 0x65, 0x6c, 0x6c, 0x22, 0x2c, 0x22, 0x2a, 0x2a, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x2c, 0x20, 0x77, 0xc3, 0xb6, 0x72, 0x6c, 0x64, 0x22, 0x2c, 0x22, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x2c, 0x20, 0x77, 0xc3, 0xb6, 0x72, 0x6c, 0x64, 0x61, 0x62, 0x22, 0x2c, 0x22, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x2c, 0x20, 0x77, 0xc3, 0xb6, 0x72, 0x6c, 0x64, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x2c, 0x20, 0x77, 0xc3, 0xb6, 0x72, 0x6c, 0x64, 0x22, 0x2c, 0x5b, 0x22, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x22, 0x2c, 0x22, 0x77, 0xc3, 0xb6, 0x72, 0x6c, 0x64, 0x22, 0x5d, 0x2c, 0x22, 0x68, 0x65, 0x4c, 0x6c, 0x6f, 0x2c, 0x20, 0x77, 0xc3, 0xb6, 0x72, 0x6c, 0x64, 0x22, 0x2c, 0x22, 0x68, 0x65, 0x4c, 0x4c, 0x6f, 0x2c, 0x20, 0x77, 0xc3, 0xb6, 0x72, 0x4c, 0x64, 0x22, 0x2c, 0x34, 0x2c, 0x34, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x74, 0x72, 0x75, 0x65, 0x2c, 0x22, 0x65, 0x22, 0x2c, 0x22, 0x64, 0x22, 0x2c, 0x22, 0x65, 0x22, 0x2c, 0x31, 0x30, 0x31, 0x2c, 0x32, 0x34, 0x36, 0x2c, 0x22, 0x78, 0x22, 0x2c, 0x22, 0x78, 0x20, 0x22, 0x2c, 0x22, 0x20, 0x20, 0x78, 0x22, 0x2c, 0x22, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x2c, 0x20, 0x77, 0xc3, 0xb6, 0x72, 0x6c, 0x64, 0x21, 0x31, 0x22, 0x2c, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x2c, 0x22, 0x61, 0xef, 0xbf, 0xbd, 0x22, 0x5d]);
14pub const THROWS: bool = false;