File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -105918,19 +105918,25 @@ dictionary <dfn dictionary>ErrorEventInit</dfn> : <span>EventInit</span> {
105918
105918
interface <dfn interface>PromiseRejectionEvent</dfn> : <span>Event</span> {
105919
105919
<span data-x="dom-Event-constructor">constructor</span>(DOMString type, <span>PromiseRejectionEventInit</span> eventInitDict);
105920
105920
105921
- readonly attribute Promise<any> <span data-x="dom-PromiseRejectionEvent-promise">promise</span>;
105921
+ readonly attribute <span data-x="idl-object">object</span> <span data-x="dom-PromiseRejectionEvent-promise">promise</span>;
105922
105922
readonly attribute any <span data-x="dom-PromiseRejectionEvent-reason">reason</span>;
105923
105923
};
105924
105924
105925
105925
dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</span> {
105926
- required Promise<any> promise;
105926
+ required <span data-x="idl-object">object</span> promise;
105927
105927
any reason;
105928
105928
};</code></pre>
105929
105929
105930
105930
<p>The <dfn attribute for="PromiseRejectionEvent"><code
105931
105931
data-x="dom-PromiseRejectionEvent-promise">promise</code></dfn> attribute must return the value it
105932
105932
was initialized to. It represents the promise which this notification is about.</p>
105933
105933
105934
+ <p class="note">Because of how Web IDL conversion rules for <code
105935
+ data-x="">Promise<<var>T</var>></code> types always wrap the input into a new promise, the
105936
+ <code data-x="dom-PromiseRejectionEvent-promise">promise</code> attribute is of type <code
105937
+ data-x="idl-object">object</code> instead, which is more appropriate for representing an opaque
105938
+ handle to the original promise object.</p>
105939
+
105934
105940
<p>The <dfn attribute for="PromiseRejectionEvent"><code
105935
105941
data-x="dom-PromiseRejectionEvent-reason">reason</code></dfn> attribute must return the value it
105936
105942
was initialized to. It represents the rejection reason for the promise.</p>
You can’t perform that action at this time.
0 commit comments