Skip to content

JS: Add withoutPropStep and model raw 'await' step with it #9616

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

Merged
merged 2 commits into from
Jun 21, 2022

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Jun 20, 2022

Doing await x on non-promise value just returns x itself, but our type-tracking steps didn't take this into account, leading to missed flow.

This PR adds support for this by adding PropertySet and withoutPropStep(Node pred, Node succ, PropertySet props). This steps allows flow from pred -> succ but without the properties in props (see qldoc in PR).

This new step is deliberately similar to the WithoutElement step that @hvitved added in #8938. (The WithElement step is called a loadStoreStep in JS)

Evaluation was quiet

@asgerf asgerf added JS Awaiting evaluation Do not merge yet, this PR is waiting for an evaluation to finish labels Jun 20, 2022
@asgerf asgerf force-pushed the js/without-prop-step-await branch 2 times, most recently from 2d58260 to 654d687 Compare June 20, 2022 11:22
@asgerf asgerf removed the Awaiting evaluation Do not merge yet, this PR is waiting for an evaluation to finish label Jun 20, 2022
@asgerf asgerf force-pushed the js/without-prop-step-await branch from 654d687 to 835c9bb Compare June 20, 2022 18:16
@asgerf asgerf marked this pull request as ready for review June 20, 2022 18:20
@asgerf asgerf requested a review from a team as a code owner June 20, 2022 18:20
@asgerf asgerf added the no-change-note-required This PR does not need a change note label Jun 20, 2022
Copy link
Contributor

@erik-krogh erik-krogh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@asgerf asgerf merged commit b46ba89 into github:main Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants