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

12 lines
203 B
JavaScript
Raw Normal View History

2018-09-13 16:10:51 +00:00
const { BrowserWindow } = require('electron')
class Foo {
set bar (value) {
if (!(value instanceof BrowserWindow)) {
throw new Error('setting error')
}
}
}
module.exports = new Foo()