v8/test/webkit/fast/js
marja@chromium.org 8150464209 Make strict more error messages about "eval" and "arguments" less specific.
We used to have error messages which provide context, like "Variable name may
not be eval or arguments in strict mode", but for other illegal words we only
have non-context specific error messages like "Unexpected reserved word".

Providing the context makes the code unnecessarily complex, since every
individual place must remember to check for eval or arguments. This CL produces
a unified error message ("Unexpected eval or arguments in strict mode"), and puts
the error reporting to (Pre)Parser::ParseIdentifier.

Notes:

- The module feature is so experimental, that I decided to not allow "eval" or
"arguments" as module-related identifiers in the strict mode (even though this
check wasn't there before).

- Unfortunately, there were some inconsistencies, since it was the
responsibility of the caller of ParseIdentifier to check "eval" and "arguments"
and some places didn't have the check for no good reason. This CL is supposed to
keep backward compatibility and *not* introduce any new errors.

- ECMA allows "eval" and "arguments" as labels even in strict mode. (Syntax:
"LabelledStatement: Identifier : Statement", and no strict mode restrictions on
Identifier are listed.)

- Tests which compare error message strings will fail, and need to be updated.

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

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19112 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-02-05 16:26:48 +00:00
..
kde Implements ES6 String.prototype.normalize method. 2014-01-31 08:09:17 +00:00
arguments-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
arguments.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
array-bad-time-expected.txt Change test expectations for webkit/fast/js/object-slow-put and friends. 2013-11-06 16:38:40 +00:00
array-bad-time.js Change test expectations for webkit/fast/js/object-slow-put and friends. 2013-11-06 16:38:40 +00:00
array-float-delete-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
array-float-delete.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
array-functions-non-arrays-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
array-functions-non-arrays.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
array-prototype-properties-expected.txt Adjust test expectations to new error on method not found 2014-01-31 17:39:59 +00:00
array-prototype-properties.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
array-slow-put-expected.txt Change test expectations for webkit/fast/js/object-slow-put and friends. 2013-11-06 16:38:40 +00:00
array-slow-put.js Change test expectations for webkit/fast/js/object-slow-put and friends. 2013-11-06 16:38:40 +00:00
array-tostring-ignore-separator-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
array-tostring-ignore-separator.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
basic-strict-mode-expected.txt Make strict more error messages about "eval" and "arguments" less specific. 2014-02-05 16:26:48 +00:00
basic-strict-mode.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
caller-property-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
caller-property.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
date-big-setmonth-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
date-big-setmonth.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
date-negative-setmonth-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
date-negative-setmonth.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
date-preserve-milliseconds-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
date-preserve-milliseconds.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
date-toisostring-expected.txt Adjust test expectations to new error on method not found 2014-01-31 17:39:59 +00:00
date-toisostring.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
deep-recursion-test-expected.txt Migrate more tests from blink repository. 2013-07-30 06:36:48 +00:00
deep-recursion-test.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
end-in-string-escape-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
end-in-string-escape.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
exception-properties-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
exception-properties.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
exception-registerfile-shrink-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
exception-registerfile-shrink.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
excessive-comma-usage-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
excessive-comma-usage.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
function-apply-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
function-apply.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
function-constructor-error-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
function-constructor-error.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
function-decompilation-operators-expected.txt Migrate more tests from blink repository. 2013-07-30 06:36:48 +00:00
function-decompilation-operators.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
function-toString-parentheses-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
function-toString-parentheses.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
function-toString-semicolon-insertion-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
function-toString-semicolon-insertion.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
JSON-parse-reviver-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
JSON-parse-reviver.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
modify-non-references-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
modify-non-references.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
native-error-prototype-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
native-error-prototype.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
number-tofixed-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
number-tofixed.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
number-toprecision-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
number-toprecision.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
number-toString-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
number-toString.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
numeric-escapes-in-string-literals-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
numeric-escapes-in-string-literals.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
object-bad-time-expected.txt Change test expectations for webkit/fast/js/object-slow-put and friends. 2013-11-06 16:38:40 +00:00
object-bad-time.js Change test expectations for webkit/fast/js/object-slow-put and friends. 2013-11-06 16:38:40 +00:00
Object-defineProperty-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
Object-defineProperty.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
object-extra-comma-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
object-extra-comma.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
Object-getOwnPropertyNames-expected.txt Implements ES6 String.prototype.normalize method. 2014-01-31 08:09:17 +00:00
Object-getOwnPropertyNames.js Implements ES6 String.prototype.normalize method. 2014-01-31 08:09:17 +00:00
object-prototype-constructor-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
object-prototype-constructor.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
object-prototype-properties-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
object-prototype-properties.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
object-prototype-toLocaleString-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
object-prototype-toLocaleString.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
object-slow-put-expected.txt Change test expectations for webkit/fast/js/object-slow-put and friends. 2013-11-06 16:38:40 +00:00
object-slow-put.js Change test expectations for webkit/fast/js/object-slow-put and friends. 2013-11-06 16:38:40 +00:00
parser-syntax-check-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
parser-syntax-check.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
primitive-property-access-edge-cases-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
primitive-property-access-edge-cases.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
read-modify-eval-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
read-modify-eval.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-bol-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-bol-with-multiline-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-bol-with-multiline.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-bol.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-extended-characters-crash-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-extended-characters-crash.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-lastindex-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-lastindex.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-look-ahead-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-look-ahead.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-no-extensions-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-no-extensions.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-non-capturing-groups-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-non-capturing-groups.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-non-greedy-parentheses-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-non-greedy-parentheses.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-range-out-of-order-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-range-out-of-order.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-ranges-and-escaped-hyphens-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-ranges-and-escaped-hyphens.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-stack-overflow-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-stack-overflow.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-unicode-handling-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
regexp-unicode-handling.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
reserved-words-strict-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
reserved-words-strict.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
stack-overflow-arrity-catch-expected.txt Rebaseline webkit test with correct assumptions. 2013-07-26 11:22:25 +00:00
stack-overflow-arrity-catch.js Rebaseline webkit test with correct assumptions. 2013-07-26 11:22:25 +00:00
string-anchor-expected.txt Migrate more tests from blink repository. 2013-07-30 06:36:48 +00:00
string-anchor.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
string-capitalization-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
string-capitalization.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
string-fontcolor-expected.txt Migrate more tests from blink repository. 2013-07-30 06:36:48 +00:00
string-fontcolor.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
string-fontsize-expected.txt Migrate more tests from blink repository. 2013-07-30 06:36:48 +00:00
string-fontsize.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
string-link-expected.txt Migrate more tests from blink repository. 2013-07-30 06:36:48 +00:00
string-link.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
string-split-conformance-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
string-split-conformance.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
string-split-double-empty-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
string-split-double-empty.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
string-split-ignore-case-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
string-split-ignore-case.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
toString-exception-expected.txt Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
toString-exception.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00
toString-number-expected.txt Migrate more tests from blink repository. 2013-07-30 06:36:48 +00:00
toString-number.js Make sure files end with exactly one new line and police this in presubmit. 2013-11-22 13:50:39 +00:00
toString-overrides-expected.txt Adjust test expectations to new error on method not found 2014-01-31 17:39:59 +00:00
toString-overrides.js Migrate more tests from blink repository. 2013-07-25 19:54:24 +00:00