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

Return after 'reject' in Promise constructor #8857

Merged
merged 1 commit into from
Jun 24, 2020
Merged

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jun 24, 2020

There were three cases where execution unintentionally continued after an error was encountered. These cases likely are impossible to encounter in practice due to recent validation improvements in the eth-json-rpc-middleware/wallet module, but they were broken nonetheless.

Execution inside the Promise constructor now halts immediately after reject is called.

There were three cases where execution unintentionally continued after
an error was encountered. These cases likely are impossible to
encounter in practice due to recent validation improvements in the
`eth-json-rpc-middleware/wallet` module, but they were broken
nonetheless.

Execution inside the Promise constructor now halts immediately after
`reject` is called.
@metamaskbot
Copy link
Collaborator

Builds ready [dba1362]
Page Load Metrics (687 ± 25 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint319345189
domContentLoaded6158486865225
load6168506875225
domInteractive6148476855225

@Gudahtt Gudahtt marked this pull request as ready for review June 24, 2020 18:51
@Gudahtt Gudahtt requested a review from a team as a code owner June 24, 2020 18:51
Copy link
Contributor

@whymarrh whymarrh left a comment

Choose a reason for hiding this comment

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

consistent-return is enabled in the forthcoming ESLint config update

@Gudahtt Gudahtt merged commit 828ec05 into develop Jun 24, 2020
@Gudahtt Gudahtt deleted the return-after-reject branch June 24, 2020 19:38
Gudahtt added a commit that referenced this pull request Jun 24, 2020
* origin/develop:
  Restore list item title attributes (#8858)
  Fix mobile sync redirect (#8860)
  Align copy tooltip text and icon (#8861)
  Update inpage provider, deprecation warnings (#8854)
  Update test-dapp (#8856)
  Return after 'reject' in Promise constructor (#8857)
  Replace removed 'copy-to-clipboard' icon (#8853)
  Stop upper-casing exported private key (#8850)
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.

3 participants