-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate nonstandard Promise.prototype.done
Summary: Deprecates the nonstandard `Promise.prototype.done` method. This also removes one call site within React Native itself that relied on this method. As part of this we are also removing React Native's custom Flow definition for `Promise` in favour of the standard one built into Flow. This will flag uses of `done` as type errors for anyone using the default app template's `.flowconfig`. In a future release of React Native, we will remove the `done` method from the built-in `Promise` polyfill. Changelog: [General][Deprecated] - Deprecate the Promise.prototype.done method and log a warning when it's called in development. Reviewed By: yungsters Differential Revision: D34222667 fbshipit-source-id: 4b9708ac20c45b3966fdb93e883ab7f8d80017c1
- Loading branch information
1 parent
062c1f7
commit 3580096
Showing
4 changed files
with
37 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.