From 2f0658476d4fe2ce8bee8ef4c44862ed356ee605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=9C=E7=81=AF?= Date: Wed, 9 Oct 2024 12:25:34 +0800 Subject: [PATCH] chore: remove invalid Instant (#359) --- crates/moonrun/src/template/js_glue.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crates/moonrun/src/template/js_glue.js b/crates/moonrun/src/template/js_glue.js index 5d5f0e17..cede7dc3 100644 --- a/crates/moonrun/src/template/js_glue.js +++ b/crates/moonrun/src/template/js_glue.js @@ -8,14 +8,6 @@ const spectest = { print_char: (x) => print(x), read_char: () => read_char(), }, - Instant: { - now() { - return instant_now(); - }, - elapsed_as_secs_f64(instant) { - return instant_elapsed_as_secs_f64(instant); - } - }, __moonbit_fs_unstable: __moonbit_fs_unstable, __moonbit_rand_unstable: __moonbit_rand_unstable, __moonbit_io_unstable: __moonbit_io_unstable,