From d1685b120bf7da5ba384806153f65d90ef156b77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 9 Mar 2023 20:22:27 -0400 Subject: 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 --- ext/fs/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/fs/lib.rs') diff --git a/ext/fs/lib.rs b/ext/fs/lib.rs index 31782d38d..26904e7fe 100644 --- a/ext/fs/lib.rs +++ b/ext/fs/lib.rs @@ -202,9 +202,7 @@ pub fn init_ops_and_esm( } pub fn init_ops(unstable: bool) -> Extension { - ops::

(&mut ext(), unstable) - .esm(include_js_files!("30_fs.js",)) - .build() + ops::

(&mut ext(), unstable).build() } fn default_err_mapper(err: Error, desc: String) -> Error { -- cgit v1.2.3