v8/test/message
littledan 5c036cd772 Improve error message for duplicate parameters
Duplicate parameters are banned both overall in strict mode and also
in arrow functions. Our error message for both cases blamed strict
mode, which is confusing. This patch fixes the message to point to
arrow functions as a possible source as well.

R=wingo, adamk
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#29662}
2015-07-14 21:59:03 +00:00
..
regress Make compilers agree on source position of thrown errors. 2015-04-13 09:02:48 +00:00
arrow-bare-rest-param.js Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
arrow-bare-rest-param.out Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
arrow-formal-parameters.js Improve error message for duplicate parameters 2015-07-14 21:59:03 +00:00
arrow-formal-parameters.out Improve error message for duplicate parameters 2015-07-14 21:59:03 +00:00
arrow-missing.js Better error reporting for "return();" 2015-06-19 15:10:10 +00:00
arrow-missing.out Better error reporting for "return();" 2015-06-19 15:10:10 +00:00
arrow-param-after-rest-2.js Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
arrow-param-after-rest-2.out Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
arrow-param-after-rest.js Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
arrow-param-after-rest.out Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
arrow-strict-eval-bare-parameter.js Fix unexpected token messages in expression classifier 2015-06-24 17:25:25 +00:00
arrow-strict-eval-bare-parameter.out Better error message for eval=>42 in strict mode 2015-06-25 16:17:21 +00:00
arrow-two-rest-params.js Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
arrow-two-rest-params.out Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
class-constructor-accessor.js [es6] Remove harmony-classes flag 2015-06-26 21:16:58 +00:00
class-constructor-accessor.out [parser] better error message for generator constructors 2015-03-06 16:54:39 +00:00
class-constructor-generator.js [es6] Remove harmony-classes flag 2015-06-26 21:16:58 +00:00
class-constructor-generator.out [parser] better error message for generator constructors 2015-03-06 16:54:39 +00:00
destructuring-modify-const.js [destructuring] More tests for object literal pattern 2015-05-18 20:14:51 +00:00
destructuring-modify-const.out [destructuring] More tests for object literal pattern 2015-05-18 20:14:51 +00:00
export-duplicate-as.js Teach ModuleDescriptor about basic local exports 2015-02-19 20:15:13 +00:00
export-duplicate-as.out Teach ModuleDescriptor about basic local exports 2015-02-19 20:15:13 +00:00
export-duplicate-default.js Teach ModuleDescriptor about basic local exports 2015-02-19 20:15:13 +00:00
export-duplicate-default.out Teach ModuleDescriptor about basic local exports 2015-02-19 20:15:13 +00:00
export-duplicate.js Teach ModuleDescriptor about basic local exports 2015-02-19 20:15:13 +00:00
export-duplicate.out Teach ModuleDescriptor about basic local exports 2015-02-19 20:15:13 +00:00
for-in-let-loop-initializers-strict.js [es6] emit error when for-in loop declarations are initialized in strict mode 2015-04-07 19:28:42 +00:00
for-in-let-loop-initializers-strict.out [es6] emit error when for-in loop declarations are initialized in strict mode 2015-04-07 19:28:42 +00:00
for-in-loop-initializers-strict.js [es6] emit error when for-in loop declarations are initialized in strict mode 2015-04-07 19:28:42 +00:00
for-in-loop-initializers-strict.out [es6] emit error when for-in loop declarations are initialized in strict mode 2015-04-07 19:28:42 +00:00
for-of-let-loop-initializers.js [es6] emit error when for-in loop declarations are initialized in strict mode 2015-04-07 19:28:42 +00:00
for-of-let-loop-initializers.out [es6] emit error when for-in loop declarations are initialized in strict mode 2015-04-07 19:28:42 +00:00
for-of-loop-initializers-sloppy.js [es6] emit error when for-in loop declarations are initialized in strict mode 2015-04-07 19:28:42 +00:00
for-of-loop-initializers-sloppy.out [es6] emit error when for-in loop declarations are initialized in strict mode 2015-04-07 19:28:42 +00:00
for-of-loop-initializers-strict.js [es6] emit error when for-in loop declarations are initialized in strict mode 2015-04-07 19:28:42 +00:00
for-of-loop-initializers-strict.out [es6] emit error when for-in loop declarations are initialized in strict mode 2015-04-07 19:28:42 +00:00
formal-parameters-bad-rest.js Factor formal argument parsing into ParserBase 2015-04-21 11:09:34 +00:00
formal-parameters-bad-rest.out Factor formal argument parsing into ParserBase 2015-04-21 11:09:34 +00:00
formal-parameters-strict-body.js Factor formal argument parsing into ParserBase 2015-04-21 11:09:34 +00:00
formal-parameters-strict-body.out Factor formal argument parsing into ParserBase 2015-04-21 11:09:34 +00:00
formal-parameters-trailing-comma.js Factor formal argument parsing into ParserBase 2015-04-21 11:09:34 +00:00
formal-parameters-trailing-comma.out Factor formal argument parsing into ParserBase 2015-04-21 11:09:34 +00:00
import-as-eval.js Simplify error message logic in ParseImportNames 2015-02-25 19:40:54 +00:00
import-as-eval.out Simplify error message logic in ParseImportNames 2015-02-25 19:40:54 +00:00
import-as-redeclaration.js Re-introduce ImportDeclaration to the parser 2015-02-26 18:41:04 +00:00
import-as-redeclaration.out Re-introduce ImportDeclaration to the parser 2015-02-26 18:41:04 +00:00
import-as-reserved-word.js Simplify error message logic in ParseImportNames 2015-02-25 19:40:54 +00:00
import-as-reserved-word.out Simplify error message logic in ParseImportNames 2015-02-25 19:40:54 +00:00
import-eval.js Simplify error message logic in ParseImportNames 2015-02-25 19:40:54 +00:00
import-eval.out Simplify error message logic in ParseImportNames 2015-02-25 19:40:54 +00:00
import-redeclaration.js Re-introduce ImportDeclaration to the parser 2015-02-26 18:41:04 +00:00
import-redeclaration.out Re-introduce ImportDeclaration to the parser 2015-02-26 18:41:04 +00:00
import-reserved-word.js Simplify error message logic in ParseImportNames 2015-02-25 19:40:54 +00:00
import-reserved-word.out Simplify error message logic in ParseImportNames 2015-02-25 19:40:54 +00:00
instanceof.js
instanceof.out
invalid-spread-2.js Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
invalid-spread-2.out Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
invalid-spread.js Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
invalid-spread.out Support rest parameters in arrow functions 2015-06-10 16:11:31 +00:00
isvar.js
isvar.out
message.status X87: enable the X87 turbofan support. 2015-06-16 11:23:19 +00:00
no-legacy-const-2.js Add a flag for legacy const semantics 2015-07-07 21:57:19 +00:00
no-legacy-const-2.out Add a flag for legacy const semantics 2015-07-07 21:57:19 +00:00
no-legacy-const-3.js Add a flag for legacy const semantics 2015-07-07 21:57:19 +00:00
no-legacy-const-3.out Add a flag for legacy const semantics 2015-07-07 21:57:19 +00:00
no-legacy-const.js Add a flag for legacy const semantics 2015-07-07 21:57:19 +00:00
no-legacy-const.out Add a flag for legacy const semantics 2015-07-07 21:57:19 +00:00
overwritten-builtins.js
overwritten-builtins.out
paren_in_arg_string.js
paren_in_arg_string.out
replacement-marker-as-argument.js
replacement-marker-as-argument.out
rest-param-class-setter-strict.js [es6] Remove harmony-classes flag 2015-06-26 21:16:58 +00:00
rest-param-class-setter-strict.out [parser] report SyntaxError if rest parameter used in Setter MethodDefinition 2015-05-18 15:52:45 +00:00
rest-param-object-setter-sloppy.js [parser] report SyntaxError if rest parameter used in Setter MethodDefinition 2015-05-18 15:52:45 +00:00
rest-param-object-setter-sloppy.out [parser] report SyntaxError if rest parameter used in Setter MethodDefinition 2015-05-18 15:52:45 +00:00
rest-param-object-setter-strict.js [parser] report SyntaxError if rest parameter used in Setter MethodDefinition 2015-05-18 15:52:45 +00:00
rest-param-object-setter-strict.out [parser] report SyntaxError if rest parameter used in Setter MethodDefinition 2015-05-18 15:52:45 +00:00
simple-throw.js
simple-throw.out
single-function-literal.js Revert of Correctly compute line numbers in functions from the function constructor. (patchset #5 id:80001 of https://codereview.chromium.org/701093003/) 2015-04-01 10:11:26 +00:00
single-function-literal.out
strict-formal-parameters.js Factor formal argument parsing into ParserBase 2015-04-21 11:09:34 +00:00
strict-formal-parameters.out Improve error message for duplicate parameters 2015-07-14 21:59:03 +00:00
strong-object-freeze-prop.js [strong] fix strong object exception messages 2015-06-01 22:44:05 +00:00
strong-object-freeze-prop.out [strong] fix strong object exception messages 2015-06-01 22:44:05 +00:00
strong-object-set-proto.js [strong] fix strong object exception messages 2015-06-01 22:44:05 +00:00
strong-object-set-proto.out [strong] fix strong object exception messages 2015-06-01 22:44:05 +00:00
super-constructor-extra-statement.js [es6] Remove harmony-classes flag 2015-06-26 21:16:58 +00:00
super-constructor-extra-statement.out Make super() a syntax error in base class constructor 2015-02-12 23:04:54 +00:00
super-constructor.js [es6] Remove harmony-classes flag 2015-06-26 21:16:58 +00:00
super-constructor.out Make super() a syntax error in base class constructor 2015-02-12 23:04:54 +00:00
super-in-function.js [es6] Remove harmony-classes flag 2015-06-26 21:16:58 +00:00
super-in-function.out Fix location of super syntax errors 2015-02-12 20:53:17 +00:00
testcfg.py Teach ModuleDescriptor about basic local exports 2015-02-19 20:15:13 +00:00
try-catch-finally-no-message.js
try-catch-finally-no-message.out
try-catch-finally-return-in-finally.js
try-catch-finally-return-in-finally.out
try-catch-finally-throw-in-catch-and-finally.js
try-catch-finally-throw-in-catch-and-finally.out
try-catch-finally-throw-in-catch.js
try-catch-finally-throw-in-catch.out
try-catch-finally-throw-in-finally.js
try-catch-finally-throw-in-finally.out
try-finally-return-in-finally.js
try-finally-return-in-finally.out
try-finally-throw-in-finally.js
try-finally-throw-in-finally.out
try-finally-throw-in-try-and-finally.js
try-finally-throw-in-try-and-finally.out
try-finally-throw-in-try.js
try-finally-throw-in-try.out
unterminated-arg-list.js Beautify syntax error for unterminated argument list 2015-03-16 09:16:26 +00:00
unterminated-arg-list.out Beautify syntax error for unterminated argument list 2015-03-16 09:16:26 +00:00