summaryrefslogtreecommitdiff
path: root/ext/webidl
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/webidl
parentb4aa1530970f7b9cc4e6f2f27e077852c4e178d3 (diff)
refactor: remove prefix from include_js_files & use extension name (#17683)
Diffstat (limited to 'ext/webidl')
-rw-r--r--ext/webidl/benches/dict.js2
-rw-r--r--ext/webidl/internal.d.ts2
-rw-r--r--ext/webidl/lib.rs5
3 files changed, 3 insertions, 6 deletions
diff --git a/ext/webidl/benches/dict.js b/ext/webidl/benches/dict.js
index b53326de9..b009a3c94 100644
--- a/ext/webidl/benches/dict.js
+++ b/ext/webidl/benches/dict.js
@@ -5,7 +5,7 @@
import {
converters,
createDictionaryConverter,
-} from "internal:ext/webidl/00_webidl.js";
+} from "internal:deno_webidl/00_webidl.js";
const TextDecodeOptions = createDictionaryConverter(
"TextDecodeOptions",
diff --git a/ext/webidl/internal.d.ts b/ext/webidl/internal.d.ts
index 9f47c42e5..22a9a693d 100644
--- a/ext/webidl/internal.d.ts
+++ b/ext/webidl/internal.d.ts
@@ -4,7 +4,7 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
-declare module "internal:ext/webidl/00_webidl.js" {
+declare module "internal:deno_webidl/00_webidl.js" {
interface ConverterOpts {
/**
* The prefix for error messages created by this converter.
diff --git a/ext/webidl/lib.rs b/ext/webidl/lib.rs
index 4e21ef796..1c3d760d3 100644
--- a/ext/webidl/lib.rs
+++ b/ext/webidl/lib.rs
@@ -6,9 +6,6 @@ use deno_core::Extension;
/// Load and execute the javascript code.
pub fn init() -> Extension {
Extension::builder(env!("CARGO_PKG_NAME"))
- .esm(include_js_files!(
- prefix "internal:ext/webidl",
- "00_webidl.js",
- ))
+ .esm(include_js_files!("00_webidl.js",))
.build()
}