diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-09 16:09:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 21:09:45 +0100 |
commit | 44e67df1cd637d46744e7471f68f8bc4d1680a0e (patch) | |
tree | a7508cb4ffebab2a469c6e1a294be3bddb55a037 /ext/napi/lib.rs | |
parent | 47012bd931e785073e943b82dd397386b6ee7ca5 (diff) |
fix: Split extension registration and snapshotting (#18098)
This commit partially reverts changes from
https://github.com/denoland/deno/pull/18095.
Turns out I made a mistake that became apparent when working
on removing "RuntimeOptions::extensions_with_js" in a follow up.
Diffstat (limited to 'ext/napi/lib.rs')
-rw-r--r-- | ext/napi/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/napi/lib.rs b/ext/napi/lib.rs index 471ebfeab..41004638e 100644 --- a/ext/napi/lib.rs +++ b/ext/napi/lib.rs @@ -514,7 +514,7 @@ impl Env { } } -pub fn init<P: NapiPermissions + 'static>() -> Extension { +pub fn init_ops<P: NapiPermissions + 'static>() -> Extension { Extension::builder(env!("CARGO_PKG_NAME")) .ops(vec![op_napi_open::decl::<P>()]) .event_loop_middleware(|op_state_rc, cx| { |