test104.js 864 B

12345678910111213141516171819202122232425262728293031
  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 obj1 = { prop1: 0.1 };
  7. obj1.prop1;
  8. for(var i = 0; i < 1; ++i) {
  9. test0a();
  10. var x = obj1.prop1;
  11. x += 1;
  12. WScript.Echo(x);
  13. }
  14. function test0a() {
  15. try {
  16. test0b();
  17. } catch(ex) {
  18. }
  19. function test0b() {
  20. for(var i = 0; i < 1; ++i) {
  21. 0.1 - _nonexistent;
  22. break;
  23. }
  24. }
  25. }
  26. };
  27. test0();
  28. test0();