-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make circular input errors for EJSON expressive (#433)
* feat: make circular input errors for EJSON expressive Give errors roughly in the style of those thrown by `JSON.stringify()` on modern Node.js/V8 versions, where the path to the property and its circularity are visualized instead of just recursive indefinitely. This is just one suggested solution – it would be nice to have *some* kind of better error in these cases, and I think actually displaying the path would be nice in terms of UX, but I can also see an argument for avoiding the extra bits of complexity here. NODE-3226 Co-authored-by: Neal Beeken <neal.beeken@mongodb.com>
- Loading branch information
Showing
2 changed files
with
99 additions
and
7 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