summaryrefslogtreecommitdiff
path: root/runtime/ops/tty.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/tty.rs
parenta5ad3a44b5476909f12ae90501d8c7c451669be6 (diff)
Reland "perf(core): preserve ops between snapshots (#18080)" (#18272)
Relanding 4b6305f4f25fc76f974bbdcc9cdb139d5ab8f5f4
Diffstat (limited to 'runtime/ops/tty.rs')
-rw-r--r--runtime/ops/tty.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/ops/tty.rs b/runtime/ops/tty.rs
index 60144e408..3146f22e2 100644
--- a/runtime/ops/tty.rs
+++ b/runtime/ops/tty.rs
@@ -34,7 +34,10 @@ fn get_windows_handle(
deno_core::extension!(
deno_tty,
- ops = [op_stdin_set_raw, op_isatty, op_console_size]
+ ops = [op_stdin_set_raw, op_isatty, op_console_size],
+ customizer = |ext: &mut deno_core::ExtensionBuilder| {
+ ext.force_op_registration();
+ },
);
// ref: <https://learn.microsoft.com/en-us/windows/console/setconsolemode>