Skip to content

Commit 42dc347

Browse files
committed
[web-animations-1] Don't when an iterator returns null/undefined
This brings the spec's handling of dictionary objects into line with WebIDL which has: > If Type(V) is not Undefined, Null or Object, then throw > a TypeError.[1] [1] https://heycam.github.io/webidl/#es-dictionary Closes #2533.
1 parent 72fea3b commit 42dc347

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

web-animations-1/Overview.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ urlPrefix: http://www.ecma-international.org/ecma-262/6.0/#sec-; type: dfn; spec
126126
text: Promise; url: promise-objects
127127
text: PromiseCapability record; url: promisecapability-records
128128
text: Promise.resolve; url: promise.resolve
129+
text: Type; url: ecmascript-data-types-and-values
129130
text: well known symbols
130131
text: [[DefineOwnProperty]]; url: ordinary-object-internal-methods-and-internal-slots-defineownproperty-p-desc
131132
text: [[Get]]; url: ordinary-object-internal-methods-and-internal-slots-get-p-receiver
@@ -5179,9 +5180,9 @@ keyframes using the following procedure:
51795180
1. If <var>next</var> is false abort this loop.
51805181
1. Let <var>nextItem</var> be <a>IteratorValue</a>(next).
51815182
1. <a>Check the completion record</a> of <var>nextItem</var>.
5182-
1. If <var>nextItem</var> is not an object, throw a
5183-
<span class=exceptionname>TypeError</span> and abort these
5184-
steps.
5183+
1. If [=Type=](|nextItem|) is not Undefined, Null or Object, then
5184+
throw a <span class=exceptionname>TypeError</span> and abort
5185+
these steps.
51855186
1. Append to <var>processed keyframes</var> the result of
51865187
running the procedure to <a>process a keyframe-like object</a>
51875188
passing <var>nextItem</var> as the <var>keyframe input</var>

0 commit comments

Comments
 (0)