PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms 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
 1// https://developer.mozilla.org/en/New_in_JavaScript_1.7
 2
 3function fib() {
 4  var i = 0, j = 1;
 5  while (true) {
 6    yield i;
 7    var t = i;
 8    i = j;
 9    j += t;
10  }
11}