GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — Use returned values from super calls as 'this' by DanielRosenwasser · Pull Request #10762 · microsoft/TypeScript Conversation
Member
This PR fixes #7574. In ES2015, constructors which return a value (which is an object) implicitly substitute the value of Some remaining work might be to do some refactoring on the emit code. I'd suggest reading one commit at a time.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
…ing 'super(...)'. …r of a derived class. …eserved. This came up when a `super()` call was nested in another constructor body. Current logic in the transform says that if the last containing non-arrow function body is non-static, and the current parent isn't a call expression, the call target of a `super` call will become `_super.prototype` instead of `super`. If the state is not saved, the containing arrow function and parent are not saved, and the information for this check won't be accurate.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. … generated 'super()' calls.
Daniel Rosenwasser (DanielRosenwasser)
force-pushed
the
useReturnedThisFromSuperCalls
branch
from
36a5c42 to
b5a1031
Compare
|
There was an error while loading. Please reload this page.
Nathan Shively-Sanders (@sandersn) how have we been operating like this? In any case, it looks like GitHub just has a limitation and might not be showing that file. I seem to have it locally. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It's only been since we made the tests run faster by not writing output for passing tests. I have the PR open in codeflow too or I would not have noticed the missing file at all. But maybe it's missing at the API level, not just the UI level. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Nathan Shively-Sanders (@sandersn) are you sure you don't see a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
When I check out the branch myself I see it, but I don't find it in the github list of files either. I guess it's a limitation of github proper, not just its UI. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Daniel Rosenwasser (@DanielRosenwasser) after the removal of |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ron Buckton (@rbuckton) nope, no changes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks Ron Buckton (@rbuckton) & Nathan Shively-Sanders (@sandersn)! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Return value of super() calls not used forthis
There was an error while loading. Please reload this page.