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:
parent
596d7aee6b
commit
b5bc5965e6
3 changed files with 1 additions and 2 deletions
|
@ -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
1
bin/v8
|
@ -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
|
||||
|
|
|
@ -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!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue