bug650495.js 790 B

1234567891011121314151617181920212223242526
  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: -maxinterpretcount:1
  6. var __counter = 0;
  7. __counter++;
  8. var obj0 = {};
  9. obj0.method0 = function () {
  10. obj0.prop0 = 1 - e;
  11. [].push('e = ' + (e | 0));
  12. };
  13. var e = 2;
  14. Object.defineProperty(obj0, 'prop0', {
  15. set: function (v5) {
  16. arguments; // this disables the argout optimization
  17. WScript.Echo(v5);
  18. }
  19. });
  20. for (var i =0;i<3;i++) {
  21. [
  22. {},
  23. obj0
  24. ][__counter].method0();
  25. }