Re:DuckDuckGo for Mac beta now open to the public
by wifu on Tuesday October 18, 2022 @02:59PM
(#33252229)
JSON.stringify is outputting the "own, enumerable" properties. The default properties of window.navigator aren't enumerable and/or come through the prototype chain.
The rules for JSON.stringify are actually pretty complicated: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Re:DuckDuckGo for Mac beta now open to the public
by AdriaanvRossum on Wednesday October 19, 2022 @04:55AM
(#33259382)
Thanks for sharing!
If you run `JSON.stringify(window.navigator)`, it only shows the _duckduckgoloader_ variable. Anybody knows why JSON.stringify behaves like that?