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

Side by Side Diff: autotest/abprewrite_source.js

Issue 4935066966818816: Issue 1772 - [JSHydra] Convert const to var for Chrome (Closed)
Patch Set: Created Jan. 10, 2015, 12:03 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 | « no previous file | autotest/test_abprewrite.js.expected » ('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");
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 const FOO = "FOO";
16 17
17 let [a, b] = foo(); 18 let [a, b] = foo();
18 [a, b] = [1, 2]; 19 [a, b] = [1, 2];
19 20
20 let {x: y} = foo(); 21 let {x: y} = foo();
21 let {k1: v1, k2: v2} = foo(); 22 let {k1: v1, k2: v2} = foo();
22 23
23 24
24 for (let v of fooList) 25 for (let v of fooList)
25 alert(v); 26 alert(v);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 { 78 {
78 for (var i = 0; i < 10; i++) 79 for (var i = 0; i < 10; i++)
79 { 80 {
80 yield i; 81 yield i;
81 } 82 }
82 }; 83 };
83 84
84 let x = (y) => y + 1; 85 let x = (y) => y + 1;
85 x = y => y + 1; 86 x = y => y + 1;
86 x = (a, b) => this[a] + b; 87 x = (a, b) => this[a] + b;
87 x = (a, b) => { return () => 1; } 88 x = (a, b) => { return () => 1; }
OLDNEW
« no previous file with comments | « no previous file | autotest/test_abprewrite.js.expected » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld