fixedfieldmonocheck5.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. var shouldBailout = false;
  6. function test0() {
  7. var obj0 = {};
  8. var protoObj0 = {};
  9. var func0 = function () {
  10. ({
  11. prop0: typeof Error ? Error : Object,
  12. prop5: (shouldBailout ? (Object.defineProperty(this, 'prop5', {
  13. set: function () {
  14. },
  15. configurable: true
  16. })) : -216, shouldBailout ? (Object.defineProperty(this, 'prop5', {
  17. set: function () {
  18. }
  19. })) : -216)
  20. });
  21. };
  22. var func1 = function () {
  23. return func0(func0()) < protoObj0 >= 0 ? func0(func0()) : 0;
  24. };
  25. var func2 = function () {
  26. };
  27. var func4 = function () {
  28. return func1();
  29. };
  30. obj0.method0 = func4;
  31. obj0.method1 = obj0.method0;
  32. function func7() {
  33. func2(func0());
  34. }
  35. func2(func0());
  36. obj0.method1();
  37. var uniqobj0 = func7();
  38. }
  39. test0();
  40. shouldBailout = true;
  41. test0();
  42. WScript.Echo('pass');