Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: autotest/abprewrite_source.js

Issue 6256752412590080: Issue 301 - jshydra: Handle for .. of .. (Closed)
Patch Set: autotest now passes for me Created April 11, 2014, 10:51 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | jshydra.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autotest/abprewrite_source.js
===================================================================
--- a/autotest/abprewrite_source.js
+++ b/autotest/abprewrite_source.js
@@ -15,30 +15,32 @@ let bar = 2;
var bas;
let [a, b] = foo();
[a, b] = [1, 2];
let {x: y} = foo();
let {k1: v1, k2: v2} = foo();
-for each (let v in fooList)
+
+for (let v of fooList)
alert(v);
-for each (let [a, b] in fooList)
+for (let [a, b] of fooList)
{
a += b;
b -= a;
}
-for each (let [a, b] in fooList);
+for (let [a, b] of fooList);
-for each (k in fooList)
+for (k of fooList)
alert(k);
+
let a = function() 1;
let b = {
get foo() 1
};
if (a == b)
foo();
else if (a == c)
« no previous file with comments | « no previous file | jshydra.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld