mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fixed backtrace message for top-level blocks; fix #4936
In top-level, `mid` is `NULL`. We used to ignore 'mid` update for `NULL`.
This commit is contained in:
+2
-2
@@ -400,7 +400,7 @@ assert('GC in rescue') do
|
||||
end
|
||||
rescue => exception
|
||||
GC.start
|
||||
assert_equal("#{__FILE__}:#{line}:in call",
|
||||
assert_equal("#{__FILE__}:#{line}",
|
||||
exception.backtrace.first)
|
||||
end
|
||||
end
|
||||
@@ -418,7 +418,7 @@ assert('Method call in rescue') do
|
||||
rescue => exception
|
||||
[3].each do
|
||||
end
|
||||
assert_equal("#{__FILE__}:#{line}:in call",
|
||||
assert_equal("#{__FILE__}:#{line}",
|
||||
exception.backtrace.first)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user