The following script logs false
to the console. Does anyone know why or what benefits it brings?
From a brief glance into Greasemonkey's source code I couldn't find anything that modifies Object
. Also looking into the Object
it is hard to see any meaningful differences, all the functions are still native code.
// ==UserScript==
// @name test
// @namespace test
// @include *
// @grant none
// ==/UserScript==
console.log(window.Object == Object)
(tested on Greasemonkey & Firefox, not sure about Scriptish & Chrome, though any experiments welcome!).
[NOTE: this question is unrelated to the question of {a: 2} != {a: 2}
, please read the question itself and not just glance at the title before you cast any close votes, thanks!].