Bug 1071080 - TypeError: redeclaration of variable foo1