ErrorInstance.cs 485 B

12345678910111213141516171819202122
  1. using Jint.Native.Object;
  2. namespace Jint.Native.Error
  3. {
  4. public class ErrorInstance : ObjectInstance
  5. {
  6. public ErrorInstance(Engine engine, string name)
  7. : base(engine)
  8. {
  9. FastAddProperty("name", name, true, false, true);
  10. FastAddProperty("message", "", true, false, true);
  11. }
  12. public override string Class
  13. {
  14. get
  15. {
  16. return "Error";
  17. }
  18. }
  19. }
  20. }