Exception: MiniRacer::RuntimeError
- Defined in:
- lib/mini_racer.rb
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(message) ⇒ RuntimeError
constructor
A new instance of RuntimeError.
Constructor Details
#initialize(message) ⇒ RuntimeError
Returns a new instance of RuntimeError.
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/mini_racer.rb', line 40 def initialize() , js_backtrace = .split("\n", 2) if js_backtrace && !js_backtrace.empty? @js_backtrace = js_backtrace.split("\n") @js_backtrace.map!{|f| "JavaScript #{f.strip}"} else @js_backtrace = nil end super() end |
Instance Method Details
#backtrace ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'lib/mini_racer.rb', line 51 def backtrace val = super return unless val if @js_backtrace @js_backtrace + val else val end end |