summaryrefslogtreecommitdiff
path: root/cli/tests/integration/repl_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration/repl_tests.rs')
-rw-r--r--cli/tests/integration/repl_tests.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs
index a4675c388..6c208ac2c 100644
--- a/cli/tests/integration/repl_tests.rs
+++ b/cli/tests/integration/repl_tests.rs
@@ -1093,3 +1093,18 @@ fn env_file() {
assert_contains!(console.all_output(), "BAR",);
});
}
+
+// Regression test for https://github.com/denoland/deno/issues/20528
+#[test]
+fn pty_promise_was_collected_regression_test() {
+ let (out, err) = util::run_and_collect_output_with_args(
+ true,
+ vec!["repl"],
+ Some(vec!["new Uint8Array(64 * 1024 * 1024)"]),
+ None,
+ false,
+ );
+
+ assert_contains!(out, "Uint8Array(67108864)");
+ assert!(err.is_empty());
+}