Add spec for remote setter with remote object
This commit is contained in:
parent
3e9014c371
commit
e5f70f90a4
2 changed files with 19 additions and 0 deletions
11
spec/fixtures/module/remote-object-set.js
vendored
Normal file
11
spec/fixtures/module/remote-object-set.js
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
const {BrowserWindow} = require('electron')
|
||||
|
||||
class Foo {
|
||||
set bar (value) {
|
||||
if (!(value instanceof BrowserWindow)) {
|
||||
throw new Error('setting error')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new Foo()
|
Loading…
Add table
Add a link
Reference in a new issue