« Bugzilla Issues Index
#1902 — 21.1.3.3 String.prototype.codePointAt: returns `NaN` or `undefined`?
- bug_id:
1902
- creation_ts:
2013-09-20 00:14:00 -0700
- short_desc:
21.1.3.3 String.prototype.codePointAt: returns `NaN` or `undefined`?
- delta_ts:
2013-09-20 12:59:58 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 16: July 15, 2013 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
DUPLICATE
- dup_id:
1153
- bug_file_loc:
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-21.1.3.3
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Mathias Bynens
- assigned_to:
Allen Wirfs-Brock
- cc:
["andrebargull", "ecmascriptbugs", "mathias"]
- commentid:
5409
- comment_count:
0
- who:
Mathias Bynens
- bug_when:
2013-09-20 00:14:07 -0700
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.)
- commentid:
5410
- comment_count:
1
- who:
André Bargull
- bug_when:
2013-09-20 07:31:03 -0700
see bug 1153
- commentid:
5411
- comment_count:
2
- who:
Mathias Bynens
- bug_when:
2013-09-20 12:59:58 -0700
*** This bug has been marked as a duplicate of bug 1153 ***