(1) First line: "fromCharCode" -> "fromCodeCode"
(2) Step 1: "codeUnits" -> "codePoints"
(3) Step 2: "codeUnits" -> "codePoints"
(4) Step 5a: "codePoint" -> "codePoints"
(5) Step 5c: There should be a step here to filter out NaN and throw a RangeError exception for it. ToInteger would convert it to 0, which is just calling for trouble.
(6) Step 5d calls a function SaveValue, which doesn't appear to be defined anywhere.
(7) Step 5f: "elements" -> "code units"
(8) Step 5f: A reference to the algorithm in clause 6 seems appropriate.
*** Bug 565 has been marked as a duplicate of this bug. ***
corrected in editor's draft
(In reply to comment #0)
> (5) Step 5c: There should be a step here to filter out NaN and throw a
> RangeError exception for it. ToInteger would convert it to 0, which is just
> calling for trouble.
>
> (6) Step 5d calls a function SaveValue, which doesn't appear to be defined
> anywhere.
The SameValue comparision in step 5d will reject NaNs.
fixed in rev10, Sept. 27 2012 draft
Verified in rev 26 draft.