"Super" hoisting

Renki Ivanko fatalis.erratum at gmail.com
Thu May 12 16:51:55 UTC 2016


Formatted the code so that it can be read:

```
class thing {
    constructor {}
    doSomething(x, y) {
        let a = x + y;
        let b = ay;
        let c = bx;
        return (c);
    }
}

class thing {
    constructor {
        let _doSomething_a = null;
        let _doSomething_b = null;
        let _doSomething_c = null;
    }
    doSomething(x, y) {
        this._doSomething_a = x + y;
        this._doSomething_b = ay;
        this._doSomething_c = bx;
        return (this._doSomething_c);
    }
}
```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160512/ae6bf653/attachment.html>


More information about the es-discuss mailing list