Преглед изворни кода

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

auz34 пре 11 година
родитељ
комит
96144e1d45

+ 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
                 }
             }