PageRenderTime 26ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/tests/javascript/javascript-switch.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 21 lines | 20 code | 1 blank | 0 comment | 2 complexity | e3cf9ba4a7672c9359d776050dbf033b MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. switch (x) {
  2. case x:
  3. x = 0;
  4. break;
  5. case y:
  6. x = 0;
  7. y = 0;
  8. break;
  9. default:
  10. x = 0;
  11. break;
  12. }
  13. switch (x) {
  14. case 1:
  15. let y = 1;
  16. f(y);
  17. break;
  18. case 2:
  19. break;
  20. }