You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hosted code (ScriptEngine.Execute): backtrace frames missing, stale file/line, line 0, CLR frames below <main> #163
Found while fixing #158 (backtrace labels for hosted code). The labels now match CRuby 4.0, but four other problems remain on the hosting path (ScriptEngine.Execute, ScriptSource.Execute, IronRuby.Tests' CompilerTest). ir is not affected.
Missing frame: when the snippet runs through CompilerTest first in a fresh runtime, the raising Object#many frame is missing from e.backtrace entirely.
Stale file and line: after one Engine.Execute, later runs of the same code report the many frame as (eval):2 (a stale file and the def line), even when the source is hosted.rb.
Line 0:Engine.Execute reports the Array#each and <main> frames at line 0.
CLR host frames below <main>: frames such as :0:in 'CompilerTest' and RunTestCase appear below <main>. CRuby shows nothing below <main>.
Also, a known difference left by #158: an explicit def self.x in hosted top-level code is labelled Object#x, where CRuby prints x. Hosted top-level defs land on main's singleton class, so the two cases can't be told apart.
Backtrace_HostedLabels1 (added for #158) checks only the labels, so it does not depend on any of these.
Activity
Merge pull request #169 from Largo/claude/hosted-backtraces
Merge pull request #174 from Largo/claude/hosted-backtraces-2