diff options
Diffstat (limited to 'runtime/build.rs')
-rw-r--r-- | runtime/build.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/build.rs b/runtime/build.rs index df20c5427..dac6dee88 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -218,6 +218,12 @@ mod startup_snapshot { } } + struct SnapshotNodeEnv; + + impl deno_node::NodeEnv for SnapshotNodeEnv { + type P = Permissions; + } + deno_core::extension!(runtime, deps = [ deno_webidl, @@ -319,7 +325,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::<Permissions>(None), + deno_node::deno_node::init_ops_and_esm::<SnapshotNodeEnv>(None), #[cfg(not(feature = "snapshot_from_snapshot"))] runtime_main::init_ops_and_esm(), ]; |