trycatch_functional.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. var shouldReturn = true;
  6. function func3(argMath8){
  7. try
  8. {
  9. var __loopvar6 = 5;
  10. argMath8++;
  11. func2.call(protoObj0 , 1);
  12. }
  13. catch(ex)
  14. {
  15. WScript.Echo(ex.message);
  16. if(shouldReturn)
  17. {
  18. return 1;
  19. }
  20. }
  21. ui32.length;
  22. }
  23. try
  24. {
  25. func3(0);
  26. func3(0);
  27. shouldReturn = false;
  28. func3(1.1);
  29. }
  30. catch(ex){}
  31. function v14()
  32. {
  33. return 1;
  34. }
  35. function test0()
  36. {
  37. var GiantPrintArray = [];
  38. var ary = new Array(10);
  39. try
  40. {
  41. GiantPrintArray.push(v14(ary[(1)],false));
  42. GiantPrintArray.push(v14(ary[(1)],1,1));
  43. }
  44. catch(ex)
  45. {
  46. WScript.Echo(ex.message);
  47. }
  48. };
  49. test0();
  50. test0();
  51. test0();