electron/spec-main/fixtures/module/error-properties.js
2020-03-20 13:28:31 -07:00

11 lines
163 B
JavaScript

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