Skip to content

Commit fad813a

Browse files
saschanazMs2ger
authored andcommitted
Allow "constructor" as an argument name (#786)
1 parent fa38f6c commit fad813a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,7 @@ underscore.
685685
"attribute"
686686
"callback"
687687
"const"
688+
"constructor"
688689
"deleter"
689690
"dictionary"
690691
"enum"
@@ -714,7 +715,7 @@ keyword token is used, then the [=identifier=] of the operation argument
714715
is simply that token.
715716

716717
The [=identifier=] of any of the abovementioned
717-
IDL constructs must not be "<code>constructor</code>",
718+
IDL constructs (except operation arguments) must not be "<code>constructor</code>",
718719
"<code>toString</code>",
719720
or begin with a <span class="char">U+005F LOW LINE ("_")</span> character. These
720721
are known as <dfn id="dfn-reserved-identifier" export>reserved identifiers</dfn>.

0 commit comments

Comments
 (0)