OLD | NEW |
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 Loading... |
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 }; |
OLD | NEW |