From 44e67df1cd637d46744e7471f68f8bc4d1680a0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 9 Mar 2023 16:09:45 -0400 Subject: 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. --- ext/napi/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/napi/lib.rs') 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() -> Extension { +pub fn init_ops() -> Extension { Extension::builder(env!("CARGO_PKG_NAME")) .ops(vec![op_napi_open::decl::

()]) .event_loop_middleware(|op_state_rc, cx| { -- cgit v1.2.3