"this" inside of a nested prototype not pointing to instance
<p>Given:</p>

<pre><code>var x = function () {
};

x.prototype = {
    y: {
        z: function () {
            console.log(this);
        }
    }
};

var foo = new x();
foo.y.z();
</code></pre>

<p>Why is <code>this</code> logged in the <code>console</code> as <code>y</code> instead of <code>x</code> and how is that possible given <code>y</code> is a literal object without a constructor?</p>
