mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-13 23:48:02 -05:00
Compile for-of using iteration instead of indexing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// test_output! ["🚀","","","","🍹","","","","a","b","c","£","","한","","","🎨","","",""]
|
||||
// // test_output! ["🚀","","","","🍹","","","","a","b","c","£","","한","","","🎨","","",""]
|
||||
// This is wrong. It should be: ["🚀","🍹","a","b","c","£","한","🎨"].
|
||||
// The reason is that for-of is currently approximated using indexing from 0 to .length. This is
|
||||
// expected to be fixed when iterators are added to the language.
|
||||
|
||||
Reference in New Issue
Block a user