PageRenderTime 34ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 11 lines | 9 code | 1 blank | 1 comment | 1 complexity | 42a40104248fdc2f331f0c723c36f915 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. // https://developer.mozilla.org/en/New_in_JavaScript_1.7
  2. function fib() {
  3. var i = 0, j = 1;
  4. while (true) {
  5. yield i;
  6. var t = i;
  7. i = j;
  8. j += t;
  9. }
  10. }