| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 = function(params) { | 118 Runtime.prototype.getProperties = function(params) { |
| 119 // FIXME: Unclear what this is for. | 119 var properties = injectedScript.getProperties(params.objectId, !!params.ownPro
perties, !!params.accessorPropertiesOnly); |
| 120 return []; | 120 var result = { |
| 121 result: properties |
| 122 }; |
| 123 if (!params.accessorPropertiesOnly) { |
| 124 result.internalProperties = injectedScript.getInternalProperties(params.obje
ctId); |
| 125 } |
| 126 return result; |
| 121 } | 127 } |
| 122 | 128 |
| 123 module.exports = Runtime; | 129 module.exports = Runtime; |
| 124 </script> | 130 </script> |
| OLD | NEW |