Javascript: Accessing superclass objects from nested class
<pre><code>a = new function() {
    this.x=2;
    B=function() {
        this.y=super.x;
    }
    this.b=new B();
}

alert(a.b.y); // Expecting 2
</code></pre>

<p>In the above, there is a parse error in <code>super</code>. How can I access the value of x when defining the class B?</p>
