1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

don't show stack trace if interupting stdin

This commit is contained in:
Charles Lowell 2010-03-17 08:35:14 -05:00
parent b67b38042b
commit 239155d095
2 changed files with 7 additions and 1 deletions

View file

@ -32,7 +32,11 @@ module V8
elsif options.execute
cxt.eval(options.execute, '<execute>')
else
cxt.eval($stdin, '<stdin>')
begin
cxt.eval($stdin, '<stdin>')
rescue Interrupt => e
puts; exit
end
end
end
end

View file

@ -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",