PageRenderTime 203ms CodeModel.GetById 101ms app.highlight 4ms RepoModel.GetById 96ms app.codeStats 0ms

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

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 31 lines | 30 code | 0 blank | 1 comment | 2 complexity | 4afb342f8e3c2f86ffb97727f0fd96e0 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-getter-setter.js']) {
 7  _$jscoverage['javascript-getter-setter.js'] = [];
 8  _$jscoverage['javascript-getter-setter.js'][1] = 0;
 9  _$jscoverage['javascript-getter-setter.js'][4] = 0;
10  _$jscoverage['javascript-getter-setter.js'][7] = 0;
11  _$jscoverage['javascript-getter-setter.js'][11] = 0;
12  _$jscoverage['javascript-getter-setter.js'][14] = 0;
13  _$jscoverage['javascript-getter-setter.js'][17] = 0;
14}
15_$jscoverage['javascript-getter-setter.js'][1]++;
16var o = {_x: 123, get x () {
17  _$jscoverage['javascript-getter-setter.js'][4]++;
18  return this._x;
19}, set x (value) {
20  _$jscoverage['javascript-getter-setter.js'][7]++;
21  this._x = value;
22}};
23_$jscoverage['javascript-getter-setter.js'][11]++;
24o = {_x: 123, get x get_x() {
25  _$jscoverage['javascript-getter-setter.js'][14]++;
26  return this._x;
27}, set x set_x(value) {
28  _$jscoverage['javascript-getter-setter.js'][17]++;
29  this._x = value;
30}};
31_$jscoverage['javascript-getter-setter.js'].source = ["<span class=\"k\">var</span> o <span class=\"k\">=</span> <span class=\"k\">{</span>","  _x<span class=\"k\">:</span> <span class=\"s\">123</span><span class=\"k\">,</span>","  get x<span class=\"k\">()</span> <span class=\"k\">{</span>","    <span class=\"k\">return</span> <span class=\"k\">this</span><span class=\"k\">.</span>_x<span class=\"k\">;</span>","  <span class=\"k\">}</span><span class=\"k\">,</span>","  set x<span class=\"k\">(</span>value<span class=\"k\">)</span> <span class=\"k\">{</span>","    <span class=\"k\">this</span><span class=\"k\">.</span>_x <span class=\"k\">=</span> value<span class=\"k\">;</span>","  <span class=\"k\">}</span>","<span class=\"k\">}</span><span class=\"k\">;</span>","","o <span class=\"k\">=</span> <span class=\"k\">{</span>","  _x<span class=\"k\">:</span> <span class=\"s\">123</span><span class=\"k\">,</span>","  get x get_x<span class=\"k\">()</span> <span class=\"k\">{</span>","    <span class=\"k\">return</span> <span class=\"k\">this</span><span class=\"k\">.</span>_x<span class=\"k\">;</span>","  <span class=\"k\">}</span><span class=\"k\">,</span>","  set x set_x<span class=\"k\">(</span>value<span class=\"k\">)</span> <span class=\"k\">{</span>","    <span class=\"k\">this</span><span class=\"k\">.</span>_x <span class=\"k\">=</span> value<span class=\"k\">;</span>","  <span class=\"k\">}</span>","<span class=\"k\">}</span><span class=\"k\">;</span>"];