2020-03-20 20:28:31 +00:00
|
|
|
'use strict';
|
2016-02-22 04:13:26 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
let value = 'old';
|
2016-02-22 04:13:26 +00:00
|
|
|
|
|
|
|
class BaseClass {
|
2016-03-25 20:03:49 +00:00
|
|
|
method () {
|
2020-03-20 20:28:31 +00:00
|
|
|
return 'method';
|
2016-02-22 04:13:26 +00:00
|
|
|
}
|
|
|
|
|
2016-03-25 20:03:49 +00:00
|
|
|
get readonly () {
|
2020-03-20 20:28:31 +00:00
|
|
|
return 'readonly';
|
2016-02-22 04:13:26 +00:00
|
|
|
}
|
|
|
|
|
2016-03-25 20:03:49 +00:00
|
|
|
get value () {
|
2020-03-20 20:28:31 +00:00
|
|
|
return value;
|
2016-02-22 04:13:26 +00:00
|
|
|
}
|
|
|
|
|
2016-03-25 20:03:49 +00:00
|
|
|
set value (val) {
|
2020-03-20 20:28:31 +00:00
|
|
|
value = val;
|
2016-02-22 04:13:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class DerivedClass extends BaseClass {
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
2016-03-28 23:11:00 +00:00
|
|
|
base: new BaseClass(),
|
|
|
|
derived: new DerivedClass()
|
2020-03-20 20:28:31 +00:00
|
|
|
};
|