Skip to content

External objects passed to Lua end up being null when returned to ObjC #11

@tempelmann

Description

@tempelmann

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions