summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorJeremy Evans <[email protected]>2024-09-18 16:54:56 -0700
committerGitHub <[email protected]>2024-09-18 16:54:56 -0700
commit268c72377b06b7d84a0998ca241340d0f58768f6 (patch)
tree517bcd762780681b88a2cea5d6318b7a244a6144 /string.c
parent984a791d58ec4350d62714a2d063c1bb54707bb6 (diff)
Raise a compile error for break/next/redo inside eval in cases where it is optimized away
In cases where break/next/redo are not valid syntax, they should raise a SyntaxError even if inside a conditional block that is optimized away. Fixes [Bug #20597] Co-authored-by: Kevin Newton <[email protected]>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11099 Merged-By: jeremyevans <[email protected]>
Diffstat (limited to 'string.c')
0 files changed, 0 insertions, 0 deletions