ericmckean / traceur-compiler

Automatically exported from code.google.com/p/traceur-compiler
Apache License 2.0
0 stars 0 forks source link

for ... of doesn't work on strings (they're not iterable) #217

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Expected

    for (let c of "foo") {
      console.log(c);
    }

to work, but it gave

    TypeError: getProperty(...) is undefined

Original issue reported on code.google.com by dome...@domenicdenicola.com on 4 Mar 2013 at 6:28

GoogleCodeExporter commented 9 years ago
For the record

Strings are supposed to iterate over code points, not the UTF-16 elements.

Original comment by arv@google.com on 5 Mar 2013 at 5:04