| OLD | NEW |
| 1 <import src="debug.sky" as="debug" /> | 1 <import src="debug.sky" as="debug" /> |
| 2 <script> | 2 <script> |
| 3 function Runtime(delegate) { | 3 function Runtime(delegate) { |
| 4 this.delegate_ = delegate; | 4 this.delegate_ = delegate; |
| 5 } | 5 } |
| 6 | 6 |
| 7 Runtime.prototype.enable = function() { | 7 Runtime.prototype.enable = function() { |
| 8 this.delegate_.sendMessage("Runtime.executionContextCreated", { | 8 this.delegate_.sendMessage("Runtime.executionContextCreated", { |
| 9 "context": { | 9 "context": { |
| 10 "frameId": 1, | 10 "frameId": 1, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 try { | 108 try { |
| 109 value = eval(params.expression); | 109 value = eval(params.expression); |
| 110 } catch (e) { | 110 } catch (e) { |
| 111 value = e; | 111 value = e; |
| 112 wasThrown = true; | 112 wasThrown = true; |
| 113 } | 113 } |
| 114 | 114 |
| 115 return makeResult(params, value, wasThrown); | 115 return makeResult(params, value, wasThrown); |
| 116 } | 116 } |
| 117 | 117 |
| 118 Runtime.prototype.getProperties = debug.loggingStub("getProperties"); | 118 Runtime.prototype.getProperties = function(params) { |
| 119 // FIXME: Unclear what this is for. |
| 120 return []; |
| 121 } |
| 119 | 122 |
| 120 module.exports = Runtime; | 123 module.exports = Runtime; |
| 121 </script> | 124 </script> |
| OLD | NEW |