mirror of
https://github.com/rubyjs/mini_racer
synced 2023-03-27 23:21:28 -04:00
include js traceback on snapshot errors
This commit is contained in:
parent
7ed5d33e28
commit
419142a948
1 changed files with 2 additions and 2 deletions
|
@ -320,7 +320,7 @@ module MiniRacer
|
|||
ctx = MiniRacer::Context.new
|
||||
ctx.eval(str)
|
||||
rescue MiniRacer::RuntimeError => e
|
||||
raise MiniRacer::SnapshotError.new, e.message
|
||||
raise MiniRacer::SnapshotError.new, e.message, e.backtrace
|
||||
end
|
||||
|
||||
@source = str
|
||||
|
@ -338,7 +338,7 @@ module MiniRacer
|
|||
ctx.eval(@source)
|
||||
ctx.eval(src)
|
||||
rescue MiniRacer::RuntimeError => e
|
||||
raise MiniRacer::SnapshotError.new, e.message
|
||||
raise MiniRacer::SnapshotError.new, e.message, e.backtrace
|
||||
end
|
||||
|
||||
warmup_unsafe!(src)
|
||||
|
|
Loading…
Add table
Reference in a new issue