From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../statementList/block-block-with-labels.js | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 js/src/tests/test262/language/statementList/block-block-with-labels.js (limited to 'js/src/tests/test262/language/statementList/block-block-with-labels.js') diff --git a/js/src/tests/test262/language/statementList/block-block-with-labels.js b/js/src/tests/test262/language/statementList/block-block-with-labels.js new file mode 100644 index 0000000000..04dc5f98b5 --- /dev/null +++ b/js/src/tests/test262/language/statementList/block-block-with-labels.js @@ -0,0 +1,42 @@ +// This file was procedurally generated from the following sources: +// - src/statementList/block-with-labels.case +// - src/statementList/default/block.template +/*--- +description: Block with a label (Valid syntax of StatementList starting with a BlockStatement) +esid: prod-StatementList +flags: [generated] +info: | + StatementList: + StatementListItem + StatementList StatementListItem + + StatementListItem: + Statement + Declaration + + Statement: + BlockStatement + + BlockStatement: + Block + + Block: + { StatementList_opt } + + Statement: + BlockStatement + VariableStatement + EmptyStatement + ExpressionStatement + ... + + // lookahead here prevents capturing an Object literal + ExpressionStatement: + [lookahead ∉ { {, function, async [no LineTerminator here] function, class, let [ }] + Expression ; +---*/ + + +{}{x: 42}; + +reportCompare(0, 0); -- cgit v1.2.3