summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration_tests.rs11
1 files changed, 9 insertions, 2 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 260ded177..ce3828b8b 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -631,12 +631,19 @@ itest!(unbuffered_stdout {
output: "unbuffered_stdout.ts.out",
});
-itest!(v8_flags {
+// Cannot write the expression to evaluate as "console.log(typeof gc)"
+// because itest! splits args on whitespace.
+itest!(eval_v8_flags {
+ args: "eval --v8-flags=--expose-gc console.log(typeof(gc))",
+ output: "v8_flags.js.out",
+});
+
+itest!(run_v8_flags {
args: "run --v8-flags=--expose-gc v8_flags.js",
output: "v8_flags.js.out",
});
-itest!(v8_help {
+itest!(run_v8_help {
args: "run --v8-flags=--help",
output: "v8_help.out",
});