Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deoptimize return values of async functions #4163

Merged
merged 1 commit into from Jul 2, 2021

Conversation

lukastaegert
Copy link
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

This is a follow-up to #4161 resolving #4161 (comment). The problem is that for async functions, we were not properly deoptimizing the return value, which is fixed here.

@github-actions
Copy link

github-actions bot commented Jul 1, 2021

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#deoptimize-async-functions

or load it into the REPL:
https://rollupjs.org/repl/?pr=4163

@codecov
Copy link

codecov bot commented Jul 1, 2021

Codecov Report

Merging #4163 (654bfa3) into master (9cb15d6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4163   +/-   ##
=======================================
  Coverage   98.28%   98.29%           
=======================================
  Files         201      201           
  Lines        7130     7149   +19     
  Branches     2089     2093    +4     
=======================================
+ Hits         7008     7027   +19     
  Misses         58       58           
  Partials       64       64           
Impacted Files Coverage Δ
src/ast/nodes/ArrowFunctionExpression.ts 100.00% <100.00%> (ø)
src/ast/nodes/AwaitExpression.ts 100.00% <100.00%> (ø)
src/ast/nodes/shared/FunctionNode.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9cb15d6...654bfa3. Read the comment docs.

@lukastaegert lukastaegert merged commit 076df11 into master Jul 2, 2021
@lukastaegert lukastaegert deleted the deoptimize-async-functions branch July 2, 2021 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant