Fixed in commit d7d063d. I accidentally referred to the wrong commit number and since I pushed it I do not want to ammend.
There is a general issue in our IRBuilder where a parent level node when built will indicate that it is a newline node and that it changes the line number....but it has children which also are newline nodes which want to change the line number. So the parent line_num instr is ommitted. I corrected this for fcall nodes but I imagine other cases exist. This at least fixes the reported issue...
When there's a method invocation with multiline method invocation as an argument:
... JRuby reports the following backtrace:
... in contrast to CRuby:
Environment
Expected Behavior
With the following script:
Backtrace should include the beginning line number of the method invocation (the
do_something
line), as CRuby does:Actual Behavior
JRuby 9.1.10.0 reports backtrace including the last line number of the method invocation (the
.new)
line):The text was updated successfully, but these errors were encountered: