I have a script that declares a function that takes one object as a parameter and stores it in its global context. Another function returns that object.
When I use JavaScriptCore to pass JSExport objects via callWithArguments: to such a JavaScript program, then the returned object is still the same that was passed in.
However, trying the same with ObjC-Lua, the returned object is nil, even though the Lua code can still access the object's properties (meaning that the object still exists fine in Lua's context).
I have a script that declares a function that takes one object as a parameter and stores it in its global context. Another function returns that object.
When I use
JavaScriptCoreto passJSExportobjects viacallWithArguments:to such a JavaScript program, then the returned object is still the same that was passed in.However, trying the same with ObjC-Lua, the returned object is
nil, even though the Lua code can still access the object's properties (meaning that the object still exists fine in Lua's context).