summaryrefslogtreecommitdiffhomepage
path: root/src/opcode.h
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-12-14 21:48:32 +0900
committerKOBAYASHI Shuji <[email protected]>2019-12-14 22:29:37 +0900
commitd2f2f9db511afc348a88f864b9f0b0ccfc59a8f1 (patch)
treec3694cd35dc26b023789e23c01ca0d71c4ca7aa1 /src/opcode.h
parent6c5ee8f79e430354fe7e569553bda2d6f79b7aee (diff)
downloadmruby-d2f2f9db511afc348a88f864b9f0b0ccfc59a8f1.tar.gz
mruby-d2f2f9db511afc348a88f864b9f0b0ccfc59a8f1.zip
Remove location info from `Exception#inspect`
Because location info (file name and line number) is kept in the backtrace, it should not be kept in the result of `inspect` (and the exception object itself), I think. ### Example ```ruby # example.rb begin raise "err" rescue => e p e end ``` #### Before this patch: ``` $ bin/mruby example.rb example.rb:2: err (RuntimeError) ``` #### After this patch: ``` $ bin/mruby example.rb err (RuntimeError) ```
Diffstat (limited to 'src/opcode.h')
0 files changed, 0 insertions, 0 deletions