Track visited parents and null out cycles

This commit is contained in:
Kevin Sawicki 2017-01-04 14:50:05 -08:00
parent 12382f064b
commit 1944fdc962
3 changed files with 28 additions and 14 deletions

View file

@ -237,6 +237,11 @@ ipcMain.on('create-window-with-options-cycle', (event) => {
// nulled out at the IPC layer
const foo = {}
foo.bar = foo
foo.baz = {
hello: {
world: true
}
}
const window = new BrowserWindow({show: false, foo: foo})
event.returnValue = window.id
})