archives

« Bugzilla Issues Index

#4326 — Rename GetIterator's |obj| argument to |val|


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|.