Q:

How to access object variable inside self-executing anonymous functions

Please look at this code:
var someObject = 
{
    x: 3,
    y: (function()
    {
        var z = // HOW TO ACCESS x HERE?

        return {
            // whatever
        };
    })()
};

Is there any possibility to access "x" variable inside function, without creating any variables outside "someObject" object?

A:

No.
The object hasn't been created so x doesn't exist at the time that statement is evaluated. 

