mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
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:
parent
7d0853d158
commit
34dac6c6ef
52 changed files with 161 additions and 402 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue