Comment #1 on issue 2112 by [email protected]: Stacktraces originating from `JSON.parse()` contain random garbage (on nodejs)
http://code.google.com/p/v8/issues/detail?id=2112

I cannot reproduce the garbage on node 0.6.15 with the given script. Unfortunately, I don't see how the proposed fix solves the problem either.

The reason why you get "undefined:1" is because the string you are trying to parse is not in valid JSON format as specified by ECMA-262 (15.12.1.1, The JSON Lexical Grammar). What you intend to parse is probably '{"x":1}'.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to