You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ch.exe jsonParseEmpty.js
SyntaxError: Syntax error
at Global code (d:\personal\chakracore\build\vcbuild\bin\x64_debug\test.js:1:1)
'Syntax Error' is very ambiguous error. It could mean a lot of things. When its part of a large callstack, I would think its a javascript syntax error somewhere in my js files. The callstack doesn't even mention JSON.parse.
Chrome gives
VM145:1 Uncaught SyntaxError: Unexpected end of JSON input(…)
Ideal error should mention something like "JSON.parse Syntax error: Empty string" or "JSON.parse Syntax Error: unexpected end of json input."
The text was updated successfully, but these errors were encountered:
@nojvek I think this would be relatively straightforward to tackle. Would you like to do the honors?
Exception seems to be coming from:
lib\Runtime\Library\JSONParser.cpp:412 - JSON::JSONParser::ParseObject
See the following for the JSON.parse() entry point:
lib\Runtime\Library\JSON.cpp:22 - JSON::Parse
Exception seems to be coming from:
lib\Runtime\Library\JSONParser.cpp:412 - JSON::JSONParser::ParseObject
See the following for the JSON.parse() entry point:
lib\Runtime\Library\JSON.cpp:22 - JSON::Parse
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub #804 (comment)
…rors
Merge pull request #1001 from nojvek:master
I added JSON.parse specific errors. It still doesn't feel very clean as there is no column info. Would this be relatively easy to add?
'Syntax Error' is very ambiguous error. It could mean a lot of things. When its part of a large callstack, I would think its a javascript syntax error somewhere in my js files. The callstack doesn't even mention JSON.parse.
Chrome gives
Ideal error should mention something like "JSON.parse Syntax error: Empty string" or "JSON.parse Syntax Error: unexpected end of json input."
The text was updated successfully, but these errors were encountered: