tryfinallybug1.js 669 B

123456789101112131415161718192021222324252627
  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 b = -162;
  7. try {
  8. try {
  9. } catch (ex) {
  10. } finally {
  11. ((b = -1006389207) * c);
  12. }
  13. } catch (ex) {
  14. } finally {
  15. }
  16. return b;
  17. }
  18. var b = test0();
  19. b |= test0();
  20. b |= test0();
  21. if (b == -1006389207) {
  22. WScript.Echo("PASSED");
  23. }