ErrorInstance.cs 501 B

1234567891011121314151617181920
  1. using Jint.Native.Object;
  2. using Jint.Runtime;
  3. namespace Jint.Native.Error
  4. {
  5. public class ErrorInstance : ObjectInstance
  6. {
  7. internal ErrorInstance(
  8. Engine engine,
  9. ObjectClass objectClass = ObjectClass.Error)
  10. : base(engine, objectClass)
  11. {
  12. }
  13. public override string ToString()
  14. {
  15. return Engine.Realm.Intrinsics.Error.PrototypeObject.ToString(this, Arguments.Empty).ToObject().ToString();
  16. }
  17. }
  18. }