fork download
  1. var t = {
  2. unit: null
  3. }
  4. Object.defineProperty(t, 'unit', {
  5. get: function() {
  6. return unit;
  7. },
  8. set: function(val) {
  9. console.log('unit->', val);
  10. unit = val;
  11. },
  12. enumerable: true
  13. });
  14.  
Success #stdin #stdout 0.01s 30144KB
stdin
Standard input is empty
stdout
Standard output is empty