« Bugzilla Issues Index
#3289 — 19.2.3.2 Function.prototype.bind: NaN and 0 which is the larger one?
- bug_id:
3289
- creation_ts:
2014-10-17 20:56:00 -0700
- short_desc:
19.2.3.2 Function.prototype.bind: NaN and 0 which is the larger one?
- delta_ts:
2014-12-07 14:35:05 -0800
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 28: October 14, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- bug_file_loc:
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-function.prototype.bind
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
ziyunfei
- assigned_to:
Allen Wirfs-Brock
- cc:
andrebargull
- commentid:
10519
- comment_count:
0
- who:
ziyunfei
- bug_when:
2014-10-17 20:56:02 -0700
> 5. Let targetHasLength be HasOwnProperty(Target, "length").
> 6. ReturnIfAbrupt(targetHasLength).
> 7. If targetHasLength is true, then
> a. Let targetLen be Get(Target, "length").
> b. ReturnIfAbrupt(targetLen).
> c. If Type(targetLen) is not Number, then let L be 0.
> d. Else,
> i. Let L be the larger of 0 and the result of targetLen minus
> the number of elements of A.
> 8. Else let L be 0.
js> function f(){}
js> delete f.length
js> delete Function.prototype.length
js> f.length = NaN
js> f.bind().length // NaN or 0?
- commentid:
10799
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-12-05 13:03:53 -0800
fixed in rev29 editor's draft
- commentid:
10895
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-12-07 14:35:05 -0800
fixed in rev29