From 34dac6c6efa75f38c29031a65db1ee3332a67259 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sat, 3 Jun 2023 21:22:32 +0100 Subject: refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) Addresses https://github.com/denoland/deno/pull/19308#discussion_r1212248194. Removes force_op_registration as it is no longer necessary. --- runtime/examples/extension_with_ops/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'runtime/examples/extension_with_ops/main.rs') diff --git a/runtime/examples/extension_with_ops/main.rs b/runtime/examples/extension_with_ops/main.rs index 47feaeaeb..1feb4ba27 100644 --- a/runtime/examples/extension_with_ops/main.rs +++ b/runtime/examples/extension_with_ops/main.rs @@ -11,13 +11,7 @@ use deno_runtime::permissions::PermissionsContainer; use deno_runtime::worker::MainWorker; use deno_runtime::worker::WorkerOptions; -deno_core::extension!( - hello_runtime, - ops = [op_hello], - customizer = |ext: &mut deno_core::ExtensionBuilder| { - ext.force_op_registration(); - }, -); +deno_core::extension!(hello_runtime, ops = [op_hello]); #[op] fn op_hello(text: &str) { -- cgit v1.2.3