Anyone got any thoughts as to what's going on here...
# cfml-general
a
Anyone got any thoughts as to what's going on here? https://trycf.com/gist/cde0e8800f7c962b9c232a35e2749def/acf2021?theme=monokai
The array version is a control, and works the way I'd expect. For the first struct version, I'd expect it work similarly, except using a struct with the spread operator would result in the correct param getting the correct value (as implied by the struct keys). Basically the same as using
argumentCollection=st
. So... what is a
coldfusion.util.CaseInsensitiveMap$ScopeIterator$ScopeEntry
? I mean... I can guess given the methods / toString value etc, but... never seen one of those before. And it's def not the behaviour I'd expect. NB: using a spread operator with a struct as I have here in function call is not directly documented (https://helpx.adobe.com/uk/coldfusion/developing-applications/the-cfml-programming-l[…]xpressions-and-number-signs/expressions-developing-guide.html / https://coldfusion.adobe.com/2020/11/spread-rest-operators/), but what actually happens is not exactly intuitive..? It's like it's half working..?