t0.js 783 B

12345678910111213141516171819202122232425262728293031
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. function F() {
  6. this.a = 1;
  7. }
  8. F.prototype.p1 = 10;
  9. F.prototype.p2 = 12;
  10. F.prototype.p3 = 13;
  11. F.prototype.p4 = 14;
  12. F.prototype.p5 = 15;
  13. f = new F();
  14. f.p1 = 20;
  15. F.prototype.p1 = 21;
  16. F.prototype.p5 = 22;
  17. f.p6 = 23;
  18. WScript.Echo(f.p1, f.p2, f.p3, f.p4, f.p5);
  19. f = new F();
  20. f.p2 = 24;
  21. f.p3 = 25;
  22. f.p5 = 26;
  23. f.p6 = 27;
  24. f.p4 = 28;
  25. f.p5 = 29;
  26. WScript.Echo(f.p1, f.p2, f.p3, f.p4, f.p5);