summaryrefslogtreecommitdiff
path: root/ext/url
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-01-08 23:48:46 +0100
committerGitHub <noreply@github.com>2023-01-08 23:48:46 +0100
commitc41d4ff90e09b63bd1894052352a5acba57b1704 (patch)
tree52be95551ed263c2f4831aaefc78bb6fdda6d89c /ext/url
parent2be1282be42369e558cc77f75b22488ce7a8215e (diff)
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'ext/url')
-rw-r--r--ext/url/benches/url_ops.rs2
-rw-r--r--ext/url/lib.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/ext/url/benches/url_ops.rs b/ext/url/benches/url_ops.rs
index 315ea7260..63810733d 100644
--- a/ext/url/benches/url_ops.rs
+++ b/ext/url/benches/url_ops.rs
@@ -8,7 +8,7 @@ fn setup() -> Vec<Extension> {
vec![
deno_webidl::init(),
deno_url::init(),
- Extension::builder()
+ Extension::builder("bench_setup")
.js(vec![(
"setup",
"const { URL } = globalThis.__bootstrap.url;",
diff --git a/ext/url/lib.rs b/ext/url/lib.rs
index ba1167d54..6990017f5 100644
--- a/ext/url/lib.rs
+++ b/ext/url/lib.rs
@@ -18,7 +18,8 @@ use crate::urlpattern::op_urlpattern_parse;
use crate::urlpattern::op_urlpattern_process_match_input;
pub fn init() -> Extension {
- Extension::builder()
+ Extension::builder(env!("CARGO_PKG_NAME"))
+ .dependencies(vec!["deno_webidl"])
.js(include_js_files!(
prefix "deno:ext/url",
"00_url.js",