Yes it's a ridiculous change claiming to make your code more secure. However it is not. It's protecting badly scoped code that I am sure had an issue with scope hunting.
👍 3
n
nick
05/25/2025, 1:20 PM
I’ve reflected on it a bit and now see it’s only on remote fn’s so I guess if one had an unscoped var in an fn that sometimes is there and sometimes isn’t then an attacker could provide their own val for that var. however I don’t think unscoped vars are allowed in fns ever now are they. Anyway I feel like this is a breaking change that could have done with being highlighted more in the update notes
☝️ 1
nick
05/25/2025, 1:21 PM
That being said: security enhancements eq good
d
Dave Merrill
05/25/2025, 1:24 PM
A change that interferes with dynamic programming, and breaks lots of code.
Would have been better to fix the CF internals, if that was possible, which, probably.