From c3cba7f22c49ca3a3f58df44d8ea4c85d8510bff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 9 Mar 2023 08:10:54 -0400 Subject: refactor(core): Extension::builder_with_deps (#18093) Prerequisite for https://github.com/denoland/deno/pull/18080 --- ext/webstorage/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/webstorage/lib.rs') diff --git a/ext/webstorage/lib.rs b/ext/webstorage/lib.rs index 98f1246d2..e98b5da41 100644 --- a/ext/webstorage/lib.rs +++ b/ext/webstorage/lib.rs @@ -22,8 +22,7 @@ struct OriginStorageDir(PathBuf); const MAX_STORAGE_BYTES: u32 = 10 * 1024 * 1024; pub fn init(origin_storage_dir: Option) -> Extension { - Extension::builder(env!("CARGO_PKG_NAME")) - .dependencies(vec!["deno_webidl"]) + Extension::builder_with_deps(env!("CARGO_PKG_NAME"), &["deno_webidl"]) .esm(include_js_files!("01_webstorage.js",)) .ops(vec![ op_webstorage_length::decl(), -- cgit v1.2.3