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.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/ext/web/benches/timers_ops.rs b/ext/web/benches/timers_ops.rs
index 30f50b7d9..f5d03d6c3 100644
--- a/ext/web/benches/timers_ops.rs
+++ b/ext/web/benches/timers_ops.rs
@@ -26,12 +26,10 @@ fn setup() -> Vec<Extension> {
deno_web::init::<Permissions>(BlobStore::default(), None),
Extension::builder()
.js(vec![
- ("setup",
- Box::new(|| Ok(r#"
- const { opNow, setTimeout, handleTimerMacrotask } = globalThis.__bootstrap.timers;
- Deno.core.setMacrotaskCallback(handleTimerMacrotask);
- "#.to_owned())),
- ),
+ ("setup", r#"
+ const { opNow, setTimeout, handleTimerMacrotask } = globalThis.__bootstrap.timers;
+ Deno.core.setMacrotaskCallback(handleTimerMacrotask);
+ "#),
])
.state(|state| {
state.put(Permissions{});