blockLabelBug.js 657 B

1234567891011121314151617181920212223242526
  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 module()
  6. {
  7. "use asm"
  8. function foo()
  9. {
  10. h:{
  11. switch (1) {
  12. case 1:
  13. {
  14. break h
  15. }
  16. }
  17. }
  18. }
  19. return foo;
  20. }
  21. var obj = module();
  22. obj();
  23. WScript.Echo("Pass");