DatePrototype.cs 708 B

12345678910111213141516171819202122232425262728
  1. namespace Jint.Native.Date
  2. {
  3. /// <summary>
  4. /// http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.5
  5. /// </summary>
  6. public sealed class DatePrototype : DateInstance
  7. {
  8. private DatePrototype(Engine engine)
  9. : base(engine)
  10. {
  11. }
  12. public static DatePrototype CreatePrototypeObject(Engine engine, DateConstructor dateConstructor)
  13. {
  14. var obj = new DatePrototype(engine);
  15. obj.Prototype = engine.Object.PrototypeObject;
  16. obj.FastAddProperty("constructor", dateConstructor, false, false, false);
  17. return obj;
  18. }
  19. public void Configure()
  20. {
  21. }
  22. }
  23. }