Skip to content

Commit b6bc081

Browse files
authored
Meta: export getter/setter/method/constructor steps
Also adds some notes explaining that you might want to use "this" and "the given value" when defining them.
1 parent c2b9c12 commit b6bc081

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

index.bs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,14 +1793,18 @@ If an attribute has no <emu-t>static</emu-t> keyword, then it declares a
17931793
it declares a [=static attribute=]. Note that in addition to being [=interface members=],
17941794
[=read only=] [=regular attributes=] can be [=namespace members=] as well.
17951795

1796-
The <dfn>getter steps</dfn> of an attribute |attr| should be introduced using text of the form “The
1796+
The <dfn export>getter steps</dfn> of an attribute |attr| should be introduced using text of the form “The
17971797
<code>|attr|</code> getter steps are:” followed by a list, or “The <code>|attr|</code> getter steps
17981798
are to” followed by an inline description.
17991799

1800-
The <dfn>setter steps</dfn> of an attribute |attr| should be introduced using text of the form “The
1800+
The <dfn export>setter steps</dfn> of an attribute |attr| should be introduced using text of the form “The
18011801
<code>|attr|</code> setter steps are:” followed by a list, or “The <code>|attr|</code> setter steps
18021802
are to” followed by an inline description.
18031803

1804+
Note: When defining [=getter steps=], you implicitly have access to [=this=].
1805+
When defining [=setter steps=], you implicitly have access to [=this=] and
1806+
[=the given value=].
1807+
18041808
The [=identifier=] of an
18051809
[=attribute=]
18061810
must not be the same as the identifier
@@ -2347,11 +2351,13 @@ The following extended attributes are applicable to operations:
23472351
[{{NewObject}}], and
23482352
[{{SecureContext}}].
23492353

2350-
The <dfn>method steps</dfn> of an operation |operation| should be introduced using text of the form
2354+
The <dfn export>method steps</dfn> of an operation |operation| should be introduced using text of the form
23512355
“The <code>|operation|(<var ignore>arg1</var>, <var ignore>arg2</var>, ...)</code> method
23522356
steps are:” followed by a list, or “The <code>|operation|(<var ignore>arg1</var>,
23532357
<var ignore>arg2</var>, ...)</code> method steps are to” followed by an inline description.
23542358

2359+
Note: When defining [=method steps=], you implicitly have access to [=this=].
2360+
23552361
<pre class="grammar" id="prod-DefaultValue">
23562362
DefaultValue :
23572363
ConstValue
@@ -2555,7 +2561,7 @@ Multiple [=constructor operations=] may appear on a given [=interface=].
25552561
For each [=constructor operation=] on the [=interface=], there will be a way to attempt to
25562562
construct an instance by passing the specified arguments.
25572563

2558-
The <dfn>constructor steps</dfn> of a [=constructor operation=] that is a member of an interface
2564+
The <dfn export>constructor steps</dfn> of a [=constructor operation=] that is a member of an interface
25592565
named |interface| should be introduced using text of the form “The
25602566
<code>new |interface|(<var ignore>arg1</var>, <var ignore>arg2</var>, ...)</code> constructor steps
25612567
are:” followed by a list, or “The

0 commit comments

Comments
 (0)