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 18 matching lines...) Expand all Loading... |
29 a += b; | 29 a += b; |
30 b -= a; | 30 b -= a; |
31 } | 31 } |
32 | 32 |
33 for (let [a, b] of fooList); | 33 for (let [a, b] of fooList); |
34 | 34 |
35 for (k of fooList) | 35 for (k of fooList) |
36 alert(k); | 36 alert(k); |
37 | 37 |
38 | 38 |
39 let a = function() 1; | 39 let a = function() { return 1 }; |
40 let b = { | 40 let b = { |
41 get foo() 1 | 41 get foo() { return 1; } |
42 }; | 42 }; |
43 | 43 |
44 if (a == b) | 44 if (a == b) |
45 foo(); | 45 foo(); |
46 else if (a == c) | 46 else if (a == c) |
47 bar(); | 47 bar(); |
48 else | 48 else |
49 bas(); | 49 bas(); |
50 if (a == b); | 50 if (a == b); |
51 | 51 |
(...skipping 16 matching lines...) Expand all Loading... |
68 yield i; | 68 yield i; |
69 } | 69 } |
70 } | 70 } |
71 var a = function() | 71 var a = function() |
72 { | 72 { |
73 for (var i = 0; i < 10; i++) | 73 for (var i = 0; i < 10; i++) |
74 { | 74 { |
75 yield i; | 75 yield i; |
76 } | 76 } |
77 }; | 77 }; |
| 78 |
| 79 let x = (y) => y + 1; |
| 80 x = y => y + 1; |
| 81 x = (a, b) => this[a] + b; |
| 82 x = (a, b) => { return () => 1; } |
OLD | NEW |