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

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs · JavaScript · 38 lines · 29 code · 9 blank · 0 comment · 0 complexity · bcb6cea52f65fc3ad00cbac73942131b MD5 · raw file

  1. function x() {}
  2. function x() {
  3. ;
  4. }
  5. function x() {
  6. x();
  7. return 'x';
  8. }
  9. function x(a) {
  10. x();
  11. }
  12. function x(a, b) {
  13. x();
  14. }
  15. x = function() {
  16. x();
  17. };
  18. (function () {
  19. print('x');
  20. })();
  21. (function (a) {
  22. print('x');
  23. })(1);
  24. (function (a, b) {
  25. print('x');
  26. })(1, 2);
  27. (function () {
  28. print('x');
  29. }).call(window);