diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-19 08:02:03 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-19 08:02:03 +0000 |
| commit | 0229fb841a265c8aeb74850ef355748fb149f676 (patch) | |
| tree | fbe57605f0245f4a98f21a4b822fbbdc79fc69b6 /eval.c | |
| parent | f8ce0007091df81698a1560baf83d37ec9202408 (diff) | |
| download | ruby-0229fb841a265c8aeb74850ef355748fb149f676.tar.gz ruby-0229fb841a265c8aeb74850ef355748fb149f676.tar.xz ruby-0229fb841a265c8aeb74850ef355748fb149f676.zip | |
* eval.c (errinfo_place): skip if error is Fixnum. [ruby-dev:32608]
* bootstraptest/test_exception.rb, test_known_bug.rb: move fixed bug.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2508,7 +2508,8 @@ errinfo_place(void) return &cfp->dfp[-1]; } else if (cfp->iseq->type == ISEQ_TYPE_ENSURE && - TYPE(cfp->dfp[-1]) != T_NODE) { + TYPE(cfp->dfp[-1]) != T_NODE && + !FIXNUM_P(cfp->dfp[-1])) { return &cfp->dfp[-1]; } } |
