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

require readline only when using an interactive shell

This commit is contained in:
Charles Lowell 2010-03-22 23:12:26 -05:00
parent 596d7aee6b
commit b5bc5965e6
3 changed files with 1 additions and 2 deletions

View file

@ -2,7 +2,6 @@
lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
$:.unshift(lib) if File.exists?(lib) unless $:.member?(lib)
require 'readline'
begin
require 'v8'
rescue LoadError

1
bin/v8
View file

@ -2,7 +2,6 @@
lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
$:.unshift(lib) if File.exists?(lib) unless $:.member?(lib)
require 'readline'
begin
require 'v8'
rescue LoadError

View file

@ -75,6 +75,7 @@ module V8
end
def self.repl(cxt, exename)
require 'readline'
puts "help() for help. quit() to quit."
puts "The Ruby Racer #{V8::VERSION}"
puts "Vroom Vroom!"