archives

« Bugzilla Issues Index

#1902 — 21.1.3.3 String.prototype.codePointAt: returns `NaN` or `undefined`?


In section 21.1.3.3, the introductory note says:

> If there is no element at that position, the result is `NaN`.

However, the algorithm that is then described never returns `NaN`. Either the algorithm or the note is incorrect. (I’m guessing the note is outdated.)


see bug 1153




*** This bug has been marked as a duplicate of bug 1153 ***