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) |