mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
make sure that the v8 bin loads v8 from the right library.
This commit is contained in:
parent
e3821aaf9a
commit
8be240196c
1 changed files with 2 additions and 7 deletions
9
bin/v8
9
bin/v8
|
@ -1,13 +1,8 @@
|
|||
#!/usr/bin/env ruby
|
||||
lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
|
||||
$:.unshift(lib) if File.exists?(lib) unless $:.member?(lib)
|
||||
$:.unshift(lib) if File.exists?(lib)
|
||||
|
||||
begin
|
||||
require 'v8'
|
||||
rescue LoadError
|
||||
require 'rubygems'
|
||||
require 'v8'
|
||||
end
|
||||
require 'v8'
|
||||
require 'v8/cli'
|
||||
|
||||
V8::CLI.run(File.basename(__FILE__), ARGV)
|
||||
|
|
Loading…
Reference in a new issue