RecursionDepthOverflowException.cs 506 B

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