issues
search
mherkender
/
lua.js
An ECMAscript framework to compile and run Lua code, allowing Lua to run in a browser or in Flash
http://blog.brokenfunction.com/
600
stars
73
forks
source link
Update tonumber() to properly behave as in Lua :
#40
Open
florentpoujol
opened
9 years ago
florentpoujol
commented
9 years ago
Return null instead of NaN whenever the 'e' argument is not a number or a string.
Properly convert hex strings.
Return null when a string (other than a hex number) contains any characters other than those found in digits + space.
Tests are included.
Tests are included.