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

Michael M. <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Michael M. <[email protected]> ---
(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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to