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:
parent
2b9179f6a5
commit
ce41ff6206
2 changed files with 2 additions and 2 deletions
2
Gemfile
2
Gemfile
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue