switchDefNotStringBug.js 887 B

123456789101112131415161718192021222324252627
  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. //Switches: -loopinterpretcount:1 -bgjit- -maxsimplejitruncount:2 -maxinterpretcount:1 -maxlinearstringcasecount:2 -forcedeferparse -off:simplejit
  6. function test0() {
  7. function makeArrayLength() {
  8. return Math.floor();
  9. }
  10. var obj0 = {};
  11. var f64 = new Float64Array();
  12. var strvar7 = '!';
  13. makeArrayLength();
  14. switch (strvar7) {
  15. case obj0.length /= f64[250 & 255]:
  16. case '!':
  17. switch (strvar7) {
  18. case '#':
  19. case '$':
  20. }
  21. }
  22. }
  23. test0();
  24. test0();
  25. WScript.Echo("PASSED");