[ruby-core:117434] [Ruby master Bug#20409] Missing reporting some invalid breaks

Issue #20409 has been reported by kddnewton (Kevin Newton). ---------------------------------------- Bug #20409: Missing reporting some invalid breaks https://bugs.ruby-lang.org/issues/20409 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- -- https://bugs.ruby-lang.org/

Issue #20409 has been updated by kddnewton (Kevin Newton). Sorry hit enter too soon... ```ruby def a break rescue b while c end ``` ``` def a break ensure b while c end ``` ---------------------------------------- Bug #20409: Missing reporting some invalid breaks https://bugs.ruby-lang.org/issues/20409#change-107811 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- -- https://bugs.ruby-lang.org/

Issue #20409 has been updated by kddnewton (Kevin Newton). I think ```ruby END { break } ``` should also be a syntax error, as it seems to always result in a `LocalJumpError`, but I could be wrong. ---------------------------------------- Bug #20409: Missing reporting some invalid breaks https://bugs.ruby-lang.org/issues/20409#change-107812 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- -- https://bugs.ruby-lang.org/

Issue #20409 has been updated by nobu (Nobuyoshi Nakada). It reproduces only with a modifier `while`/`until`, even without `rescue`/`ensure`. ```ruby begin break nil while false end ``` ---------------------------------------- Bug #20409: Missing reporting some invalid breaks https://bugs.ruby-lang.org/issues/20409#change-107815 * Author: kddnewton (Kevin Newton) * Status: Open * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- -- https://bugs.ruby-lang.org/
participants (2)
-
kddnewton (Kevin Newton)
-
nobu (Nobuyoshi Nakada)