Skip to content

Commit

Permalink
return value directly instead of pulling it out of the record (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra authored Nov 6, 2024
1 parent fe2b39d commit 09331a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contributors: Jonas Haukenes, Daniel Minor
1. If _p_.[[Key]] is not ~empty~ and SameValue(_p_.[[Key]], _key_) is *true*, return _p_.[[Value]].
1. Let _p_ be the Record { [[Key]]: _key_, [[Value]]: _value_ }.
1. Append _p_ to _M_.[[MapData]].
1. Return _p_.[[Value]].
1. Return _value_.
</emu-alg>
</emu-clause>

Expand All @@ -45,7 +45,7 @@ contributors: Jonas Haukenes, Daniel Minor
1. Let _value_ be ? Call(_callbackfn_, _key_).
1. Let _p_ be the Record { [[Key]]: _key_, [[Value]]: _value_ }.
1. Append _p_ to _M_.[[MapData]].
1. Return _p_.[[Value]].
1. Return _value_.
</emu-alg>
</emu-clause>

Expand All @@ -60,7 +60,7 @@ contributors: Jonas Haukenes, Daniel Minor
1. If _p_.[[Key]] is not ~empty~ and SameValue(_p_.[[Key]], _key_) is *true*, return _p_.[[Value]].
1. Let _p_ be the Record { [[Key]]: _key_, [[Value]]: _value_ }.
1. Append _p_ to _M_.[[WeakMapData]].
1. Return _p_.[[Value]].
1. Return _value_.
</emu-alg>
</emu-clause>

Expand All @@ -77,7 +77,7 @@ contributors: Jonas Haukenes, Daniel Minor
1. Let _value_ be ? Call(_callbackfn_, _key_).
1. Let _p_ be the Record { [[Key]]: _key_, [[Value]]: _value_ }.
1. Append _p_ to _M_.[[MapData]].
1. Return _p_.[[Value]].
1. Return _value_.
</emu-alg>
</emu-clause>

0 comments on commit 09331a7

Please sign in to comment.