summaryrefslogtreecommitdiff
path: root/runtime/build.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-11-01 15:29:46 +1100
committerGitHub <noreply@github.com>2021-11-01 15:29:46 +1100
commitd3662e487d9ff94a09a2fa96598bf0a41666a7f2 (patch)
treeef44499ca2e38c4005de1a5b566695ebb0526aed /runtime/build.rs
parentd080f1c9651b34a2887473bd468495b72ea8f8b4 (diff)
feat(ext/fetch): support fetching local files (#12545)
Closes #11925 Closes #2150 Co-authored-by: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'runtime/build.rs')
-rw-r--r--runtime/build.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/build.rs b/runtime/build.rs
index b1d4fa8cb..b0af848ba 100644
--- a/runtime/build.rs
+++ b/runtime/build.rs
@@ -121,13 +121,14 @@ mod not_docs {
deno_url::init(),
deno_tls::init(),
deno_web::init(deno_web::BlobStore::default(), Default::default()),
- deno_fetch::init::<Permissions>(
+ deno_fetch::init::<Permissions, deno_fetch::DefaultFileFetchHandler>(
"".to_owned(),
None,
None,
None,
None,
None,
+ deno_fetch::DefaultFileFetchHandler, // No enable_file_fetch
),
deno_websocket::init::<Permissions>("".to_owned(), None, None),
deno_webstorage::init(None),