| Index: src/debug-debugger.js
|
| diff --git a/src/debug-debugger.js b/src/debug-debugger.js
|
| index cf949fc59a7f30193153ce75b852bd59932848d7..d9e0ecdd56b59f6d3a84057c84e64b8ad2bbe13d 100644
|
| --- a/src/debug-debugger.js
|
| +++ b/src/debug-debugger.js
|
| @@ -474,6 +474,11 @@ Debug.disassembleConstructor = function(f) {
|
| return %DebugDisassembleConstructor(f);
|
| };
|
|
|
| +Debug.ExecuteInDebugContext = function(f, without_debugger) {
|
| + if (!IS_FUNCTION(f)) throw new Error('Parameters have wrong types.');
|
| + return %ExecuteInDebugContext(f, !!without_debugger);
|
| +};
|
| +
|
| Debug.sourcePosition = function(f) {
|
| if (!IS_FUNCTION(f)) throw new Error('Parameters have wrong types.');
|
| return %FunctionGetScriptSourcePosition(f);
|
| @@ -2010,7 +2015,7 @@ DebugCommandProcessor.prototype.changeLiveRequest_ = function(request, response)
|
| if (e instanceof Debug.LiveEditChangeScript.Failure) {
|
| // Let's treat it as a "success" so that body with change_log will be
|
| // sent back. "change_log" will have "failure" field set.
|
| - change_log.push( { failure: true } );
|
| + change_log.push( { failure: true, message: e.toString() } );
|
| } else {
|
| throw e;
|
| }
|
|
|