archives

« Bugzilla Issues Index

#529 — 9.2.3 + 11.9.1: clarify logic


In 9.2.3 "The SameValue Algorithm",
step 7 could be mis-parsed as:

If Type(x) is String, then
return true if x and y are exactly the same sequence of characters
(same length and same characters in corresponding positions);
otherwise,
return false.

Instead, I suggest:

If Type(x) is String, then
a. If x and y are exactly the same sequence of characters
(same length and same characters in corresponding positions),
return true.
b. Else, return false.

or, closer to the original:

If Type(x) is String, then
a. Return true if x and y are exactly the same sequence of characters
(same length and same characters in corresponding positions);
otherwise, return false.

And then similarly with step 8.

And then all that again in 11.9.1:
"The Abstract Equality Comparison Algorithm" and
"The Strict Equality Comparison Algorithm".


corrected in editor's draft


fixed in rev10, Sept. 27 2012 draft