tracker issue : CF-4204992

select a category, or use search below
(searches all categories and all time range)

Safe Navigation errors if key is a "reserved keyword"

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Abram A. / ()

Created: 08/08/2019

Components: Language

Versions: 2016,2018

Failure Type: Non Functioning

Found In Build/Fixed In Build: 2016,0,11,314546 /

Priority/Frequency: Normal /

Locale/System: / Linux

Vote Count: 3

Problem Description:
When using safe navigation on an object that has keys which are considered "reserved keywords", ColdFusion will throw an error.

Steps to Reproduce:
x.contains = 1;

Live example:

Actual Result:
Invalid CFML construct found... error

Expected Result:
Any Workarounds:
Not use safe navigation