Skip to content

Trying to call a null function in Lua gives a bad error message #128

Description

@nwinter

After @basicer's recent change to save the Lua parser from generating code from bad player code that crashes escodegen, at least it doesn't hang, but we give a bad error message for trying to call a nil function like this:

a = function() end
a():b()

or

a = {}
a:b:c()

result in error messages where it tells you the name of the nil thing is __luaTemp$1234.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions