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:
parent
b67b38042b
commit
239155d095
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue