-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(async-rewriter2): throw for async in sync contexts MONGOSH-654 (#…
…755) In always-synchronous contexts like class constructors and synchronous generator functions, throw an exception if a synthetic Promise is encountered, since there is no way to actually act as if it is a synchronous expression.
- Loading branch information
Showing
2 changed files
with
82 additions
and
28 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