If I type the console:
console.log(window)
I get all the objects in windowusing the extension buttons.
But if I try the same:
JSON.stringify(window)
I get in Firefox:
Error: Permission denied to access property 'toJSON'
And in chrome:
TypeError: Converting circular structure to JSON
Is this the only time this happens? And given that console.log()they JSON.stringify()work differently, can I access and still create objects that I console.log()can display?
source
share