diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2023-05-18 23:33:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-18 23:33:42 +0900 |
commit | 2df5a697e2726a11f0441b13fb5c73dd549837c8 (patch) | |
tree | d4e82ff53b1c12244c90dab293492595877c9458 /vm_insnhelper.c | |
parent | b695f58d52ec047e44434c16c998c4a67d3e5571 (diff) | |
download | ruby-2df5a697e2726a11f0441b13fb5c73dd549837c8.tar.gz |
Add Fiber#kill, similar to Thread#kill. (#7823)
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index fb2e3bc87f..8788fba977 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1616,7 +1616,7 @@ vm_throw_continue(const rb_execution_context_t *ec, VALUE err) /* continue throw */ if (FIXNUM_P(err)) { - ec->tag->state = FIX2INT(err); + ec->tag->state = RUBY_TAG_FATAL; } else if (SYMBOL_P(err)) { ec->tag->state = TAG_THROW; |