I have been fighting with this issue for a while and finally figured out how to to duplicate.
<cftry>
<cfthread name="test" action="run" threadname="test">
<cfset [1,2,3,4,5,6,7,8,9,10].each(function(key){
var test = key;
}, true)>
<cfset thread.testing = 'blah'>
</cfthread>
<cfthread action="join" name="test">
<cfdump var="#cfthread.test#">
<cfcatch>
<cfdump var="#cfcatch#">
</cfcatch>
</cftry>
Lucee 5.3.10.120 / Windows 2019 / Correto JRE
The thread is not being modified outside the thread scope. Any suggestions?