mirror of https://github.com/tc39/test262.git
Frontmatter: updates to ForIn/OfBodyEvaluation tests
This commit is contained in:
parent
d7b5715e6c
commit
b7afd3d00d
|
@ -87,6 +87,7 @@ DataView.prototype.getUint32
|
||||||
DataView.prototype.setUint8
|
DataView.prototype.setUint8
|
||||||
default-arg
|
default-arg
|
||||||
default-parameters
|
default-parameters
|
||||||
|
destructuring-assignment
|
||||||
destructuring-binding
|
destructuring-binding
|
||||||
for-of
|
for-of
|
||||||
Float64Array
|
Float64Array
|
||||||
|
|
|
@ -1,12 +1,24 @@
|
||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
/*---
|
/*---
|
||||||
es6id: 13.6.4.13 S5.i.i
|
esid: sec-runtime-semantics-forin-div-ofheadevaluation-tdznames-expr-iterationkind
|
||||||
description: >
|
description: >
|
||||||
If the left-hand side requires a DestructuringAssignment operation and that
|
If the left-hand side requires a DestructuringAssignment operation and that
|
||||||
operation produces an error, the iterator should be closed and the error
|
operation produces an error, the iterator should be closed and the error
|
||||||
forwarded to the runtime.
|
forwarded to the runtime.
|
||||||
features: [Symbol.iterator]
|
info: |
|
||||||
|
...
|
||||||
|
Else,
|
||||||
|
If lhsKind is assignment, then
|
||||||
|
Let status be the result of performing DestructuringAssignmentEvaluation of
|
||||||
|
assignmentPattern using nextValue as the argument.
|
||||||
|
...
|
||||||
|
If status is an abrupt completion, then
|
||||||
|
Set the running execution context's LexicalEnvironment to oldEnv.
|
||||||
|
If iterationKind is enumerate, then
|
||||||
|
Return status.
|
||||||
|
|
||||||
|
features: [destructuring-assignment,for-of,Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
|
|
|
@ -1,9 +1,17 @@
|
||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
/*---
|
/*---
|
||||||
es6id: 13.6.4.13 S5.i.i
|
esid: sec-runtime-semantics-forin-div-ofbodyevaluation-lhs-stmt-iterator-lhskind-labelset
|
||||||
description: >
|
description: >
|
||||||
The left-hand side may take the form of a DestructuringAssignment.
|
The left-hand side may take the form of a DestructuringAssignment.
|
||||||
|
info: |
|
||||||
|
...
|
||||||
|
Else,
|
||||||
|
If lhsKind is assignment, then
|
||||||
|
Let status be the result of performing DestructuringAssignmentEvaluation of
|
||||||
|
assignmentPattern using nextValue as the argument.
|
||||||
|
|
||||||
|
features: [destructuring-assignment,for-of]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var iterationCount = 0;
|
var iterationCount = 0;
|
||||||
|
|
|
@ -1,12 +1,23 @@
|
||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
/*---
|
/*---
|
||||||
es6id: 13.6.4.13 S5.h.ii
|
esid: sec-runtime-semantics-forin-div-ofbodyevaluation-lhs-stmt-iterator-lhskind-labelset
|
||||||
description: >
|
description: >
|
||||||
If the left-hand side is not a lexical binding and the assignment produces
|
If the left-hand side is not a lexical binding and the assignment produces
|
||||||
an error, the iterator should be closed and the error forwarded to the
|
an error, the iterator should be closed and the error forwarded to the
|
||||||
runtime.
|
runtime.
|
||||||
features: [Symbol.iterator]
|
info: |
|
||||||
|
...
|
||||||
|
If destructuring is false, then
|
||||||
|
If lhsRef is an abrupt completion, then
|
||||||
|
Let status be lhsRef.
|
||||||
|
Else if lhsKind is lexicalBinding, then
|
||||||
|
Let status be InitializeReferencedBinding(lhsRef, nextValue).
|
||||||
|
Else,
|
||||||
|
Let status be PutValue(lhsRef, nextValue).
|
||||||
|
...
|
||||||
|
|
||||||
|
features: [for-of,Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
|
|
Loading…
Reference in New Issue