Exception: MiniRacer::ScriptError
- Defined in:
- lib/mini_racer.rb,
ext/mini_racer_extension/mini_racer_extension.c
Instance Method Summary collapse
- #backtrace ⇒ Object
- #cause ⇒ Object
-
#initialize(message) ⇒ ScriptError
constructor
A new instance of ScriptError.
Methods inherited from EvalError
#attach, #call, #dispose, #dump, #eval, #heap_snapshot, #heap_stats, load, #low_memory_notification, #pump_message_loop, #size, #stop, #warmup!
Constructor Details
#initialize(message) ⇒ ScriptError
Returns a new instance of ScriptError.
66 67 68 69 70 |
# File 'lib/mini_racer.rb', line 66 def initialize() , *@frames = .split("\n") @frames.map! { "JavaScript #{_1.strip}" } super() end |
Instance Method Details
#backtrace ⇒ Object
72 73 74 75 |
# File 'lib/mini_racer.rb', line 72 def backtrace frames = super || [] @frames + frames end |
#cause ⇒ Object
1728 1729 1730 1731 |
# File 'ext/mini_racer_extension/mini_racer_extension.c', line 1728
static VALUE script_error_cause(VALUE self)
{
return rb_iv_get(self, "@cause");
}
|