summaryrefslogtreecommitdiff
path: root/runtime/ops/worker_host.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-18 18:30:04 -0400
committerGitHub <noreply@github.com>2023-03-18 18:30:04 -0400
commit3c9771deb2d615c47a2570023039c6a71f1c774b (patch)
tree759ce45a956798ddae58108286eafee29414d913 /runtime/ops/worker_host.rs
parenta5ad3a44b5476909f12ae90501d8c7c451669be6 (diff)
Reland "perf(core): preserve ops between snapshots (#18080)" (#18272)
Relanding 4b6305f4f25fc76f974bbdcc9cdb139d5ab8f5f4
Diffstat (limited to 'runtime/ops/worker_host.rs')
-rw-r--r--runtime/ops/worker_host.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/ops/worker_host.rs b/runtime/ops/worker_host.rs
index 26c99efab..d5285ec89 100644
--- a/runtime/ops/worker_host.rs
+++ b/runtime/ops/worker_host.rs
@@ -118,7 +118,10 @@ deno_core::extension!(
let format_js_error_fn_holder =
FormatJsErrorFnHolder(options.format_js_error_fn);
state.put::<FormatJsErrorFnHolder>(format_js_error_fn_holder);
- }
+ },
+ customizer = |ext: &mut deno_core::ExtensionBuilder| {
+ ext.force_op_registration();
+ },
);
#[derive(Deserialize)]