mherkender/lua.js — pull request #27 by elisee (2013-03-17 16:59:33+00:00)
Title: Fix Lua operator overloading

Lua.js uses parseFloat to check whether the operand(s) are numbers or not and if they are not, looks for operator overloading.

But while it checks for null, parseFloat actually returns NaN if the parsing failed see https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseFloat#Description)

This pull request fixes the checks and make operator overloading actually work.