summaryrefslogtreecommitdiff
path: root/ext/web/benches
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-02-07 22:09:50 +0100
committerGitHub <noreply@github.com>2023-02-07 21:09:50 +0000
commit49af1ab18da02f09e65506c873526c40d005c4ed (patch)
tree0d8f6028e98907096019500a7e1c717408eeb4e2 /ext/web/benches
parentb4aa1530970f7b9cc4e6f2f27e077852c4e178d3 (diff)
refactor: remove prefix from include_js_files & use extension name (#17683)
Diffstat (limited to 'ext/web/benches')
-rw-r--r--ext/web/benches/encoding.rs2
-rw-r--r--ext/web/benches/timers_ops.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/web/benches/encoding.rs b/ext/web/benches/encoding.rs
index f8ad57c4f..a96da1bc6 100644
--- a/ext/web/benches/encoding.rs
+++ b/ext/web/benches/encoding.rs
@@ -32,7 +32,7 @@ fn setup() -> Vec<Extension> {
.esm(vec![(
"internal:setup",
r#"
- import { TextDecoder } from "internal:ext/web/08_text_encoding.js";
+ import { TextDecoder } from "internal:deno_web/08_text_encoding.js";
globalThis.TextDecoder = TextDecoder;
globalThis.hello12k = Deno.core.encode("hello world\n".repeat(1e3));
"#,
diff --git a/ext/web/benches/timers_ops.rs b/ext/web/benches/timers_ops.rs
index a2af22982..943c73bbc 100644
--- a/ext/web/benches/timers_ops.rs
+++ b/ext/web/benches/timers_ops.rs
@@ -30,7 +30,7 @@ fn setup() -> Vec<Extension> {
Extension::builder("bench_setup")
.esm(vec![
("internal:setup", r#"
- import { setTimeout, handleTimerMacrotask } from "internal:ext/web/02_timers.js";
+ import { setTimeout, handleTimerMacrotask } from "internal:deno_web/02_timers.js";
globalThis.setTimeout = setTimeout;
Deno.core.setMacrotaskCallback(handleTimerMacrotask);
"#),