summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statementList/class-regexp-literal.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/statementList/class-regexp-literal.js')
-rw-r--r--js/src/tests/test262/language/statementList/class-regexp-literal.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/statementList/class-regexp-literal.js b/js/src/tests/test262/language/statementList/class-regexp-literal.js
new file mode 100644
index 0000000000..c51ba2917e
--- /dev/null
+++ b/js/src/tests/test262/language/statementList/class-regexp-literal.js
@@ -0,0 +1,40 @@
+// This file was procedurally generated from the following sources:
+// - src/statementList/regexp-literal.case
+// - src/statementList/default/class-declaration.template
+/*---
+description: Regular Expression Literal (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
+ ...
+
+ ExpressionStatement[Yield, Await]:
+ [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }]
+ Expression ;
+
+ RegularExpressionLiteral ::
+ / RegularExpressionBody / RegularExpressionFlags
+---*/
+
+
+class C {}/1/;
+
+reportCompare(0, 0);