bug435809.js 764 B

123456789101112131415161718192021222324252627282930
  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 obj2 = {};
  7. var func1 = function(){
  8. function func5 (arg0) {
  9. this.prop0 = arg0;
  10. }
  11. obj7 = new func5( );
  12. };
  13. obj2.method1 = func1;
  14. obj7 = 1;
  15. var __loopvar0 = 2;
  16. for(;;) {
  17. if (__loopvar0 == 3) break;
  18. __loopvar0++;
  19. obj2.method1(obj7 );
  20. obj7 ;
  21. }
  22. };
  23. test0();
  24. test0();
  25. WScript.Echo("PASSED");