Skip to content

Commit

Permalink
fix(pkg::compiler): incorrect dummy mtime function
Browse files Browse the repository at this point in the history
  • Loading branch information
Myriad-Dreamin committed Oct 31, 2023
1 parent 17d86f8 commit d21c0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl TypstCompilerBuilder {
pub fn set_dummy_access_model(&mut self) -> ZResult<()> {
self.access_model = Some(ProxyAccessModel {
context: wasm_bindgen::JsValue::UNDEFINED,
mtime_fn: js_sys::Function::new_no_args("return new Date(0)"),
mtime_fn: js_sys::Function::new_no_args("return 0"),
is_file_fn: js_sys::Function::new_no_args("return true"),
real_path_fn: js_sys::Function::new_with_args("path", "return path"),
read_all_fn: js_sys::Function::new_no_args(
Expand Down

0 comments on commit d21c0d2

Please sign in to comment.