Updates:
Status: WorkingAsIntended
Comment #1 on issue 910 by mikhail.naganov: strange eval parse errors of
simple JSON var x=eval('{"map_servers":["http://blahbal"]}');
http://code.google.com/p/v8/issues/detail?id=910
I think, this is because object literals are not allowed on the top
execution level (as well as 'return' statements, for example). Your litersl
is being parsed as a control block.
Use JSON.parse, it works, and it is safer than 'eval'.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev