-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
fix(core,ext): Fix not to be affected by Promise.prototype.then
#16326
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1cee8e1
Fix: Use primordials for Promise
petamoriken 86e64e4
Fix: Avoid using PromiseAll directly
petamoriken e75a2b0
Merge branch 'main' into fix/promise-then
petamoriken f8ca1d6
Merge branch 'main' into fix/promise-then
petamoriken 53ed4cc
Merge branch 'main' into fix/promise-then
petamoriken 171405d
Format
petamoriken 5885c73
Merge branch 'main' into fix/promise-then
petamoriken e05f54f
Update
petamoriken f277f29
Merge branch 'main' into fix/promise-then
petamoriken f6088da
Fix
petamoriken 42e36d4
Fix
petamoriken ea57ca4
Merge branch 'main' into fix/promise-then
petamoriken b2e5f80
Stop using `SafeArrayIterator`
petamoriken d0f4a10
Merge branch 'main' into fix/promise-then
petamoriken 73835d8
Add tests
petamoriken 40fe9e9
Format
petamoriken 956725c
Tweak
petamoriken 1997a89
Merge branch 'main' into fix/promise-then
petamoriken File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix: Avoid using PromiseAll directly
- Loading branch information
commit 86e64e42ded9c007a5abd35b3628db5f0c5a10b0
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 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it unsafe to expose
SafePromise.prototype
to user-land? I think it can't be modified even if it's exposed because it's frozen. (I might be missing something...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation is referenced from
SafePromisePrototypeFinally
. I think it is meant to prevent the internal code from being strangely utilized in user-land.deno/core/00_primordials.js
Lines 439 to 455 in 45ac6e6