summaryrefslogtreecommitdiff
path: root/ext/web/benches/timers_ops.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/web/benches/timers_ops.rs')
-rw-r--r--ext/web/benches/timers_ops.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/web/benches/timers_ops.rs b/ext/web/benches/timers_ops.rs
index b28b1ae1d..a2af22982 100644
--- a/ext/web/benches/timers_ops.rs
+++ b/ext/web/benches/timers_ops.rs
@@ -28,9 +28,10 @@ fn setup() -> Vec<Extension> {
deno_console::init(),
deno_web::init::<Permissions>(BlobStore::default(), None),
Extension::builder("bench_setup")
- .js(vec![
- ("setup", r#"
- const { setTimeout, handleTimerMacrotask } = globalThis.__bootstrap.timers;
+ .esm(vec![
+ ("internal:setup", r#"
+ import { setTimeout, handleTimerMacrotask } from "internal:ext/web/02_timers.js";
+ globalThis.setTimeout = setTimeout;
Deno.core.setMacrotaskCallback(handleTimerMacrotask);
"#),
])