« Bugzilla Issues Index
#570 — 15.9.5.44: "the this value"
- bug_id:
570
- creation_ts:
2012-07-15 22:25:00 -0700
- short_desc:
15.9.5.44: "the this value"
- delta_ts:
2012-10-26 15:34:25 -0700
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 9: July 8, 2012 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Michael Dyck
- assigned_to:
Allen Wirfs-Brock
- commentid:
1357
- comment_count:
0
- who:
Michael Dyck
- bug_when:
2012-07-15 22:25:07 -0700
In 15.9.5.44 "Date.prototype.toJSON ( key )",
step 1 says:
"Let O be the result of calling ToObject,
giving it the this value as its argument."
But for functions in 15.9.5.*, the phrase "this Date object" is normally used instead of "the this value".
- commentid:
1360
- comment_count:
1
- who:
Michael Dyck
- bug_when:
2012-07-15 23:55:41 -0700
Similarly, in B.2.3.2 "Date.prototype.setYear (year)",
steps 3, 7, and 8 refer to "the this value",
but would more normally refer to "this Date object".
- commentid:
1460
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2012-08-13 16:55:10 -0700
but toJSON is explicitly defined to be generic, so the this value need not be a Date object or even an object.
- commentid:
1854
- comment_count:
3
- who:
Michael Dyck
- bug_when:
2012-10-05 13:22:37 -0700
Okay, that makes sense for toJSON(), but setYear() doesn't appear to be generic.
Moreover, the algorithm for setYear refers to "this time value", which is defined in terms of "this Date object".
So I'm thinking that comment #1 is still valid.
- commentid:
2066
- comment_count:
4
- who:
Allen Wirfs-Brock
- bug_when:
2012-10-25 16:29:54 -0700
fixed in setYear for rev 11 editor's draft
- commentid:
2162
- comment_count:
5
- who:
Allen Wirfs-Brock
- bug_when:
2012-10-26 15:34:25 -0700
in October 26, 2012 release draft