Open dangerousbeans opened 3 years ago
Here's an example of the situation applied to the demos project; https://github.com/dangerousbeans/ECMAScriptDemos/commit/6959fbf385fd074037e3c23d0a21ddb06aac1502
You can only pass primitive values between workers. It is the standard and limit of the JavaScript language, this why the adopt_value exists.
Joran Kikke @.***>于2021年8月15日 周日10:00写道:
Here's an example of the situation applied to the demos project; @.*** https://github.com/dangerousbeans/ECMAScriptDemos/commit/6959fbf385fd074037e3c23d0a21ddb06aac1502
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GodotExplorer/ECMAScript/issues/108#issuecomment-898983282, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABVEKTFPXZAYKK34XKJAYQTT44NSVANCNFSM5CFURLUA .
@Geequlim I can get the godot object fine, but the one returned from godot.adopt_value
no longer has any ECMAscript bindings or js context
My main thread is sending out a ECMAscript class as a message to a worker thread using
godot.abandon_value
&godot.adopt_value
, but I only get the godot object and cannot call any of the js methods on the class: