Skip to content

Commit dbde1ea

Browse files
authored
Exclude undefined from the PrimitiveType in grammar (#1140)
Exclude undefined from the PrimitiveType in grammar Closes #1139.
1 parent dc8f948 commit dbde1ea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.bs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,6 +2253,10 @@ the three special floating point literal values (<emu-t>Infinity</emu-t>,
22532253
[=optional argument/default value=],
22542254
it is interpreted in the same way as for a [=constant=].
22552255

2256+
When the <emu-t>undefined</emu-t> token is used as the
2257+
[=optional argument/default value=],
2258+
the value is the IDL {{undefined}} value.
2259+
22562260
<div id="string-literal" algorithm="value of string literal tokens">
22572261
Optional argument default values can also be specified using a
22582262
<emu-t class="regex"><a href="#prod-string">string</a></emu-t>
@@ -2371,6 +2375,7 @@ Note: When defining [=method steps=], you implicitly have access to [=this=].
23712375
"[" "]"
23722376
"{" "}"
23732377
"null"
2378+
"undefined"
23742379
</pre>
23752380

23762381
<pre class="grammar" id="prod-Operation">
@@ -5719,6 +5724,7 @@ are known as <dfn id="dfn-object-type" export>object types</dfn>.
57195724
"FrozenArray" "&lt;" TypeWithExtendedAttributes "&gt;" Null
57205725
"ObservableArray" "&lt;" TypeWithExtendedAttributes "&gt;" Null
57215726
RecordType Null
5727+
"undefined" Null
57225728
</pre>
57235729

57245730
<div data-fill-with="grammar-ConstType"></div>
@@ -5727,7 +5733,6 @@ are known as <dfn id="dfn-object-type" export>object types</dfn>.
57275733
PrimitiveType :
57285734
UnsignedIntegerType
57295735
UnrestrictedFloatType
5730-
"undefined"
57315736
"boolean"
57325737
"byte"
57335738
"octet"

0 commit comments

Comments
 (0)