summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statementList/class-block.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/statementList/class-block.js')
-rw-r--r--js/src/tests/test262/language/statementList/class-block.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/statementList/class-block.js b/js/src/tests/test262/language/statementList/class-block.js
new file mode 100644
index 0000000000..4b44b01bf0
--- /dev/null
+++ b/js/src/tests/test262/language/statementList/class-block.js
@@ -0,0 +1,38 @@
+// This file was procedurally generated from the following sources:
+// - src/statementList/block.case
+// - src/statementList/default/class-declaration.template
+/*---
+description: Block (Valid syntax of StatementList starting with a Class Declaration)
+esid: prod-StatementList
+features: [class]
+flags: [generated]
+info: |
+ StatementList:
+ StatementListItem
+ StatementList StatementListItem
+
+ StatementListItem:
+ Statement
+ Declaration
+
+ Declaration:
+ ClassDeclaration
+
+
+ Statement:
+ BlockStatement
+ VariableStatement
+ EmptyStatement
+ ExpressionStatement
+ ...
+
+ // lookahead here prevents capturing an Object literal
+ ExpressionStatement:
+ [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
+ Expression ;
+---*/
+
+
+class C {}{}
+
+reportCompare(0, 0);