electron/spec/fixtures/module/class.js

30 lines
336 B
JavaScript
Raw Normal View History

2016-02-22 04:13:26 +00:00
'use strict';
let value = 'old';
class BaseClass {
method() {
return 'method';
}
get readonly() {
return 'readonly';
}
get value() {
return value;
}
set value(val) {
value = val;
}
}
class DerivedClass extends BaseClass {
}
module.exports = {
base: new BaseClass,
derived: new DerivedClass,
}