浏览代码

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