PageRenderTime 38ms CodeModel.GetById 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
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. var o = {
  2. _x: 123,
  3. get x() {
  4. return this._x;
  5. },
  6. set x(value) {
  7. this._x = value;
  8. }
  9. };
  10. o = {
  11. _x: 123,
  12. get x get_x() {
  13. return this._x;
  14. },
  15. set x set_x(value) {
  16. this._x = value;
  17. }
  18. };