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

fix a regression introduced in db54adc223

+ make sure bundler does not require 'less'
This commit is contained in:
kares 2012-08-24 13:26:04 +02:00
parent 2b9179f6a5
commit ce41ff6206
2 changed files with 2 additions and 2 deletions

View file

@ -14,5 +14,5 @@ group :test do
else
gem 'therubyrhino_jar', :path => '.'
end
gem 'less', '>= 2.2.1'
gem 'less', '>= 2.2.1', :require => nil
end

View file

@ -25,7 +25,7 @@ module Rhino
# #Rhino::JS::JavaScriptException instance.
def cause
return @cause if defined?(@cause)
if @native.respond_to?(:cause)
if @native.respond_to?(:cause) && @native.cause
@native.cause
else
@native.is_a?(JS::RhinoException) ? @native : nil