Tests for (pre)parse errors when "eval" and "arguments" are found in inappropriate...
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 4 Feb 2014 11:26:19 +0000 (11:26 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 4 Feb 2014 11:26:19 +0000 (11:26 +0000)
commit27949558527954fd0de40599e0e627f6afc79507
treed3e0d52cc9162d2a14bff1adef75d5ce2008d00a
parent0f89c8b91d83d08fe6838e488839ea2900df98a1
Tests for (pre)parse errors when "eval" and "arguments" are found in inappropriate places.

In addition:
- Fix a bug in parser discovered by the tests (prefix and postfix confused in an
error message); the preparser had it right.
- Unify the parser and preparser error locations when the name of a function is
"eval" or "arguments. Now both point to the name.

BUG=3126
LOG=N
R=ulan@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19062 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/parser.cc
src/parser.h
test/cctest/test-parsing.cc
test/webkit/fast/js/basic-strict-mode-expected.txt