archives

« Bugzilla Issues Index

#934 — 15.5.4.25 codePointAt algorithm problem/typo on step 11


Step 11 says:
If second < 0xDC00 or first > 0xDFFF, then return first.

Shouldn't that be:
If second < 0xDC00 or second > 0xDFFF, then return first.

I.e. a bounds check on *second*.
N.b. (first > 0xDFFF) is always false, or the algorithm would have returned at step 9.


corrected in rev 12 editor's draft


corrected in rev 12, Nov. 22, 2012 draft