Skip to content

v1.4.1

Latest

Choose a tag to compare

@vsariola vsariola released this 20 May 07:38

Fixed

  • Local functions (e.g., local function f()end) are not converted to local
    variable assignments (e.g., local f=function()end), as they are not
    perfectly semantically equal.
  • In table constructors, use record-style fields ({a=1}) in place of
    expression-style fields ({['a']=1}) only then the key is a valid identifier.
    For example, {['foo/bar']=1} was getting converted to {foo/bar=1}, causing
    crash.
  • Functions with named and varargs crashed the parser (e.g.
    f=function(x,...)end).