0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

fix: deno version panic (#2286)

This commit is contained in:
Bartek Iwańczuk 2019-05-04 00:48:50 +02:00 committed by Ryan Dahl
parent 3b1e2f1ad4
commit 5824e55efa
3 changed files with 6 additions and 1 deletions

View file

@ -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),
}
}

3
tests/version.out Normal file
View file

@ -0,0 +1,3 @@
deno:[WILDCARD]
v8:[WILDCARD]
typescript:[WILDCARD]

2
tests/version.test Normal file
View file

@ -0,0 +1,2 @@
args: version
output: tests/version.out