PageRenderTime 72ms CodeModel.GetById 36ms app.highlight 4ms RepoModel.GetById 16ms app.codeStats 0ms

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

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 32 lines | 31 code | 0 blank | 1 comment | 3 complexity | 3e4ac068c15395081658cd62a051d98b MD5 | raw file
 1/* automatically generated by JSCoverage - do not edit */
 2if (! top._$jscoverage) {
 3  top._$jscoverage = {};
 4}
 5var _$jscoverage = top._$jscoverage;
 6if (! _$jscoverage['javascript-generator.js']) {
 7  _$jscoverage['javascript-generator.js'] = [];
 8  _$jscoverage['javascript-generator.js'][3] = 0;
 9  _$jscoverage['javascript-generator.js'][4] = 0;
10  _$jscoverage['javascript-generator.js'][5] = 0;
11  _$jscoverage['javascript-generator.js'][6] = 0;
12  _$jscoverage['javascript-generator.js'][7] = 0;
13  _$jscoverage['javascript-generator.js'][8] = 0;
14  _$jscoverage['javascript-generator.js'][9] = 0;
15}
16_$jscoverage['javascript-generator.js'][3]++;
17function fib() {
18  _$jscoverage['javascript-generator.js'][4]++;
19  var i = 0, j = 1;
20  _$jscoverage['javascript-generator.js'][5]++;
21  while (true) {
22    _$jscoverage['javascript-generator.js'][6]++;
23    yield i;
24    _$jscoverage['javascript-generator.js'][7]++;
25    var t = i;
26    _$jscoverage['javascript-generator.js'][8]++;
27    i = j;
28    _$jscoverage['javascript-generator.js'][9]++;
29    j += t;
30}
31}
32_$jscoverage['javascript-generator.js'].source = ["<span class=\"c\">// https://developer.mozilla.org/en/New_in_JavaScript_1.7</span>","","<span class=\"k\">function</span> fib<span class=\"k\">()</span> <span class=\"k\">{</span>","  <span class=\"k\">var</span> i <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">,</span> j <span class=\"k\">=</span> <span class=\"s\">1</span><span class=\"k\">;</span>","  <span class=\"k\">while</span> <span class=\"k\">(</span><span class=\"k\">true</span><span class=\"k\">)</span> <span class=\"k\">{</span>","    <span class=\"k\">yield</span> i<span class=\"k\">;</span>","    <span class=\"k\">var</span> t <span class=\"k\">=</span> i<span class=\"k\">;</span>","    i <span class=\"k\">=</span> j<span class=\"k\">;</span>","    j <span class=\"k\">+=</span> t<span class=\"k\">;</span>","  <span class=\"k\">}</span>","<span class=\"k\">}</span>"];