weird2.js 1.5 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 loopInvariant = 4;
  8. var obj1 = {};
  9. var i16 = new Int16Array();
  10. function _array2iterate(_array2tmp) {
  11. for (var _array2i in _array2tmp) {
  12. if (_array2i.indexOf('') == 0) {
  13. }
  14. var __loopvar1 = loopInvariant - 6;
  15. for (; obj1.prop0 < ~(shouldBailout ? (Object.defineProperty(obj1, '', {
  16. get: function () {
  17. },
  18. configurable: true
  19. }), obj1.prop0) : obj1.prop0); obj1++) {
  20. 5;
  21. if (obj1) {
  22. }
  23. }
  24. _array2iterate(_array2tmp[_array2i]);
  25. obj1.prop0 = {
  26. prop0: obj1.prop0 >> 'caller',
  27. prop1: i16[53 & 255],
  28. prop2: obj1.prop0 >> '',
  29. prop3: new RegExp('xyz') instanceof (typeof Function == 'function' && Function[Symbol.toStringTag] == 'AsyncFunction' ? Function : Object),
  30. prop4: obj1[shouldBailout ? obj1[8] = 'x' : undefined, 8]
  31. };
  32. }
  33. }
  34. _array2iterate([
  35. [],
  36. []
  37. ]);
  38. }
  39. test0();
  40. test0();
  41. test0();
  42. console.log("PASSED");