Skip to content

Commit c43e235

Browse files
committed
Use IDL this for the synthetic forEach method.
1 parent a029460 commit c43e235

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.bs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11538,7 +11538,6 @@ then the [=function object=] is {{%ArrayProto_forEach%}}.
1153811538

1153911539
with the following prose definition:
1154011540

11541-
1. Let |O| be the <emu-val>this</emu-val> value.
1154211541
1. Let |pairs| be the list of [=value pairs to iterate over=].
1154311542
1. Let |i| be 0.
1154411543
1. While |i| is less than the length of |pairs|:
@@ -11547,8 +11546,7 @@ then the [=function object=] is {{%ArrayProto_forEach%}}.
1154711546
1. Let |value| be |pair|’s value.
1154811547
1. [=Invoke=] |callback| with |thisArg|
1154911548
(or <emu-val>undefined</emu-val>, if the argument was not supplied)
11550-
as the [=callback this value|callback this value=] and
11551-
|value|, |key| and |O| as its arguments.
11549+
as the [=callback this value=] and |value|, |key| and <b>this</b> as its arguments.
1155211550
1. Update |pairs| to the current list of [=value pairs to iterate over=].
1155311551
1. Set |i| to |i| + 1.
1155411552
</div>

0 commit comments

Comments
 (0)