From 5cdbf084a7ebd798e94c37721eab44b91e94092f Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Mon, 10 Sep 2018 14:13:39 -0400 Subject: [PATCH] Generate tests --- .../grammar-special-meth-ctor-set.js | 2 +- .../grammar-static-private-ctor-meth-valid.js | 26 ------------------- .../grammar-static-set-meth-prototype.js | 2 +- ...grammar-static-ctor-accessor-meth-valid.js | 2 +- .../grammar-special-meth-ctor-set.js | 2 +- .../grammar-static-private-ctor-meth-valid.js | 26 ------------------- .../grammar-static-set-meth-prototype.js | 2 +- ...grammar-static-ctor-accessor-meth-valid.js | 2 +- 8 files changed, 6 insertions(+), 58 deletions(-) delete mode 100644 test/language/expressions/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js delete mode 100644 test/language/statements/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js diff --git a/test/language/expressions/class/syntax/early-errors/grammar-special-meth-ctor-set.js b/test/language/expressions/class/syntax/early-errors/grammar-special-meth-ctor-set.js index d024b1729a..c00b6ebee7 100644 --- a/test/language/expressions/class/syntax/early-errors/grammar-special-meth-ctor-set.js +++ b/test/language/expressions/class/syntax/early-errors/grammar-special-meth-ctor-set.js @@ -21,5 +21,5 @@ info: | throw "Test262: This statement should not be evaluated."; var C = class { - set constructor() {} + set constructor(_) {} }; diff --git a/test/language/expressions/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js b/test/language/expressions/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js deleted file mode 100644 index 1b5f2e7eab..0000000000 --- a/test/language/expressions/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js +++ /dev/null @@ -1,26 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/class-elements/grammar-static-private-ctor-meth-valid.case -// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template -/*--- -description: Static Methods can be named constructor (class expression) -esid: prod-ClassElement -features: [class] -flags: [generated] -negative: - phase: parse - type: SyntaxError -info: | - Class Definitions / Static Semantics: Early Errors - - ClassElement : static MethodDefinition - It is a Syntax Error if PropName of MethodDefinition is "prototype" - ----*/ - - -throw "Test262: This statement should not be evaluated."; - -var C = class { - static constructor() {} - constructor() {} // stacks with a valid constructor -}; diff --git a/test/language/expressions/class/syntax/early-errors/grammar-static-set-meth-prototype.js b/test/language/expressions/class/syntax/early-errors/grammar-static-set-meth-prototype.js index 0e675f4a87..a49baf5f2c 100644 --- a/test/language/expressions/class/syntax/early-errors/grammar-static-set-meth-prototype.js +++ b/test/language/expressions/class/syntax/early-errors/grammar-static-set-meth-prototype.js @@ -21,5 +21,5 @@ info: | throw "Test262: This statement should not be evaluated."; var C = class { - static set prototype() {} + static set prototype(_) {} }; diff --git a/test/language/expressions/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js b/test/language/expressions/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js index 86f0bb41fe..87f7659bad 100644 --- a/test/language/expressions/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js +++ b/test/language/expressions/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js @@ -21,7 +21,7 @@ info: | var C = class { static get constructor() {} - static set constructor() {} + static set constructor(_) {} constructor() {} // stacks with a valid constructor }; diff --git a/test/language/statements/class/syntax/early-errors/grammar-special-meth-ctor-set.js b/test/language/statements/class/syntax/early-errors/grammar-special-meth-ctor-set.js index 8e6097701b..7567981c19 100644 --- a/test/language/statements/class/syntax/early-errors/grammar-special-meth-ctor-set.js +++ b/test/language/statements/class/syntax/early-errors/grammar-special-meth-ctor-set.js @@ -21,5 +21,5 @@ info: | throw "Test262: This statement should not be evaluated."; class C { - set constructor() {} + set constructor(_) {} } diff --git a/test/language/statements/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js b/test/language/statements/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js deleted file mode 100644 index 2ec596b364..0000000000 --- a/test/language/statements/class/syntax/early-errors/grammar-static-private-ctor-meth-valid.js +++ /dev/null @@ -1,26 +0,0 @@ -// This file was procedurally generated from the following sources: -// - src/class-elements/grammar-static-private-ctor-meth-valid.case -// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template -/*--- -description: Static Methods can be named constructor (class declaration) -esid: prod-ClassElement -features: [class] -flags: [generated] -negative: - phase: parse - type: SyntaxError -info: | - Class Definitions / Static Semantics: Early Errors - - ClassElement : static MethodDefinition - It is a Syntax Error if PropName of MethodDefinition is "prototype" - ----*/ - - -throw "Test262: This statement should not be evaluated."; - -class C { - static constructor() {} - constructor() {} // stacks with a valid constructor -} diff --git a/test/language/statements/class/syntax/early-errors/grammar-static-set-meth-prototype.js b/test/language/statements/class/syntax/early-errors/grammar-static-set-meth-prototype.js index 1de086e4f4..222486686e 100644 --- a/test/language/statements/class/syntax/early-errors/grammar-static-set-meth-prototype.js +++ b/test/language/statements/class/syntax/early-errors/grammar-static-set-meth-prototype.js @@ -21,5 +21,5 @@ info: | throw "Test262: This statement should not be evaluated."; class C { - static set prototype() {} + static set prototype(_) {} } diff --git a/test/language/statements/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js b/test/language/statements/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js index 6ff13c7427..ef89e5b175 100644 --- a/test/language/statements/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js +++ b/test/language/statements/class/syntax/valid/grammar-static-ctor-accessor-meth-valid.js @@ -21,7 +21,7 @@ info: | class C { static get constructor() {} - static set constructor() {} + static set constructor(_) {} constructor() {} // stacks with a valid constructor }