Semi-colon requiredness with abort

Description

Full write-up here: http://blog.adamcameron.me/2015/05/cfml-lucee-beware-of-optional-semi.html

Repro:

[1,2,3].map(function(){ dump(arguments) abort })

I'd not normally report this sort of thing separately, but on Lucee 5 the code doesn't break, it just doesn't work properly. The abort gets ignored. On 4.5 it errors-out like one comes to expect when using "optional" semi-colons where they're not actually optional.

Also note this ties-in with https://luceeserver.atlassian.net/browse/LDEV-356#icft=LDEV-356 too, which is a staging area of various circumstances where optional semi-colons aren't (~ optional).

Environment

None

Activity

Show:

Details

Assignee

Reporter

Priority

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

Affects versions

Created 25 May 2015 at 08:38
Updated 30 June 2021 at 11:20

Flag notifications