Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterator for...of #314

Open
CAVAh opened this issue Nov 22, 2018 · 1 comment
Open

Iterator for...of #314

CAVAh opened this issue Nov 22, 2018 · 1 comment

Comments

@CAVAh
Copy link

CAVAh commented Nov 22, 2018

// Create a test FormData object
var formData = new FormData();
formData.append('key1', 'value1');
formData.append('key2', 'value2');

// Display the key/value pairs
var entries = formData.entries();

for(var pair of entries) { // line 1222
   console.log(pair[0]+ ', '+ pair[1]); // line 1223
} // line 1224

[ERROR] in script.js
1222:16:missing ; after for-loop initializer
[ERROR] in script.js
1223:10:syntax error
[ERROR] in script.js
1224:1:syntax error

If I change "for..of" to "for...in" works, but I need to be "for...of".

@sunch1ld
Copy link

Me too not working also with .NET Version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants