OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } else { | 151 } else { |
152 if (lineCount === 1) | 152 if (lineCount === 1) |
153 endColumn = script.source.length + script.column_offset; | 153 endColumn = script.source.length + script.column_offset; |
154 else | 154 else |
155 endColumn = script.source.length - (lineEnds[lineCount - 2] + 1); | 155 endColumn = script.source.length - (lineEnds[lineCount - 2] + 1); |
156 } | 156 } |
157 | 157 |
158 return { | 158 return { |
159 id: script.id, | 159 id: script.id, |
160 name: script.nameOrSourceURL(), | 160 name: script.nameOrSourceURL(), |
| 161 sourceURL: script.source_url, |
| 162 sourceMappingURL: script.source_mapping_url, |
161 source: script.source, | 163 source: script.source, |
162 startLine: script.line_offset, | 164 startLine: script.line_offset, |
163 startColumn: script.column_offset, | 165 startColumn: script.column_offset, |
164 endLine: endLine, | 166 endLine: endLine, |
165 endColumn: endColumn, | 167 endColumn: endColumn, |
166 isContentScript: !!script.context_data && script.context_data.indexOf("i
njected") == 0 | 168 isContentScript: !!script.context_data && script.context_data.indexOf("i
njected") == 0 |
167 }; | 169 }; |
168 } | 170 } |
169 | 171 |
170 DebuggerScript.setBreakpoint = function(execState, info) | 172 DebuggerScript.setBreakpoint = function(execState, info) |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 break; | 506 break; |
505 } | 507 } |
506 return result; | 508 return result; |
507 } | 509 } |
508 | 510 |
509 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr
ors in the cache we disable it. | 511 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr
ors in the cache we disable it. |
510 ToggleMirrorCache(false); | 512 ToggleMirrorCache(false); |
511 | 513 |
512 return DebuggerScript; | 514 return DebuggerScript; |
513 })(); | 515 })(); |
OLD | NEW |