neolithos / neolua

A Lua implementation for the Dynamic Language Runtime (DLR).
https://neolua.codeplex.com/
Apache License 2.0
466 stars 76 forks source link

Always init local variables to null, even if there is no assignment. #181

Closed powercode closed 1 year ago

powercode commented 1 year ago

Makes

local a

equivalent to

local a = nil

I ran into obscure cases where this mattered but haven't yet been able to produce a unit test for it.