| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 "use strict"; | 5 "use strict"; |
| 6 | 6 |
| 7 String.prototype.startsWith = function (str) { | 7 String.prototype.startsWith = function (str) { |
| 8 if (str.length > this.length) { | 8 if (str.length > this.length) { |
| 9 return false; | 9 return false; |
| 10 } | 10 } |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 var source = body.script.source; | 201 var source = body.script.source; |
| 202 if (!(source[source.length - 1] == '\n')) { | 202 if (!(source[source.length - 1] == '\n')) { |
| 203 result += source; | 203 result += source; |
| 204 } else { | 204 } else { |
| 205 result += source.substring(0, source.length - 1); | 205 result += source.substring(0, source.length - 1); |
| 206 } | 206 } |
| 207 } | 207 } |
| 208 details.text = result; | 208 details.text = result; |
| 209 break; | 209 break; |
| 210 | 210 |
| 211 case 'scriptCollected': | |
| 212 details.text = result; | |
| 213 break; | |
| 214 | |
| 215 default: | 211 default: |
| 216 details.text = 'Unknown debug event ' + response.event(); | 212 details.text = 'Unknown debug event ' + response.event(); |
| 217 } | 213 } |
| 218 | 214 |
| 219 return details; | 215 return details; |
| 220 } | 216 } |
| 221 | 217 |
| 222 | 218 |
| 223 function SourceInfo(body) { | 219 function SourceInfo(body) { |
| 224 var result = ''; | 220 var result = ''; |
| (...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2013 if ("set" in desc) { | 2009 if ("set" in desc) { |
| 2014 var setter = desc.set.toString(); | 2010 var setter = desc.set.toString(); |
| 2015 props.push("set " + name + setter.slice(setter.indexOf('('))); | 2011 props.push("set " + name + setter.slice(setter.indexOf('('))); |
| 2016 } | 2012 } |
| 2017 } | 2013 } |
| 2018 return "{" + props.join(", ") + "}"; | 2014 return "{" + props.join(", ") + "}"; |
| 2019 default: | 2015 default: |
| 2020 return "[crazy non-standard shit]"; | 2016 return "[crazy non-standard shit]"; |
| 2021 } | 2017 } |
| 2022 } | 2018 } |
| OLD | NEW |