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

Don't patch Promise.prototype.then #1293

Merged
merged 4 commits into from
Dec 11, 2023
Merged

Conversation

dfahlander
Copy link
Collaborator

Should be enough to switch self.Promise between zones as long as app code doesnt do const P = Promise; and then new P(resolve => ...).then(...).
All tests pass with this commit including the async/await tests. Application code out there that imports Promise polyfills may be affected though. So this commit has to come in a new major version of Dexie.

Should be enough to switch self.Promise between zones as long as app code doesnt do const P = Promise; and then new P(resolve => ...).then(...).
All tests pass with this commit including the async/await tests. Application code out there that imports Promise polyfills may be affected though. So this commit has to come in a new major version of Dexie.
@dfahlander dfahlander marked this pull request as ready for review December 11, 2023 15:21
@dfahlander dfahlander merged commit 3f27079 into master Dec 11, 2023
5 checks passed
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.

1 participant