Skip to main content

nanvm_harness/gen.expected/
number_methods.rs

1// Expectation of `nanvm/harness/fixtures/number-methods.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, 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("1234.57"), string_any("1235"), string_any("1234.57"), string_any("1.235e+3"), string_any("1.2345678e+3"), string_any("ff"), string_any("-11111111"), string_any("101")].to_array().to_any())].to_object().to_any())
10}
11
12#[rustfmt::skip]
13pub const JSON: Option<&[u8]> = Some(&[0x5b, 0x22, 0x31, 0x32, 0x33, 0x34, 0x2e, 0x35, 0x37, 0x22, 0x2c, 0x22, 0x31, 0x32, 0x33, 0x35, 0x22, 0x2c, 0x22, 0x31, 0x32, 0x33, 0x34, 0x2e, 0x35, 0x37, 0x22, 0x2c, 0x22, 0x31, 0x2e, 0x32, 0x33, 0x35, 0x65, 0x2b, 0x33, 0x22, 0x2c, 0x22, 0x31, 0x2e, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x65, 0x2b, 0x33, 0x22, 0x2c, 0x22, 0x66, 0x66, 0x22, 0x2c, 0x22, 0x2d, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x31, 0x22, 0x2c, 0x22, 0x31, 0x30, 0x31, 0x22, 0x5d]);
14pub const THROWS: bool = false;