error-properties.js 160 B

123456789101112
  1. class Foo {
  2. set bar (value) {
  3. throw new Error('setting error')
  4. }
  5. get bar () {
  6. throw new Error('getting error')
  7. }
  8. }
  9. module.exports = new Foo()