electron/spec-main/fixtures/remote/error-properties.js

12 lines
163 B
JavaScript
Raw Normal View History

class Foo {
set bar (value) {
2020-03-20 20:28:31 +00:00
throw new Error('setting error');
}
get bar () {
2020-03-20 20:28:31 +00:00
throw new Error('getting error');
}
}
2020-03-20 20:28:31 +00:00
module.exports = new Foo();