@@ -2073,7 +2073,7 @@ defined on the same [=interface=].
2073
2073
The <dfn id="dfn-return-type" export>return type</dfn> of the operation is given
2074
2074
by the type (matching <emu-nt><a href="#prod-ReturnType">ReturnType</a></emu-nt>)
2075
2075
that appears before the operation’s optional [=identifier=].
2076
- A return type of <dfn id="idl- void" interface>void</dfn> indicates that the operation returns no value.
2076
+ A return type of {{ void}} indicates that the operation returns no value.
2077
2077
If the return type is an
2078
2078
[=identifier=] followed by <emu-t>?</emu-t>,
2079
2079
then the identifier must
@@ -5536,6 +5536,15 @@ value is known as its <dfn id="dfn-specific-type" export>specific type</dfn>.
5536
5536
(Values of [=union types=] also have
5537
5537
[=specific types=].)
5538
5538
5539
+ <h4 id="idl-void" interface>void</h4>
5540
+
5541
+ The {{void}} type has a unique value.
5542
+
5543
+ It can only be used as the [=return type=] of an [=operation=] or the parameter of a
5544
+ [=promise type=].
5545
+
5546
+ The [=type name=] of the {{void}} type is "<code>Void</code>".
5547
+
5539
5548
5540
5549
<h4 oldids="dom-boolean" id="idl-boolean" interface>boolean</h4>
5541
5550
@@ -6892,16 +6901,15 @@ ECMAScript value type.
6892
6901
6893
6902
<h4 id="es-void">void</h4>
6894
6903
6895
- The only place that the {{void}} type may appear
6896
- in IDL is as the [=return type=] of an
6897
- [=operation=]. Functions on [=platform objects=]
6898
- that implement an operation whose IDL specifies a
6899
- {{void}} return type must return the
6900
- <emu-val>undefined</emu-val> value.
6904
+ <p id="es-to-void">
6905
+ An ECMAScript value |V| is [=converted to an IDL value|converted=] to an IDL {{void}} value by
6906
+ returning the unique {{void}} value, ignoring |V|.
6907
+ </p>
6901
6908
6902
- ECMAScript functions that implement an operation whose IDL
6903
- specifies a {{void}} return type
6904
- may return any value, which will be discarded.
6909
+ <p id="void-to-es">
6910
+ The unique IDL {{void}} value is [=converted to an ECMAScript value|converted=] to the
6911
+ ECMAScript <emu-val>undefined</emu-val> value.
6912
+ </p>
6905
6913
6906
6914
6907
6915
<h4 id="es-boolean">boolean</h4>
0 commit comments