Completion.cs 750 B

123456789101112131415161718192021222324252627
  1. namespace Jint.Runtime
  2. {
  3. /// <summary>
  4. /// http://www.ecma-international.org/ecma-262/5.1/#sec-8.9
  5. /// </summary>
  6. public class Completion
  7. {
  8. public static string Normal = "normal";
  9. public static string Break = "break";
  10. public static string Continue = "continue";
  11. public static string Return = "return";
  12. public static string Throw = "throw";
  13. public Completion(string type, object value, string identifier)
  14. {
  15. Type = type;
  16. Value = value;
  17. Identifier = identifier;
  18. }
  19. public string Type { get; private set; }
  20. public object Value { get; private set; }
  21. public string Identifier { get; private set; }
  22. }
  23. }