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.
This commit is contained in:
Nayeem Rahman 2023-06-03 21:22:32 +01:00 committed by GitHub
parent 7d0853d158
commit 34dac6c6ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 161 additions and 402 deletions

View file

@ -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) {