PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 19 lines | 18 code | 1 blank | 0 comment | 0 complexity | 10d6383c64aac20901bc8e1a8b4c6ef4 MD5 | raw file
 1var o = {
 2  _x: 123,
 3  get x() {
 4    return this._x;
 5  },
 6  set x(value) {
 7    this._x = value;
 8  }
 9};
10
11o = {
12  _x: 123,
13  get x get_x() {
14    return this._x;
15  },
16  set x set_x(value) {
17    this._x = value;
18  }
19};