electron/spec-main/fixtures/module/remote-object-set.js
2020-03-20 13:28:31 -07:00

11 lines
206 B
JavaScript

const { BrowserWindow } = require('electron');
class Foo {
set bar (value) {
if (!(value instanceof BrowserWindow)) {
throw new Error('setting error');
}
}
}
module.exports = new Foo();