2
0

RecursionDepthOverflowException.cs 553 B

12345678910111213141516171819
  1. using Jint.Runtime.CallStack;
  2. namespace Jint.Runtime
  3. {
  4. public sealed class RecursionDepthOverflowException : JintException
  5. {
  6. public string CallChain { get; }
  7. public string CallExpressionReference { get; }
  8. internal RecursionDepthOverflowException(JintCallStack currentStack, string currentExpressionReference)
  9. : base("The recursion is forbidden by script host.")
  10. {
  11. CallExpressionReference = currentExpressionReference;
  12. CallChain = currentStack.ToString();
  13. }
  14. }
  15. }