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

Side by Side Diff: autotest/abprewrite_source.js

Issue 10000013: Update to current version of the SpiderMonkey shell, adjust for thedifferent handling of for loops… (Closed)
Patch Set: Created April 3, 2013, 11:24 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « autotest.py ('k') | scripts/abprewrite.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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");
(...skipping 29 matching lines...) Expand all
40 }; 40 };
41 41
42 if (a == b) 42 if (a == b)
43 foo(); 43 foo();
44 else if (a == c) 44 else if (a == c)
45 bar(); 45 bar();
46 else 46 else
47 bas(); 47 bas();
48 if (a == b); 48 if (a == b);
49 49
50 for (var a = 0; a < b.length; a++) 50 for (let a = 0; a < b.length; a++)
51 foo(); 51 foo();
52 for (var a = 0; a < b.length; a++); 52 for (var a = 0; a < b.length; a++);
53 53
54 for (var a in b) 54 for (let a in b)
55 foo(); 55 foo();
56 for (var a in b); 56 for (var a in b);
57 57
58 while (a==b) 58 while (a==b)
59 foo(); 59 foo();
60 while (a==b); 60 while (a==b);
61 61
62 function genFunc() 62 function genFunc()
63 { 63 {
64 for (var i = 0; i < 10; i++) 64 for (var i = 0; i < 10; i++)
65 { 65 {
66 yield i; 66 yield i;
67 } 67 }
68 } 68 }
69 var a = function() 69 var a = function()
70 { 70 {
71 for (var i = 0; i < 10; i++) 71 for (var i = 0; i < 10; i++)
72 { 72 {
73 yield i; 73 yield i;
74 } 74 }
75 }; 75 };
OLDNEW
« no previous file with comments | « autotest.py ('k') | scripts/abprewrite.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld