alanz/language-javascript — Issue #5: Scientific notation in object literals fails the parser
Author: tonymorris
Created: 2012-02-14 05:58:17+00:00
State: open

The parser appears to fail when using scientific notation in object literals.

readJs "{ y: 1e8 }" -- fine
readJs "{ y: 18 }" -- fine
readJs "x = { y: 18 }" -- fine
readJs "x = { y: 1e8 }" -- exception

Expected: No exception during parse.
Actual: Exception during parse in the above case.