| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2108 | 2108 |
| 2109 if (!IS_STRING(request.arguments.new_source)) { | 2109 if (!IS_STRING(request.arguments.new_source)) { |
| 2110 throw "new_source argument expected"; | 2110 throw "new_source argument expected"; |
| 2111 } | 2111 } |
| 2112 | 2112 |
| 2113 var new_source = request.arguments.new_source; | 2113 var new_source = request.arguments.new_source; |
| 2114 | 2114 |
| 2115 var result_description = Debug.LiveEdit.SetScriptSource(the_script, | 2115 var result_description = Debug.LiveEdit.SetScriptSource(the_script, |
| 2116 new_source, preview_only, change_log); | 2116 new_source, preview_only, change_log); |
| 2117 response.body = {change_log: change_log, result: result_description}; | 2117 response.body = {change_log: change_log, result: result_description}; |
| 2118 | |
| 2119 if (!preview_only && !this.running_ && result_description.stack_modified) { | |
| 2120 response.body.stepin_recommended = true; | |
| 2121 } | |
| 2122 }; | 2118 }; |
| 2123 | 2119 |
| 2124 | 2120 |
| 2125 DebugCommandProcessor.prototype.debuggerFlagsRequest_ = function(request, | 2121 DebugCommandProcessor.prototype.debuggerFlagsRequest_ = function(request, |
| 2126 response) { | 2122 response) { |
| 2127 // Check for legal request. | 2123 // Check for legal request. |
| 2128 if (!request.arguments) { | 2124 if (!request.arguments) { |
| 2129 response.failed('Missing arguments'); | 2125 response.failed('Missing arguments'); |
| 2130 return; | 2126 return; |
| 2131 } | 2127 } |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2274 case 'string': | 2270 case 'string': |
| 2275 case 'number': | 2271 case 'number': |
| 2276 json = value; | 2272 json = value; |
| 2277 break | 2273 break |
| 2278 | 2274 |
| 2279 default: | 2275 default: |
| 2280 json = null; | 2276 json = null; |
| 2281 } | 2277 } |
| 2282 return json; | 2278 return json; |
| 2283 } | 2279 } |
| OLD | NEW |