script "break" requires semicolon in Lucee, but not Adobe

Description

The following code:

outputs “1” in ACF 2021, but outputs “12” in Lucee. Since the break tag accepts no attributes/arguments, it seems the semicolon should be optional here.

relates to

Activity

Show:

Zac Spitzer 28 October 2022 at 14:13

yeah the byte code ends up treating break as a variable

Brad Wood 28 October 2022 at 13:47

Ahh, that may be the difference! Unfortunately, I used cfdocs which didn’t mention the label!

With this being the case, this ticket may be unsolvable and the best course forward to put in a ticket for Adobe to support labels

Zac Spitzer 28 October 2022 at 13:45

Pothys - MitrahSoft 28 October 2022 at 08:11

FYI, lucee supports label attribute in cfbreak tag

Pothys - MitrahSoft 28 October 2022 at 07:32

I checked this ticket and confirmed the issue happened on the lucee latest version 5.3.10.84-SNAPSHOT. break without a semicolon inside the script doesn't work in lucee. Seems it works in ACF.

I added a testcase to this ticket
Pull Request:

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 27 October 2022 at 16:58
Updated 8 June 2023 at 20:02