mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
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.
This commit is contained in:
parent
47012bd931
commit
44e67df1cd
6 changed files with 161 additions and 354 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue