sebastienros/jint — pull request #82 by fredericaltorres (2014-08-31 01:06:21+00:00)
Title: JSON.parse() does not parse negative number

Sebastien, I am not sure how to include the unit test that goes with the change.
Here is the JavaScript unit test

function testcase() {

if(JSON.parse('{ "x":-1 }').x !== -1) return false;
if(JSON.parse('{ "x": -1 }').x !== -1) return false;
try {
JSON.parse('{ "x": -.1 }'); // Not allowed
return false;
}
catch(ex) {}

return true;
}
runTestCase(testcase);