Skip to content

Commit fa3235b

Browse files
authored
close iterators when GetOwnProperty throws (#36)
1 parent 9bbe4ba commit fa3235b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec.emu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ copyright: false
7878
1. Let _allKeys_ be ? _iterables_.[[OwnPropertyKeys]]().
7979
1. Let _keys_ be a new empty List.
8080
1. For each element _key_ of _allKeys_, do
81-
1. Let _desc_ be ? _iterables_.[[GetOwnProperty]](_key_).
81+
1. Let _desc_ be Completion(_iterables_.[[GetOwnProperty]](_key_)).
82+
1. IfAbruptCloseIterators(_desc_, _iters_).
8283
1. If _desc_ is not *undefined* and _desc_.[[Enumerable]] is *true*, then
8384
1. Let _value_ be *undefined*.
8485
1. If IsDataDescriptor(_desc_) is *true*, then

0 commit comments

Comments
 (0)