()
| 136 | |
| 137 | #[tokio::test] |
| 138 | async fn json_stringify_objects() { |
| 139 | test_sync_with(|ctx| { |
| 140 | let date: Value = ctx.eval("let obj = { date: new Date(0) };obj;")?; |
| 141 | let stringified = json_stringify(&ctx, date.clone())?.unwrap(); |
| 142 | let stringified_2 = ctx.json_stringify(date)?.unwrap().to_string()?; |
| 143 | assert_eq!(stringified, stringified_2); |
| 144 | Ok(()) |
| 145 | }) |
| 146 | .await; |
| 147 | } |
| 148 | |
| 149 | #[tokio::test] |
| 150 | async fn huge_numbers() { |
nothing calls this directly
no test coverage detected