summaryrefslogtreecommitdiff
path: root/runtime/js/40_files.js
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2022-09-28 15:03:56 +0200
committerGitHub <noreply@github.com>2022-09-28 15:03:56 +0200
commit70bc0eb72b01249b4c1ccc92b51bf5c442b3edc9 (patch)
treedbf7839f3db529e7d156426343a8a03963436967 /runtime/js/40_files.js
parentfa9e7aab6d49f241a4eb30cc0e261f8ceb64af2f (diff)
feat(unstable): Deno.setRaw -> Deno.stdin.setRaw (#15797)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'runtime/js/40_files.js')
-rw-r--r--runtime/js/40_files.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/js/40_files.js b/runtime/js/40_files.js
index a2afdb09d..c864d3970 100644
--- a/runtime/js/40_files.js
+++ b/runtime/js/40_files.js
@@ -181,6 +181,11 @@
}
return this.#readable;
}
+
+ setRaw(mode, options = {}) {
+ const cbreak = !!(options.cbreak ?? false);
+ ops.op_stdin_set_raw(mode, cbreak);
+ }
}
class Stdout {