diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-08-08 16:06:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 16:06:22 -0700 |
commit | cd8d20cd1fbcf9bf9d438b306beb65b2417fcc04 (patch) | |
tree | e278f50d1819908f6bc8b558c074dfde1880e762 /bootstraptest | |
parent | 74b9c7d2079ce2b762bc555f491d00f863fcf94d (diff) | |
download | ruby-cd8d20cd1fbcf9bf9d438b306beb65b2417fcc04.tar.gz |
YJIT: Compile exception handlers (#8171)
Co-authored-by: Maxime Chevalier-Boisvert <maximechevalierb@gmail.com>
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_yjit.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index 6cc509f212..f90cece848 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -4004,3 +4004,25 @@ assert_equal '[]', %q{ _x, _y = func.call end.call } + +# Catch TAG_BREAK in a non-FINISH frame with JIT code +assert_equal '1', %q{ + def entry + catch_break + end + + def catch_break + while_true do + break + end + 1 + end + + def while_true + while true + yield + end + end + + entry +} |