depolymorph01.js 977 B

123456789101112131415161718192021222324252627282930
  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 test0() {
  6. var obj0 = {};
  7. var arrObj0 = {};
  8. var litObj0 = { prop1: 3.14159265358979 };
  9. var func1 = function (argMath1 = func0(), argMath3) {
  10. protoObj0.prop0 = ++this.prop0;
  11. this.prop0 = argMath3;
  12. };
  13. obj0.method0 = func1;
  14. obj0.method1 = obj0.method0;
  15. var IntArr0 = Array();
  16. var protoObj0 = Object.create(obj0);
  17. prop0 = 1;
  18. protoObj0.method0.call(litObj0, arrObj0);
  19. while (prop0) {
  20. protoObj0.method1(arrObj0);
  21. obj0.method0(obj0);
  22. prop0 = IntArr0.shift();
  23. }
  24. obj0.method0('');
  25. }
  26. test0();
  27. test0();
  28. test0();
  29. WScript.Echo('pass');