How can we improve the Microsoft Edge developer experience?

"object not iterable" error message for spread operators

Currently attempting "for <var> of" on a object without an iterator would yield a "Object doesn't support property or method 'Symbol.iterator'" error message, while using the spread operator on the same object would only generate a "Function expected" message, giving developers a hard time figuring out what's going on. Edge should improve on this error reporting.

4 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Mingye Wang (Arthur2e5) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base