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 23 matching lines...) Expand all Loading... |
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() 1; |
40 let b = { | 40 let b = { |
41 get foo() 1 | 41 get foo() 1 |
42 }; | 42 }; |
43 | 43 |
| 44 function foo() |
| 45 { |
| 46 return {foo: 1, bar: 2}; |
| 47 } |
| 48 |
44 if (a == b) | 49 if (a == b) |
45 foo(); | 50 foo(); |
46 else if (a == c) | 51 else if (a == c) |
47 bar(); | 52 bar(); |
48 else | 53 else |
49 bas(); | 54 bas(); |
50 if (a == b); | 55 if (a == b); |
51 | 56 |
52 for (let a = 0; a < b.length; a++) | 57 for (let a = 0; a < b.length; a++) |
53 foo(); | 58 foo(); |
(...skipping 14 matching lines...) Expand all Loading... |
68 yield i; | 73 yield i; |
69 } | 74 } |
70 } | 75 } |
71 var a = function() | 76 var a = function() |
72 { | 77 { |
73 for (var i = 0; i < 10; i++) | 78 for (var i = 0; i < 10; i++) |
74 { | 79 { |
75 yield i; | 80 yield i; |
76 } | 81 } |
77 }; | 82 }; |
OLD | NEW |