Ver código fonte

additional changes to previous commit

auz34 11 anos atrás
pai
commit
2230e250a1
2 arquivos alterados com 16 adições e 0 exclusões
  1. 1 0
      Jint/Jint.csproj
  2. 15 0
      Jint/Runtime/RecursionDiscardedException.cs

+ 1 - 0
Jint/Jint.csproj

@@ -186,6 +186,7 @@
     <Compile Include="Runtime\Interop\TypeReference.cs" />
     <Compile Include="Runtime\Interop\TypeReferencePrototype.cs" />
     <Compile Include="Runtime\JavaScriptException.cs" />
+    <Compile Include="Runtime\RecursionDiscardedException.cs" />
     <Compile Include="Runtime\References\Reference.cs" />
     <Compile Include="Runtime\StatementInterpreter.cs" />
     <Compile Include="Runtime\StatementsCountOverflowException.cs" />

+ 15 - 0
Jint/Runtime/RecursionDiscardedException.cs

@@ -0,0 +1,15 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Jint.Runtime
+{
+    public class RecursionDiscardedException : Exception 
+    {
+        public RecursionDiscardedException()
+            : base("The recursion is forbidden by script host.")
+        {
+        }
+    }
+}