diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-31 15:39:47 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-31 15:39:47 +0900 |
| commit | f2da051367b90d20db39a3faaafc5f97f1802e0f (patch) | |
| tree | 0d64e70297dce4547fb0cc9ecdf360f5236da733 /mrbgems/mruby-proc-ext/test/proc.rb | |
| parent | b7c23a4a14b02bf6255d21d372e099d6ee0c607a (diff) | |
| parent | c146e81c4ae318697d9f67a25e633dd071dfefd4 (diff) | |
| download | mruby-f2da051367b90d20db39a3faaafc5f97f1802e0f.tar.gz mruby-f2da051367b90d20db39a3faaafc5f97f1802e0f.zip | |
Merge pull request #5394 from fundamental/partial-backtrace
Add support for partial backtraces
Diffstat (limited to 'mrbgems/mruby-proc-ext/test/proc.rb')
| -rw-r--r-- | mrbgems/mruby-proc-ext/test/proc.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mrbgems/mruby-proc-ext/test/proc.rb b/mrbgems/mruby-proc-ext/test/proc.rb index a6321d371..113afcc5e 100644 --- a/mrbgems/mruby-proc-ext/test/proc.rb +++ b/mrbgems/mruby-proc-ext/test/proc.rb @@ -7,6 +7,9 @@ def enable_debug_info? raise rescue => e @enable_debug_info = !e.backtrace.empty? + if(@enable_debug_info && e.backtrace[0].include?("(unknown)")) + @enable_debug_info = false + end end end |
