summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/streams/state.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/streams/state.mjs')
-rw-r--r--ext/node/polyfills/internal/streams/state.mjs10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/node/polyfills/internal/streams/state.mjs b/ext/node/polyfills/internal/streams/state.mjs
new file mode 100644
index 000000000..93708fe9d
--- /dev/null
+++ b/ext/node/polyfills/internal/streams/state.mjs
@@ -0,0 +1,10 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+// Copyright Joyent and Node contributors. All rights reserved. MIT license.
+// deno-lint-ignore-file
+
+function getDefaultHighWaterMark(objectMode) {
+ return objectMode ? 16 : 16 * 1024;
+}
+
+export default { getDefaultHighWaterMark };
+export { getDefaultHighWaterMark };