tryfinallybug0.js 798 B

1234567891011121314151617181920212223242526272829303132333435
  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 foo(arg0){
  6. WScript.Echo(" in " + arg0);
  7. ui32;
  8. try {
  9. try {
  10. var num = 100;
  11. if (arg0 == 1) {
  12. num.toPrecision(500);
  13. }
  14. }
  15. finally {
  16. if (arg0 == 1) {
  17. foo(2);
  18. }
  19. if (arg0 == 2) {
  20. ui32[187953167];
  21. }
  22. }
  23. }
  24. catch(e) {
  25. WScript.Echo(e);
  26. }
  27. WScript.Echo(" done " + arg0);
  28. }
  29. var ui32 = new Uint32Array();
  30. foo(0);
  31. foo(0);
  32. foo(1);