mirror of https://github.com/tc39/test262.git
Generate Tests
This commit is contained in:
parent
84198d6664
commit
d93e15662f
|
@ -1,23 +0,0 @@
|
||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/dstr-assignment/array-elem-init-simple-strict.case
|
|
||||||
// - src/dstr-assignment/syntax/assignment-expr.template
|
|
||||||
/*---
|
|
||||||
description: It is a Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget(LeftHandSideExpression) is false. (AssignmentExpression)
|
|
||||||
esid: sec-variable-statement-runtime-semantics-evaluation
|
|
||||||
es6id: 13.3.2.4
|
|
||||||
features: [destructuring-binding]
|
|
||||||
flags: [generated, onlyStrict]
|
|
||||||
negative:
|
|
||||||
phase: early
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
|
||||||
VariableDeclaration : BindingPattern Initializer
|
|
||||||
|
|
||||||
1. Let rhs be the result of evaluating Initializer.
|
|
||||||
2. Let rval be GetValue(rhs).
|
|
||||||
3. ReturnIfAbrupt(rval).
|
|
||||||
4. Return the result of performing BindingInitialization for
|
|
||||||
BindingPattern passing rval and undefined as arguments.
|
|
||||||
---*/
|
|
||||||
|
|
||||||
0, [arguments] = ;
|
|
|
@ -1,32 +0,0 @@
|
||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/dstr-assignment/array-elem-init-simple-strict.case
|
|
||||||
// - src/dstr-assignment/syntax/for-in.template
|
|
||||||
/*---
|
|
||||||
description: It is a Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget(LeftHandSideExpression) is false. (For..in statement)
|
|
||||||
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
|
|
||||||
es6id: 13.7.5.11
|
|
||||||
features: [destructuring-binding]
|
|
||||||
flags: [generated, onlyStrict]
|
|
||||||
negative:
|
|
||||||
phase: early
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
|
||||||
IterationStatement :
|
|
||||||
for ( LeftHandSideExpression of AssignmentExpression ) Statement
|
|
||||||
|
|
||||||
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
|
|
||||||
AssignmentExpression, iterate).
|
|
||||||
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
|
|
||||||
keyResult, assignment, labelSet).
|
|
||||||
|
|
||||||
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
|
|
||||||
|
|
||||||
[...]
|
|
||||||
4. If destructuring is true and if lhsKind is assignment, then
|
|
||||||
a. Assert: lhs is a LeftHandSideExpression.
|
|
||||||
b. Let assignmentPattern be the parse of the source text corresponding to
|
|
||||||
lhs using AssignmentPattern as the goal symbol.
|
|
||||||
[...]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
for ([arguments] in []) ;
|
|
|
@ -1,32 +0,0 @@
|
||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/dstr-assignment/array-elem-init-simple-strict.case
|
|
||||||
// - src/dstr-assignment/syntax/for-of.template
|
|
||||||
/*---
|
|
||||||
description: It is a Syntax Error if LeftHandSideExpression is neither an ObjectLiteral nor an ArrayLiteral and IsValidSimpleAssignmentTarget(LeftHandSideExpression) is false. (For..of statement)
|
|
||||||
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
|
|
||||||
es6id: 13.7.5.11
|
|
||||||
features: [destructuring-binding]
|
|
||||||
flags: [generated, onlyStrict]
|
|
||||||
negative:
|
|
||||||
phase: early
|
|
||||||
type: SyntaxError
|
|
||||||
info: |
|
|
||||||
IterationStatement :
|
|
||||||
for ( LeftHandSideExpression of AssignmentExpression ) Statement
|
|
||||||
|
|
||||||
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
|
|
||||||
AssignmentExpression, iterate).
|
|
||||||
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
|
|
||||||
keyResult, assignment, labelSet).
|
|
||||||
|
|
||||||
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
|
|
||||||
|
|
||||||
[...]
|
|
||||||
4. If destructuring is true and if lhsKind is assignment, then
|
|
||||||
a. Assert: lhs is a LeftHandSideExpression.
|
|
||||||
b. Let assignmentPattern be the parse of the source text corresponding to
|
|
||||||
lhs using AssignmentPattern as the goal symbol.
|
|
||||||
[...]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
for ([arguments] of []) ;
|
|
Loading…
Reference in New Issue