tracker issue : CF-4204992

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

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;
writeDump(x?.contains);

Live example: https://trycf.com/editor/gist/86165ad2fc410e501e7cda7069c294ed/acf2016

Actual Result:
Invalid CFML construct found... error

Expected Result:
1
Any Workarounds:
Not use safe navigation

Attachments:

Comments: