summaryrefslogtreecommitdiff
path: root/runtime/ops/tty.rs
diff options
context:
space:
mode:
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>