weird1.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 func0 = function () {
  7. (function (loopInvariant) {
  8. eval('');
  9. while (
  10. {
  11. prop0: uic8[loopInvariant + 1 & 1],
  12. prop1: (undefined + 11) * Math.floor(--a) + 'method0'
  13. }
  14. )
  15. {
  16. if(4) {
  17. break;
  18. }
  19. strvar1 = 2147483646;
  20. ({
  21. prop2: 0,
  22. prop3: undefined,
  23. prop4: (3 & 255, 2)
  24. });
  25. continue;
  26. return 'somestring1';
  27. return 'somestring2';
  28. }
  29. }());
  30. };
  31. var uic8 = new Uint8ClampedArray();
  32. var a = 1;
  33. var temp = 0;
  34. do {
  35. func0();
  36. } while (temp++ < 4);
  37. }
  38. test0();
  39. test0();
  40. test0();
  41. console.log("PASSED");