electron/spec-main/fixtures/module/remote-object-set.js

12 lines
206 B
JavaScript
Raw Normal View History

2020-03-20 20:28:31 +00:00
const { BrowserWindow } = require('electron');
class Foo {
set bar (value) {
if (!(value instanceof BrowserWindow)) {
2020-03-20 20:28:31 +00:00
throw new Error('setting error');
}
}
}
2020-03-20 20:28:31 +00:00
module.exports = new Foo();