var t = {
unit: null
}
Object.defineProperty(t, 'unit', {
get: function() {
return unit;
},
set: function(val) {
console.log('unit->', val);
unit = val;
},
enumerable: true
});
dmFyIHQgPSB7CiAgICB1bml0OiBudWxsCn0KT2JqZWN0LmRlZmluZVByb3BlcnR5KHQsICd1bml0JywgewogICAgZ2V0OiBmdW5jdGlvbigpIHsKICAgICAgICByZXR1cm4gdW5pdDsKICAgICAgICB9LAogICAgc2V0OiBmdW5jdGlvbih2YWwpIHsKICAgICAgICBjb25zb2xlLmxvZygndW5pdC0+JywgdmFsKTsKICAgICAgICB1bml0ID0gdmFsOwogICAgfSwKICAgIGVudW1lcmFibGU6IHRydWUKfSk7CiA=