diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-28 23:52:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 23:52:08 +0200 |
commit | c5302a0587bfdc8a78e8edf7429772f471c47304 (patch) | |
tree | bbe82843bc2bad9bf1a86468a3413828c2f25e5e /runtime/web_worker.rs | |
parent | 6fb6b0c1f302e8637c96131c9ffc4c4b9f3f5f0f (diff) |
refactor(ext/node): change extension type parameter (#18483)
This commit changes the type parameter for "deno_node" extension, from
`P: NodePermission` to `Env: NodeEnv`.
`NodeEnv` is a new trait that has associated type `P: NodePermission`.
This is a stepping stone to support swappable file system for the
extension, that will be added as a second associated type to the
`NodeEnv` trait.
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r-- | runtime/web_worker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs index b50e91610..399b22912 100644 --- a/runtime/web_worker.rs +++ b/runtime/web_worker.rs @@ -441,7 +441,7 @@ impl WebWorker { deno_io::deno_io::init_ops(Some(options.stdio)), deno_fs::deno_fs::init_ops::<PermissionsContainer>(unstable), deno_flash::deno_flash::init_ops::<PermissionsContainer>(unstable), - deno_node::deno_node::init_ops::<PermissionsContainer>( + deno_node::deno_node::init_ops::<crate::RuntimeNodeEnv>( options.npm_resolver, ), // Runtime ops that are always initialized for WebWorkers |