Skip to content
Snippets Groups Projects
Commit b7afd3d0 authored by Rick Waldron's avatar Rick Waldron
Browse files

Frontmatter: updates to ForIn/OfBodyEvaluation tests

parent d7b5715e
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,7 @@ DataView.prototype.getUint32
DataView.prototype.setUint8
default-arg
default-parameters
destructuring-assignment
destructuring-binding
for-of
Float64Array
......
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// 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: >
If the left-hand side requires a DestructuringAssignment operation and that
operation produces an error, the iterator should be closed and the error
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;
......
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// 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: >
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;
......
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// 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: >
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
runtime.
features: [Symbol.iterator]
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
runtime.
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment