You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling fred.say_name(); from JS, this refers to the fred object.
When calling fred.say_name() from Lua, this refers to Window.
I believe this to be because of this line setting the first argument to apply to be null. It's not obvious to me how to fix this because the instance does not seem to be in scope when executing the instruction.
Perhaps the caller needs to be closed over when creating the instruction? I'm a bit out of my depth here.