Skip to content

Empty return throws exception #12

@lolleko

Description

@lolleko
function xd() {
  return
}
Compiler.js:60
                    throw exception;
                    ^
TypeError: Cannot read property 'kind' of undefined
    at LuaTranspiler.transpileExpression (Transpiler.js:309:21)
    at LuaTranspiler.transpileReturn (Transpiler.js:306:33)
    at LuaTranspiler.transpileNode (Transpiler.js:92:43)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions