Exception: MiniRacer::ScriptError
- Inherits:
-
EvalError
show all
- Defined in:
- lib/mini_racer.rb,
ext/mini_racer_extension/mini_racer_extension.c
Instance Method Summary
collapse
Methods inherited from EvalError
#attach, #call, #call_await, #dispose, #dump, #eval, #eval_await, #heap_snapshot, #heap_stats, load, #low_memory_notification, #perform_microtask_checkpoint, #pump_message_loop, #size, #stop, #warmup!
Constructor Details
#initialize(message) ⇒ ScriptError
74
75
76
77
78
|
# File 'lib/mini_racer.rb', line 74
def initialize(message)
message, *@frames = message.split("\n")
@frames.map! { "JavaScript #{_1.strip}" }
super(message)
end
|
Instance Method Details
#backtrace ⇒ Object
80
81
82
83
|
# File 'lib/mini_racer.rb', line 80
def backtrace
frames = super || []
@frames + frames
end
|
#cause ⇒ Object
2174
2175
2176
2177
|
# File 'ext/mini_racer_extension/mini_racer_extension.c', line 2174
static VALUE script_error_cause(VALUE self)
{
return rb_iv_get(self, "@cause");
}
|