summaryrefslogtreecommitdiff
path: root/extensions/timers
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/timers')
-rw-r--r--extensions/timers/02_performance.js2
-rw-r--r--extensions/timers/Cargo.toml3
-rw-r--r--extensions/timers/benches/timers_ops.rs4
3 files changed, 9 insertions, 0 deletions
diff --git a/extensions/timers/02_performance.js b/extensions/timers/02_performance.js
index bca98fdbd..baa1676a2 100644
--- a/extensions/timers/02_performance.js
+++ b/extensions/timers/02_performance.js
@@ -4,6 +4,8 @@
((window) => {
const { webidl, structuredClone } = window.__bootstrap;
const { opNow } = window.__bootstrap.timers;
+ const { DOMException } = window.__bootstrap.domException;
+
const illegalConstructorKey = Symbol("illegalConstructorKey");
const customInspect = Symbol.for("Deno.customInspect");
let performanceEntries = [];
diff --git a/extensions/timers/Cargo.toml b/extensions/timers/Cargo.toml
index bdd04b933..ae754a953 100644
--- a/extensions/timers/Cargo.toml
+++ b/extensions/timers/Cargo.toml
@@ -19,6 +19,9 @@ tokio = { version = "1.7.1", features = ["full"] }
[dev-dependencies]
deno_bench_util = { version = "0.4.0", path = "../../bench_util" }
+deno_url = { version = "0.10.1", path = "../url" }
+deno_web = { version = "0.41.1", path = "../web" }
+deno_webidl = { version = "0.10.1", path = "../webidl" }
[[bench]]
name = "timers_ops"
diff --git a/extensions/timers/benches/timers_ops.rs b/extensions/timers/benches/timers_ops.rs
index e31fe31ac..c463efbfe 100644
--- a/extensions/timers/benches/timers_ops.rs
+++ b/extensions/timers/benches/timers_ops.rs
@@ -3,9 +3,13 @@ use deno_core::Extension;
use deno_bench_util::bench_or_profile;
use deno_bench_util::bencher::{benchmark_group, Bencher};
use deno_bench_util::{bench_js_async, bench_js_sync};
+use deno_web::BlobUrlStore;
fn setup() -> Vec<Extension> {
vec![
+ deno_webidl::init(),
+ deno_url::init(),
+ deno_web::init(BlobUrlStore::default(), None),
deno_timers::init::<deno_timers::NoTimersPermission>(),
Extension::builder()
.js(vec![