OS_2733280.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. function leaf() {
  7. }
  8. var obj0 = {};
  9. var obj1 = {};
  10. var func3 = function (...args) {
  11. };
  12. var func4 = function () {
  13. arguments;
  14. };
  15. obj0.method0 = func3;
  16. obj0.method00 = func4;
  17. protoObj0 = Object(obj0);
  18. var v0 = {
  19. v1: function () {
  20. return function bar() {
  21. delete protoObj0.prop0;
  22. this.method0.apply(obj1, arguments);
  23. this.method00.apply(obj1, arguments);
  24. };
  25. }
  26. };
  27. obj0.method1 = v0.v1();
  28. var uniqobj4 = [obj0];
  29. var uniqobj5 = uniqobj4[0];
  30. uniqobj5.method0((protoObj0.method1(leaf)));
  31. }
  32. test0();
  33. test0();
  34. test0();
  35. WScript.Echo("PASS");