diff --git a/lib/v8/cli.rb b/lib/v8/cli.rb index 47e372b..aff7f60 100644 --- a/lib/v8/cli.rb +++ b/lib/v8/cli.rb @@ -32,7 +32,11 @@ module V8 elsif options.execute cxt.eval(options.execute, '') else - cxt.eval($stdin, '') + begin + cxt.eval($stdin, '') + rescue Interrupt => e + puts; exit + end end end end diff --git a/therubyracer.gemspec b/therubyracer.gemspec index 6346f95..2484f59 100644 --- a/therubyracer.gemspec +++ b/therubyracer.gemspec @@ -25,6 +25,7 @@ Gem::Specification.new do |s| "README.rdoc", "Rakefile", "bin/therubyracer", + "bin/v8", "docs/data_conversion.txt", "ext/v8/callbacks.cpp", "ext/v8/callbacks.h", @@ -639,6 +640,7 @@ Gem::Specification.new do |s| "ext/v8/v8_template.cpp", "ext/v8/v8_template.h", "lib/v8.rb", + "lib/v8/cli.rb", "lib/v8/context.rb", "lib/v8/object.rb", "lib/v8/tap.rb",