Skip to content

Commit ca77d61

Browse files
committed
Changed test for clarity
1 parent c452a67 commit ca77d61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/language/destructuring/binding/iteratorstepvalue-throws.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ info: |
2828
1. If _value_ is not present, then
2929
a. Let _result_ be Completion(Call(_iteratorRecord_.[[NextMethod]], _iteratorRecord_.[[Iterator]])).
3030
6. Return _result_.
31-
features: [destructuring-binding, async-functions, async-iteration, Symbol.iterator]
31+
features: [destructuring-binding, Symbol.iterator]
3232
---*/
3333
assert.throws(TypeError, function () {
34-
var [[] = 1] = { [Symbol.iterator] : async function (x) {}};
34+
var [{} = 1] = { [Symbol.iterator] : function (x) {return {};}};
3535
}, "IteratorStepValue throws when iteratorRecord.[[NextMethod]] is undefined.");

0 commit comments

Comments
 (0)