Remove the exception filter that is problematic for wasm AOT

\n\nCommit migrated from b3cdc7bd5d
This commit is contained in:
Larry Ewing 2019-05-06 17:38:50 -05:00 committed by Ryan Nowak
parent 1a17bd995a
commit 10e316f541
1 changed files with 8 additions and 3 deletions

View File

@ -171,10 +171,15 @@ namespace Microsoft.JSInterop
{ {
return methodInfo.Invoke(targetInstance, suppliedArgs); return methodInfo.Invoke(targetInstance, suppliedArgs);
} }
catch (TargetInvocationException tie) when (tie.InnerException != null) catch (TargetInvocationException tie)
{ {
ExceptionDispatchInfo.Capture(tie.InnerException).Throw(); if (tie.InnerException != null)
throw null; // unreachable {
ExceptionDispatchInfo.Capture(tie.InnerException).Throw();
throw null; // unreached
}
throw;
} }
} }