فهرست منبع

Roll back interop exception improvement in order to make as separate pull request later

auz34 11 سال پیش
والد
کامیت
96144e1d45
3فایلهای تغییر یافته به همراه2 افزوده شده و 15 حذف شده
  1. 0 1
      Jint/Jint.csproj
  2. 0 12
      Jint/Runtime/Interop/JintInteropException.cs
  3. 2 2
      Jint/Runtime/Interop/MethodInfoFunctionInstance.cs

+ 0 - 1
Jint/Jint.csproj

@@ -176,7 +176,6 @@
     <Compile Include="Runtime\Environments\ObjectEnvironmentRecord.cs" />
     <Compile Include="Runtime\ExpressionIntepreter.cs" />
     <Compile Include="Runtime\Interop\DefaultTypeConverter.cs" />
-    <Compile Include="Runtime\Interop\JintInteropException.cs" />
     <Compile Include="Runtime\Interop\IObjectWrapper.cs" />
     <Compile Include="Runtime\Interop\IObjectConverter.cs" />
     <Compile Include="Runtime\Interop\ITypeConverter.cs" />

+ 0 - 12
Jint/Runtime/Interop/JintInteropException.cs

@@ -1,12 +0,0 @@
-using System;
-
-namespace Jint.Runtime.Interop
-{
-    public class JintInteropException: Exception
-    {
-        public JintInteropException(Exception innerException)
-            : base("", innerException)
-        {
-        }
-    }
-}

+ 2 - 2
Jint/Runtime/Interop/MethodInfoFunctionInstance.cs

@@ -61,9 +61,9 @@ namespace Jint.Runtime.Interop
 
                     return result;
                 }
-                catch (Exception ex)
+                catch 
                 {
-                    throw new JintInteropException(ex);
+                    // ignore method
                 }
             }