moonsharp-devs / moonsharp

An interpreter for the Lua language, written entirely in C# for the .NET, Mono, Xamarin and Unity3D platforms, including handy remote debugger facilities.
http://www.moonsharp.org
Other
1.41k stars 213 forks source link

string.format('%s', nil) throws an exception. #275

Open Aberro opened 4 years ago

Aberro commented 4 years ago

https://www.lua.org/manual/5.2/manual.html#pdf-string.format As docs in version 5.2 says, %s should convert values to string, including nil values.

Aberro commented 4 years ago

fix in pull request: https://github.com/moonsharp-devs/moonsharp/pull/280