diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-06-03 21:22:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-03 14:22:32 -0600 |
commit | 34dac6c6efa75f38c29031a65db1ee3332a67259 (patch) | |
tree | 5facbc9c0631feebc23ed2f2d9ea37643d0e7086 /runtime/examples | |
parent | 7d0853d15863b2fb61bcf5927139cfdd3d869d73 (diff) |
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.
Diffstat (limited to 'runtime/examples')
-rw-r--r-- | runtime/examples/extension_with_ops/main.rs | 8 |
1 files changed, 1 insertions, 7 deletions
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) { |