惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
AI
AI
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
U
Unit 42
Vercel News
Vercel News
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
WordPress大学
WordPress大学
Martin Fowler
Martin Fowler
博客园 - 【当耐特】
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
F
Full Disclosure
Google DeepMind News
Google DeepMind News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Help Net Security
Recorded Future
Recorded Future
N
News and Events Feed by Topic
雷峰网
雷峰网
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
aimingoo的专栏
aimingoo的专栏
S
Schneier on Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
O
OpenAI News
Project Zero
Project Zero
罗磊的独立博客
G
GRAHAM CLULEY
腾讯CDC
P
Privacy International News Feed
V
V2EX
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
H
Heimdal Security Blog
L
LINUX DO - 热门话题
Forbes - Security
Forbes - Security
美团技术团队
MongoDB | Blog
MongoDB | Blog
Security Latest
Security Latest
M
MIT News - Artificial intelligence
T
Tor Project blog
Cisco Talos Blog
Cisco Talos Blog
宝玉的分享
宝玉的分享
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog

Recent Commits to webidl:main

Editorial: update PropertyDescriptor [[Get]]/[[Set]] to [[Getter]]/[[… · whatwg/webidl@fad9b4c Editorial: use CreateBuiltinFunction for more built-in function objects · whatwg/webidl@9769865 Editorial: use CreateBuiltinFunction for (async) iterator return and … · whatwg/webidl@29fb50e Update DOMException language to reflect standardized stack accessor Review Draft Publication: March 2026 · whatwg/webidl@a652053 Meta: update repository files · whatwg/webidl@9db3040 Meta: update repository files · whatwg/webidl@9f8514a Meta: add two missing <tr> tags · whatwg/webidl@a6602fd Create an operation does not care about [LegacyLenientThis] · whatwg/webidl@4c55acb Add missing arguments for CreateBuiltinFunction · whatwg/webidl@fb0c9c9 Meta: export async_iterable · whatwg/webidl@25875a8 Review Draft Publication: September 2025 · whatwg/webidl@a79e69e Replace IsResizableArrayBuffer with IsFixedLengthArrayBuffer · whatwg/webidl@abc4414 Meta: link to Korean translations · whatwg/webidl@278f0bd Introduce new extended attribute grammars · whatwg/webidl@ef2df44 Upgrade QuotaExceededError to a DOMException derived interface Remove `async` as a keyword Do not throw if the attribute setter is called with no arguments · whatwg/webidl@909c3fe Change async_iterable<> type to async_sequence<> and async iterable<>…
Editorial: note that Promise<T> arguments also accept T · whatwg/webidl@e1300e9
tabatkins · 2026-03-27 · via Recent Commits to webidl:main
Original file line numberDiff line numberDiff line change

@@ -8582,6 +8582,24 @@ IDL [=promise type=] values are represented by JavaScript [=PromiseCapability=]

85828582

IDL [=promise type=] represents.

85838583

</p>

85848584
8585+

<div class=note>

8586+
8587+

When converting a JS value to a <code>Promise&lt;T></code> IDL value,

8588+

first the value is wrapped in an (IDL) Promise,

8589+

then later machinery ensures the promise correctly resolves

8590+

to a value of type <code>T</code>.

8591+
8592+

This means that, for example,

8593+

a method defined to take a <code>Promise&lt;T></code> argument

8594+

will automatically accept both {{Promise}} objects

8595+

(which must eventually resolve to a <code>T</code> object)

8596+

and <code>T</code> objects themselves.

8597+
8598+

(It will also, initially, accept <em>any other</em> type of object,

8599+

but will eventually auto-reject the promise

8600+

for resolving to the wrong type.)

8601+

</div>

8602+
85858603

<h5 id="js-promise-manipulation" oldids="es-promise-manipulation">Creating and manipulating Promises</h5>

85868604
85878605

<div algorithm>