electron/spec-main/fixtures/module/remote-object-set.js
2019-12-09 10:27:30 -08:00

11 lines
203 B
JavaScript

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