https://bugzilla.wikimedia.org/show_bug.cgi?id=69924

Michael M. <listenle...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |listenle...@gmail.com

--- Comment #1 from Michael M. <listenle...@gmail.com> ---
(In reply to Fomafix from comment #0)

> A possible workaround is to put this in an additional closure because
> 
>  if ( true ) {
>    ( function () {
>      foo();
>      function foo() {
>        console.log( 'foo' );
>      }
>    }() );
>  }
> 
> works also in Firefox.

This will break all scripts using var foo = 'bar'; to set global variables, as
it will turn them into local ones.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to