CallStackElement.cs 572 B

123456789101112131415161718192021222324
  1. using Esprima;
  2. using Jint.Native.Function;
  3. namespace Jint.Runtime.CallStack
  4. {
  5. internal readonly struct CallStackElement
  6. {
  7. public CallStackElement(
  8. FunctionInstance function,
  9. Location? location)
  10. {
  11. Function = function;
  12. Location = location;
  13. }
  14. public readonly FunctionInstance Function;
  15. public readonly Location? Location;
  16. public override string ToString()
  17. {
  18. return TypeConverter.ToString(Function?.Get(CommonProperties.Name));
  19. }
  20. }
  21. }