From aa286fdecb15461ef8ddd4c372f5a13e01e1cb7b Mon Sep 17 00:00:00 2001 From: David Sherret Date: Mon, 24 Apr 2023 19:44:35 -0400 Subject: refactor(ext/node): allow injecting `NodeFs` from CLI (#18829) This allows providing a `NodeFs` as part of the `WorkerOptions`. --- runtime/build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime/build.rs') diff --git a/runtime/build.rs b/runtime/build.rs index d47bee941..358a30dc5 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -222,7 +222,6 @@ mod startup_snapshot { impl deno_node::NodeEnv for SnapshotNodeEnv { type P = Permissions; - type Fs = deno_node::RealFs; } deno_core::extension!(runtime, @@ -324,7 +323,7 @@ mod startup_snapshot { runtime::init_ops_and_esm(), // FIXME(bartlomieju): these extensions are specified last, because they // depend on `runtime`, even though it should be other way around - deno_node::deno_node::init_ops_and_esm::(None), + deno_node::deno_node::init_ops_and_esm::(None, None), #[cfg(not(feature = "snapshot_from_snapshot"))] runtime_main::init_ops_and_esm(), ]; -- cgit v1.2.3