{"push_id":912083169,"size":1,"distinct_size":1,"ref":"refs/heads/redesign-constructors","head":"800ca0226ac406604be7f54a1876bd40c7037480","before":"f185bc45b237475c9a2bf6cb98600269f547d560","commits":[{"sha":"800ca0226ac406604be7f54a1876bd40c7037480","author":{"email":"2832a3611e91a3b35b084da8a16440b68c3bd8c7@gmail.com","name":"Sébastien Doeraene"},"message":"Give constructor methods a result type of NoType.\n\nPreviously, constructor methods explicitly returned `this`, and\nadvertised it in the result type of their signature. This was an\nimplementation detail of the encoding in JS, for which we want\ninit methods to return `this` so that we can chain them with `new`.\n\nThis commit fixes the specification of init methods with NoType as\nresult type. They do not explicitly return `this` at the IR level\nanymore. It is the responsibility of the desugaring to JavaScript\nto introduce the `return this`.\n\nThis commit does not change the compiler yet, so that we can test\nthe backward binary compatibility hack.","distinct":true,"url":"https://api.github.com/repos/sjrd/scala-js/commits/800ca0226ac406604be7f54a1876bd40c7037480"}]}