electron/spec/fixtures/module/error-properties.js

12 lines
160 B
JavaScript
Raw Normal View History

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