summaryrefslogtreecommitdiff
path: root/ext/fetch/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-09 20:22:27 -0400
committerGitHub <noreply@github.com>2023-03-09 19:22:27 -0500
commitd1685b120bf7da5ba384806153f65d90ef156b77 (patch)
tree155c87f1beae810f52fb2a9ef9ab7526fa1af990 /ext/fetch/lib.rs
parent78d430103a8f6931154ddbbe19d36f3b8630286d (diff)
refactor(core): remove RuntimeOptions::extensions_with_js (#18099)
This commit removes "deno_core::RuntimeOptions::extensions_with_js". Now it's embedders' responsibility to properly register extensions that will not contains JavaScript sources when running from an existing snapshot. Prerequisite for https://github.com/denoland/deno/pull/18080
Diffstat (limited to 'ext/fetch/lib.rs')
-rw-r--r--ext/fetch/lib.rs12
1 files changed, 1 insertions, 11 deletions
diff --git a/ext/fetch/lib.rs b/ext/fetch/lib.rs
index 647e0ec7f..75f72233e 100644
--- a/ext/fetch/lib.rs
+++ b/ext/fetch/lib.rs
@@ -149,17 +149,7 @@ pub fn init_ops<FP>(options: Options) -> Extension
where
FP: FetchPermissions + 'static,
{
- ops::<FP>(&mut ext(), options)
- .esm(include_js_files!(
- "20_headers.js",
- "21_formdata.js",
- "22_body.js",
- "22_http_client.js",
- "23_request.js",
- "23_response.js",
- "26_fetch.js",
- ))
- .build()
+ ops::<FP>(&mut ext(), options).build()
}
pub type CancelableResponseFuture =