Change 'Parse error' to three more informative messages.
authormvstanton@chromium.org <mvstanton@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 26 Apr 2013 14:26:54 +0000 (14:26 +0000)
committermvstanton@chromium.org <mvstanton@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 26 Apr 2013 14:26:54 +0000 (14:26 +0000)
commitd5e485a3cca23c9ba370ca49f1d456d3be93c939
tree6a4848245b4b45a10c5128e607ff3c473bb8285b
parentc50304209aff5904fb89a3b4d8a37d251f5266e4
Change 'Parse error' to three more informative messages.

Replace the 'unable_to_parse' key used in three places with three difference keys.
Provide three more informative and less ambiguous error messages in place of 'Parse error'.

Add three test/message cases to cover the new messages.

BUG=2636

Review URL: https://codereview.chromium.org/14161007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14462 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/messages.js
src/parser.cc
src/v8natives.js
test/message/isvar.js [new file with mode: 0644]
test/message/isvar.out [new file with mode: 0644]
test/message/paren_in_arg_string.js [new file with mode: 0644]
test/message/paren_in_arg_string.out [new file with mode: 0644]
test/message/single-function-literal.js [new file with mode: 0644]
test/message/single-function-literal.out [new file with mode: 0644]