Browse Source

Test fix - exception throwing order changed in last commit

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2825 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 19 years ago
parent
commit
44688f0088
  1. 2
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/StackFrame.cs

2
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Threads/StackFrame.cs

@ -351,8 +351,8 @@ namespace Debugger
ICorDebugValue ThisCorValue { ICorDebugValue ThisCorValue {
get { get {
if (this.HasExpired) throw new GetValueException("StackFrame has expired");
if (this.MethodInfo.IsStatic) throw new GetValueException("Static method does not have 'this'."); if (this.MethodInfo.IsStatic) throw new GetValueException("Static method does not have 'this'.");
if (this.HasExpired) throw new GetValueException("StackFrame has expired");
try { try {
return CorILFrame.GetArgument(0); return CorILFrame.GetArgument(0);
} catch (COMException e) { } catch (COMException e) {

Loading…
Cancel
Save