Mayankaggarwal8055 opened a new pull request, #9193:
URL: https://github.com/apache/pouchdb/pull/9193

   This PR addresses issue #9067 by making the error handling in 
`pouchdb-errors` more robust.
   
   In some environments, accessing or assigning `Error.stack` can throw an 
exception. The previous implementation assumed that the `stack` property would 
always be accessible, which could cause the error handling itself to crash.
   
   This change wraps the stack assignment in a `try/catch` block and provides a 
safe fallback when the stack cannot be accessed. This ensures that error 
objects are still created properly even in restricted environments.
   
   All unit tests pass locally after the change.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to