« Bugzilla Issues Index
#4326 — Rename GetIterator's |obj| argument to |val|
- bug_id:
4326
- creation_ts:
2015-04-18 16:02:00 -0700
- short_desc:
Rename GetIterator's |obj| argument to |val|
- delta_ts:
2015-04-18 16:02:58 -0700
- product:
ECMA-262, Editions 5 and 5.1
- component:
editorial issues
- version:
other
- rep_platform:
All
- op_sys:
All
- bug_status:
CONFIRMED
- priority:
Normal
- bug_severity:
minor
- everconfirmed:
true
- reporter:
Jeff Walden (remove +beo to mail)
- assigned_to:
Allen Wirfs-Brock
- commentid:
14298
- comment_count:
0
- who:
Jeff Walden (remove +beo to mail)
- bug_when:
2015-04-18 16:02:58 -0700
The spec names the argument to GetIterator as |obj|, but it's not necessarily an object. And the cases where it's not don't necessarily result in exceptions being thrown.
Renaming it to |val| or something would make clearer that GetMethod's internal ToObject call could have meaningful effect and that the iterator method isn't necessarily always called with an object |this|.