| OLD | NEW |
| 1 // Copyright 2006-2012 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2012 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 (function(global, utils) { | 5 (function(global, utils) { |
| 6 "use strict"; | 6 "use strict"; |
| 7 | 7 |
| 8 // ---------------------------------------------------------------------------- | 8 // ---------------------------------------------------------------------------- |
| 9 // Imports | 9 // Imports |
| 10 | 10 |
| (...skipping 2324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2335 return this.script_.id; | 2335 return this.script_.id; |
| 2336 }; | 2336 }; |
| 2337 | 2337 |
| 2338 | 2338 |
| 2339 ScriptMirror.prototype.source = function() { | 2339 ScriptMirror.prototype.source = function() { |
| 2340 return this.script_.source; | 2340 return this.script_.source; |
| 2341 }; | 2341 }; |
| 2342 | 2342 |
| 2343 | 2343 |
| 2344 ScriptMirror.prototype.setSource = function(source) { | 2344 ScriptMirror.prototype.setSource = function(source) { |
| 2345 if (!IS_STRING(source)) throw MakeError(kDebugger, "Source is not a string"); |
| 2345 %DebugSetScriptSource(this.script_, source); | 2346 %DebugSetScriptSource(this.script_, source); |
| 2346 }; | 2347 }; |
| 2347 | 2348 |
| 2348 | 2349 |
| 2349 ScriptMirror.prototype.lineOffset = function() { | 2350 ScriptMirror.prototype.lineOffset = function() { |
| 2350 return this.script_.line_offset; | 2351 return this.script_.line_offset; |
| 2351 }; | 2352 }; |
| 2352 | 2353 |
| 2353 | 2354 |
| 2354 ScriptMirror.prototype.columnOffset = function() { | 2355 ScriptMirror.prototype.columnOffset = function() { |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3051 // Functions needed by the debugger runtime. | 3052 // Functions needed by the debugger runtime. |
| 3052 utils.InstallFunctions(utils, DONT_ENUM, [ | 3053 utils.InstallFunctions(utils, DONT_ENUM, [ |
| 3053 "ClearMirrorCache", ClearMirrorCache | 3054 "ClearMirrorCache", ClearMirrorCache |
| 3054 ]); | 3055 ]); |
| 3055 | 3056 |
| 3056 // Export to debug.js | 3057 // Export to debug.js |
| 3057 utils.Export(function(to) { | 3058 utils.Export(function(to) { |
| 3058 to.MirrorType = MirrorType; | 3059 to.MirrorType = MirrorType; |
| 3059 }); | 3060 }); |
| 3060 }) | 3061 }) |
| OLD | NEW |