Closed Bug 1232929 Opened 10 years ago Closed 10 years ago

Arguments objects are not iterable

Categories

(Core :: JavaScript Engine, defect)

46 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1067049

People

(Reporter: ljharb, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7 Steps to reproduce: `(function () { for (let a of arguments) { console.log(a); } }(1,2,3))` Actual results: TypeError: arguments is not iterable Expected results: iterating arguments, which should have `Symbol.iterator` defined.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.