Add failing spec for cycle in options

This commit is contained in:
Kevin Sawicki 2017-01-04 14:44:14 -08:00
parent b942c54bea
commit 12382f064b
3 changed files with 32 additions and 2 deletions

View file

@ -230,3 +230,13 @@ ipcMain.on('close-on-will-navigate', (event, id) => {
contents.send('closed-on-will-navigate')
})
})
ipcMain.on('create-window-with-options-cycle', (event) => {
// This can't be done over remote since cycles are already
// nulled out at the IPC layer
const foo = {}
foo.bar = foo
const window = new BrowserWindow({show: false, foo: foo})
event.returnValue = window.id
})