test107.js 993 B

123456789101112131415161718192021222324252627282930313233
  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 ui8 = new Uint8Array(256);
  7. this.prop0 = 1;
  8. if(this.prop0) {
  9. //Bug 281689
  10. (function() {
  11. function foo() {
  12. eval("");
  13. function bar() {
  14. foo();
  15. }
  16. };
  17. })();
  18. }
  19. var __loopvar1 = 0;
  20. for(var strvar0 in ui8) {
  21. if(strvar0.indexOf('method') != -1) continue;
  22. if(__loopvar1++ > 3) break;
  23. ui8[strvar0] = (1, 1, 1, 1, (-2144361518.9 - this.prop0), this.prop0);
  24. 1
  25. }
  26. };
  27. test0();
  28. test0();
  29. WScript.Echo("pass");