Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ILRuntime/Runtime/Intepreter/ILIntepreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4641,7 +4641,8 @@ public object Run(ILMethod method, object instance, object[] p)
case OpCodeEnum.Throw:
{
objRef = GetObjectAndResolveReference(esp - 1);
var ex = mStack[objRef->Value] as Exception;
var exObj = mStack[objRef->Value];
var ex = exObj as Exception ?? (exObj as ILTypeInstance)?.CLRInstance as Exception;
Free(objRef);
esp--;
throw ex;
Expand Down