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 — Simplify `helper-function-name` logic by nicolo-ribaudo · Pull Request #16652 · babel/babel Conversation
Member
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/57377 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@JLHwung I pushed a new commit, since I noticed that we have a custom wrapper for generators that we don't actually need (we can just return the generator object without |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
7441178 to
343a024
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Nice catch.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We were assigning a newId[NOT_LOCAL_BINDING] = true, but that's not needed anymore
This is awesome, and this is the only plugin that sets it.
I pushed a new commit, since I noticed that we have a custom wrapper for generators that we don't actually need (we can just return the generator object without yield*ing it, similarly to how we don't await promises).
I suspect this is to keep FUNCTION_ID.prototype unchanged, but I think the new behavior is fine.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
We can then remove from wherever it's used, I'm not sure whether it should be considered a breaking change (for old versions of this plugin) or not.
Yeah we already loose the prototype in many other wrapping cases |
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.
There was an error while loading. Please reload this page.