Skip to content

Commit

Permalink
Editorial: add prefix on ToPrimitive in Abstract Equality Comparison (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
h2oche authored and ljharb committed Apr 28, 2020
1 parent 0b988b7 commit bccffc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -5617,8 +5617,8 @@ <h1>Abstract Equality Comparison</h1>
1. If Type(_x_) is String and Type(_y_) is BigInt, return the result of the comparison _y_ == _x_.
1. If Type(_x_) is Boolean, return the result of the comparison ! ToNumber(_x_) == _y_.
1. If Type(_y_) is Boolean, return the result of the comparison _x_ == ! ToNumber(_y_).
1. If Type(_x_) is either String, Number, BigInt, or Symbol and Type(_y_) is Object, return the result of the comparison _x_ == ToPrimitive(_y_).
1. If Type(_x_) is Object and Type(_y_) is either String, Number, BigInt, or Symbol, return the result of the comparison ToPrimitive(_x_) == _y_.
1. If Type(_x_) is either String, Number, BigInt, or Symbol and Type(_y_) is Object, return the result of the comparison _x_ == ? ToPrimitive(_y_).
1. If Type(_x_) is Object and Type(_y_) is either String, Number, BigInt, or Symbol, return the result of the comparison ? ToPrimitive(_x_) == _y_.
1. If Type(_x_) is BigInt and Type(_y_) is Number, or if Type(_x_) is Number and Type(_y_) is BigInt, then
1. If _x_ or _y_ are any of *NaN*, *+&infin;*, or *-&infin;*, return *false*.
1. If the mathematical value of _x_ is equal to the mathematical value of _y_, return *true*; otherwise return *false*.
Expand Down

0 comments on commit bccffc5

Please sign in to comment.