weimingtom / minijoe

Automatically exported from code.google.com/p/minijoe
1 stars 0 forks source link

Add instanceof Integer check in JsSystem.toNumber() #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
After a lot of confusion as to why a JsObject.getInt returned 0 all the time I 
discovered that toNumber() did not check whether the object was an integer, 
which it was ( set by addVar("name", new Integer(intval)); )

Original issue reported on code.google.com by simonbar...@googlemail.com on 11 Mar 2014 at 9:02

Attachments: