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