electron/spec-main/fixtures/module/error-properties.js
2019-12-09 10:27:30 -08:00

11 lines
160 B
JavaScript

class Foo {
set bar (value) {
throw new Error('setting error')
}
get bar () {
throw new Error('getting error')
}
}
module.exports = new Foo()