summaryrefslogtreecommitdiff
path: root/ext/webidl/benches
diff options
context:
space:
mode:
Diffstat (limited to 'ext/webidl/benches')
-rw-r--r--ext/webidl/benches/dict.js7
-rw-r--r--ext/webidl/benches/dict.rs2
2 files changed, 7 insertions, 2 deletions
diff --git a/ext/webidl/benches/dict.js b/ext/webidl/benches/dict.js
index 353a630eb..b53326de9 100644
--- a/ext/webidl/benches/dict.js
+++ b/ext/webidl/benches/dict.js
@@ -2,7 +2,10 @@
// deno-lint-ignore-file
-const { createDictionaryConverter, converters } = globalThis.__bootstrap.webidl;
+import {
+ converters,
+ createDictionaryConverter,
+} from "internal:ext/webidl/00_webidl.js";
const TextDecodeOptions = createDictionaryConverter(
"TextDecodeOptions",
@@ -14,6 +17,7 @@ const TextDecodeOptions = createDictionaryConverter(
},
],
);
+globalThis.TextDecodeOptions = TextDecodeOptions;
// Sanity check
{
@@ -33,3 +37,4 @@ function handwrittenConverter(V) {
}
return defaultValue;
}
+globalThis.handwrittenConverter = handwrittenConverter;
diff --git a/ext/webidl/benches/dict.rs b/ext/webidl/benches/dict.rs
index e7df8af62..1400a00ed 100644
--- a/ext/webidl/benches/dict.rs
+++ b/ext/webidl/benches/dict.rs
@@ -11,7 +11,7 @@ fn setup() -> Vec<Extension> {
vec![
deno_webidl::init(),
Extension::builder("deno_webidl_bench")
- .js(vec![("setup", include_str!("dict.js"))])
+ .esm(vec![("internal:setup", include_str!("dict.js"))])
.build(),
]
}