I have a script which uses a global variable named history
. I've confirmed this works fine in Chrome 35 and Firefox, but in Chrome 36 the variable is read only and is populated with a length value, a type value, and a prototype.
The solution for my script is easy enough - I just renamed the variable and all's well - but when I went looking I couldn't find an explanation of what this variable is or why it's been promoted to global in the latest update.
Can anyone point me to more information on this?
For a simple example, try this:
var history = {};
Open the debugger, and note how history
isn't an empty object.
Edit: As @Pointy was kind enough to point out, the change here is apparently that history is now read only in Chrome, unlike in Firefox. It has always been global.