|
@@ -6,6 +6,8 @@ using Jint.Native.Function;
|
|
|
|
|
|
namespace Jint.Runtime.Interop
|
|
|
{
|
|
|
+ using System;
|
|
|
+
|
|
|
public sealed class MethodInfoFunctionInstance : FunctionInstance
|
|
|
{
|
|
|
private readonly MethodInfo[] _methods;
|
|
@@ -54,9 +56,9 @@ namespace Jint.Runtime.Interop
|
|
|
|
|
|
return result;
|
|
|
}
|
|
|
- catch
|
|
|
+ catch (Exception ex)
|
|
|
{
|
|
|
- // ignore method
|
|
|
+ throw new JintInteropException(ex);
|
|
|
}
|
|
|
}
|
|
|
|