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

Delta Between Two Patch Sets: autotest/abprewrite_source.js

Issue 6256752412590080: Issue 301 - jshydra: Handle for .. of .. (Closed)
Left Patch Set: Created April 10, 2014, 5:05 p.m.
Right Patch Set: autotest now passes for me Created April 11, 2014, 10:51 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | jshydra.js » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 const Cc = Components.classes 1 const Cc = Components.classes
2 const Ci = Components.interfaces; 2 const Ci = Components.interfaces;
3 const Cu = Components.utils; 3 const Cu = Components.utils;
4 const Cr = Components.results; 4 const Cr = Components.results;
5 const Cl = Components.unknown; 5 const Cl = Components.unknown;
6 6
7 Cu.import("foo/bar.jsm"); 7 Cu.import("foo/bar.jsm");
8 8
9 let {Timeline} = require("timeline"); 9 let {Timeline} = require("timeline");
10 let {Utils} = require("utils"); 10 let {Utils} = require("utils");
11 let {Filter, BlockingFilter} = require("filterClasses"); 11 let {Filter, BlockingFilter} = require("filterClasses");
12 12
13 let foo; 13 let foo;
14 let bar = 2; 14 let bar = 2;
15 var bas; 15 var bas;
16 16
17 let [a, b] = foo(); 17 let [a, b] = foo();
18 [a, b] = [1, 2]; 18 [a, b] = [1, 2];
19 19
20 let {x: y} = foo(); 20 let {x: y} = foo();
21 let {k1: v1, k2: v2} = foo(); 21 let {k1: v1, k2: v2} = foo();
22 22
23 for each (let v in fooList) 23
24 for (let v of fooList)
24 alert(v); 25 alert(v);
25 26
26 for each (let [a, b] in fooList) 27 for (let [a, b] of fooList)
27 { 28 {
28 a += b; 29 a += b;
29 b -= a; 30 b -= a;
30 } 31 }
31 32
32 for each (let [a, b] in fooList); 33 for (let [a, b] of fooList);
33 34
34 for each (k in fooList) 35 for (k of fooList)
35 alert(k); 36 alert(k);
37
36 38
37 let a = function() 1; 39 let a = function() 1;
38 let b = { 40 let b = {
39 get foo() 1 41 get foo() 1
40 }; 42 };
41 43
42 if (a == b) 44 if (a == b)
43 foo(); 45 foo();
44 else if (a == c) 46 else if (a == c)
45 bar(); 47 bar();
(...skipping 20 matching lines...) Expand all
66 yield i; 68 yield i;
67 } 69 }
68 } 70 }
69 var a = function() 71 var a = function()
70 { 72 {
71 for (var i = 0; i < 10; i++) 73 for (var i = 0; i < 10; i++)
72 { 74 {
73 yield i; 75 yield i;
74 } 76 }
75 }; 77 };
LEFTRIGHT
« no previous file | jshydra.js » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld