Affecting Global variables with the same name as window properties now call the property setter when they are set

Published: | Categories: DOM | Creative Commons BY-SA 3.0

Description

A typical impact of this change has been reported as Bug 943958. Code like var name = 1 no longer works as expected, instead name will return a string "1" because of the window.name property. This will be the same behaviour as WebKit and Blink. Web developers should always avoid using global variables with the same name as window properties.

References