Might be related to #1670.
This is generated in the WASM binary:
(import "__wbindgen_placeholder__" "__wbg_new_0_f9740686d739025c" (func $_ZN6js_sys4Date5new_028__wbg_new_0_f9740686d739025c17hb9c923e5232adcf6E (type $t14)))
(import "__wbindgen_placeholder__" "__wbg_getTime_14776bfb48a1bff9" (func $_ZN6js_sys4Date8get_time30__wbg_getTime_14776bfb48a1bff917h2cafeb8a0b119e92E (type $t21)))
(import "__wbindgen_placeholder__" "__wbg_new_93d9417ed3fb115d" (func $_ZN6js_sys4Date3new26__wbg_new_93d9417ed3fb115d17h3d23d39e883cfa0aE (type $t13)))
(import "__wbindgen_placeholder__" "__wbg_getTimezoneOffset_d391cb11d54969f8" (func $_ZN6js_sys4Date19get_timezone_offset40__wbg_getTimezoneOffset_d391cb11d54969f817h5529ce4208fed257E (type $t21)))
(import "__wbindgen_placeholder__" "__wbindgen_object_drop_ref" (func $_ZN12wasm_bindgen26__wbindgen_object_drop_ref17hcf4a565fd5f6800eE (type $t0)))
(import "__wbindgen_placeholder__" "__wbindgen_describe" (func $_ZN12wasm_bindgen19__wbindgen_describe17h59ce5de82ebd4502E (type $t0)))
(import "__wbindgen_placeholder__" "__wbindgen_object_clone_ref" (func $_ZN12wasm_bindgen27__wbindgen_object_clone_ref17h15db4c2837f5259cE (type $t13)))
(import "__wbindgen_placeholder__" "__wbindgen_describe_cast" (func $_ZN12wasm_bindgen24__wbindgen_describe_cast17ha38548ac77c567c2E (type $t2)))
(import "__wbindgen_placeholder__" "__wbg_new_no_args_ee98eee5275000a4" (func $_ZN6js_sys8Function11new_no_args34__wbg_new_no_args_ee98eee5275000a417h5bcf20d6f3213511E (type $t2)))
(import "__wbindgen_placeholder__" "__wbg_call_e762c39fa8ea36bf" (func $_ZN6js_sys8Function5call027__wbg_call_e762c39fa8ea36bf17h0b71b3dd99f87517E (type $t2)))
(import "__wbindgen_placeholder__" "__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e" (func $_ZN6js_sys6global17get_global_object6GLOBAL4init45__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e17h36d24bfc8d426ab0E (type $t14)))
(import "__wbindgen_placeholder__" "__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac" (func $_ZN6js_sys6global17get_global_object11GLOBAL_THIS4init50__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac17h00e37b33bc4596d5E (type $t14)))
(import "__wbindgen_placeholder__" "__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2" (func $_ZN6js_sys6global17get_global_object6WINDOW4init45__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa217h604dbadf01852d74E (type $t14)))
(import "__wbindgen_placeholder__" "__wbg_static_accessor_SELF_6fdf4b64710cc91b" (func $_ZN6js_sys6global17get_global_object4SELF4init43__wbg_static_accessor_SELF_6fdf4b64710cc91b17h56744f96b187bd34E (type $t14)))
(import "__wbindgen_placeholder__" "__wbg_getRandomValues_1c61fac11405ffdc" (func $_ZN9getrandom8backends7wasm_js17get_random_values38__wbg_getRandomValues_1c61fac11405ffdc17h790b16b58c986d5aE (type $t4)))
(import "__wbindgen_placeholder__" "__wbg___wbindgen_throw_b855445ff6a94295" (func $_ZN12wasm_bindgen16__wbindgen_throw39__wbg___wbindgen_throw_b855445ff6a9429517h0eb94bf0c42403e1E (type $t4)))
(import "__wbindgen_externref_xform__" "__wbindgen_externref_table_grow" (func $_ZN12wasm_bindgen9externref31__wbindgen_externref_table_grow17h0bf9a54e3274d81dE (type $t13)))
(import "__wbindgen_externref_xform__" "__wbindgen_externref_table_set_null" (func $_ZN12wasm_bindgen9externref35__wbindgen_externref_table_set_null17h7b21a82ba75af9beE (type $t0)))
(import "__wbindgen_placeholder__" "__wbg___wbindgen_is_undefined_2d472862bd29a478" (func $_ZN12wasm_bindgen23__wbindgen_is_undefined46__wbg___wbindgen_is_undefined_2d472862bd29a47817h3bf42df75700b0e3E (type $t13)))
(import "__wbindgen_placeholder__" "__wbg_performance_7a3ffd0b17f663ad" (func $_ZN8web_time4time2js6Global11performance34__wbg_performance_7a3ffd0b17f663ad17h6558ec66ddb3d014E (type $t13)))
(import "__wbindgen_placeholder__" "__wbg_now_2c95c9de01293173" (func $_ZN8web_time4time2js11Performance3now26__wbg_now_2c95c9de0129317317hb7b80dae801cb066E (type $t21)))
This makes it impossible to run in non-JS environments, for example I am trying to make a Typst plugin with this but this makes it impossible.
Might be related to #1670.
This is generated in the WASM binary:
This makes it impossible to run in non-JS environments, for example I am trying to make a Typst plugin with this but this makes it impossible.