diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-05-04 00:48:50 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-03 18:48:50 -0400 |
commit | 5824e55efa8312d6ce5f66741c7fb465c5d924e6 (patch) | |
tree | 241ee5acb10fc48c31990ffeb7744ecc621def7c | |
parent | 3b1e2f1ad42cfebb6f2568e54c82c5ac3c8fe3d4 (diff) |
fix: deno version panic (#2286)
-rw-r--r-- | cli/main.rs | 2 | ||||
-rw-r--r-- | tests/version.out | 3 | ||||
-rw-r--r-- | tests/version.test | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs index 8bef2d2ff..a864c2db3 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -300,7 +300,7 @@ fn main() { DenoSubcommand::Repl => run_repl(flags, argv), DenoSubcommand::Run => run_script(flags, argv), DenoSubcommand::Types => types_command(), - DenoSubcommand::Version => run_script(flags, argv), + DenoSubcommand::Version => run_repl(flags, argv), DenoSubcommand::Xeval => xeval_command(flags, argv), } } diff --git a/tests/version.out b/tests/version.out new file mode 100644 index 000000000..de13d769f --- /dev/null +++ b/tests/version.out @@ -0,0 +1,3 @@ +deno:[WILDCARD] +v8:[WILDCARD] +typescript:[WILDCARD]
\ No newline at end of file diff --git a/tests/version.test b/tests/version.test new file mode 100644 index 000000000..24079f715 --- /dev/null +++ b/tests/version.test @@ -0,0 +1,2 @@ +args: version +output: tests/version.out |