Generate tests

This commit is contained in:
Rick Waldron 2020-09-22 09:39:38 -04:00
parent b59bd307a8
commit 41c5a42fa7
4 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,25 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/class-heritage-array-literal-arrow-heritage.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: It's a SyntaxError if an array literal evaluated on ClassHeritage uses a private name. (class expression)
esid: prod-ClassElement
features: [class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ClassTail : ClassHeritage { ClassBody }
ClassHeritage :
extends LeftHandSideExpression
---*/
$DONOTEVALUATE();
var C = class extends () => {} {
};

View File

@ -0,0 +1,25 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/class-heritage-array-literal-async-arrow-heritage.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: It's a SyntaxError if an array literal evaluated on ClassHeritage uses a private name. (class expression)
esid: prod-ClassElement
features: [class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ClassTail : ClassHeritage { ClassBody }
ClassHeritage :
extends LeftHandSideExpression
---*/
$DONOTEVALUATE();
var C = class extends async () => {} {
};

View File

@ -0,0 +1,25 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/class-heritage-array-literal-arrow-heritage.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: It's a SyntaxError if an array literal evaluated on ClassHeritage uses a private name. (class declaration)
esid: prod-ClassElement
features: [class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ClassTail : ClassHeritage { ClassBody }
ClassHeritage :
extends LeftHandSideExpression
---*/
$DONOTEVALUATE();
class C extends () => {} {
}

View File

@ -0,0 +1,25 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/class-heritage-array-literal-async-arrow-heritage.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: It's a SyntaxError if an array literal evaluated on ClassHeritage uses a private name. (class declaration)
esid: prod-ClassElement
features: [class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
ClassTail : ClassHeritage { ClassBody }
ClassHeritage :
extends LeftHandSideExpression
---*/
$DONOTEVALUATE();
class C extends async () => {} {
}