OLD | NEW |
1 <script> | 1 <script> |
2 | 2 |
3 function Runtime(delegate) { | 3 function Runtime(delegate) { |
4 this.delegate_ = delegate; | 4 this.delegate_ = delegate; |
5 } | 5 } |
6 | 6 |
7 // FIXME: Move these to their own 'debug' module. | 7 // FIXME: Move these to their own 'debug' module. |
8 function logParams(name, params) { | 8 function logParams(name, params) { |
9 console.log(name + "(" + JSON.stringify(params, null, " ") + ")") | 9 console.log(name + "(" + JSON.stringify(params, null, " ") + ")") |
10 } | 10 } |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } catch (e) { | 123 } catch (e) { |
124 value = e; | 124 value = e; |
125 wasThrown = true; | 125 wasThrown = true; |
126 } | 126 } |
127 | 127 |
128 return makeResult(params, value, wasThrown); | 128 return makeResult(params, value, wasThrown); |
129 } | 129 } |
130 | 130 |
131 Runtime.prototype.getProperties = debug("getProperties"); | 131 Runtime.prototype.getProperties = debug("getProperties"); |
132 | 132 |
133 this.exports = Runtime; | 133 module.exports = Runtime; |
134 </script> | 134 </script> |
OLD | NEW |