missing_len.js 1.3 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. //FileName: \\ezeqasrv1\users\runtimetoolsbugs\casanalyzed\exprgen\fbl_ie_script_dev\130228-2030\x86\nebularun_x86\201303012321\ddltd2_0c68bf08-e27f-4a80-b0be-afca5b36c627\bug0.js
  6. //Configuration: cse.xml
  7. //Testcase Number: 8661
  8. //Switches: -maxinterpretcount:1
  9. //Branch: fbl_ie_script_dev
  10. //Build: 130228-2030
  11. //Arch: X86
  12. //MachineName: BPT30135
  13. function test2(){
  14. var ary = new Array(10);
  15. var d = 1;
  16. ary[0] = 1;
  17. ary[1] = 1;
  18. ary[2] = 1;
  19. ary[3] = 1;
  20. ary[4] = 1;
  21. ary[5] = 1;
  22. // Snippets: implicitcalls2.ecs
  23. function v292101()
  24. {
  25. Object.defineProperty(Array.prototype, "4", {configurable : true, get: function(){ return 30;}});
  26. //Code Snippet: Seal.ecs
  27. var _obj = new Object()
  28. _obj.x = ((d ? ary.length : ary.length) ? ary[(4)] : 1);
  29. WScript.Echo("_obj.x = " + _obj.x);
  30. }
  31. v292101();
  32. v292101();
  33. };
  34. // generate profile
  35. test2();
  36. // run JITted code
  37. test2();