From 97ed0c954d2ae2237bc4aa69ef053f41f99762eb Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 26 Jan 2020 15:49:34 +0100 Subject: feat: make eval support --v8-flags=... (#3797) Closes #3796 --- cli/tests/integration_tests.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'cli/tests') 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", }); -- cgit v1.2.3