vamsi2246 opened a new pull request, #5951: URL: https://github.com/apache/couchdb/pull/5951
## Overview `handleIndexError()` in `nouveau.js` calls `err.toSource()`, which is a SpiderMonkey-specific method not available in QuickJS. This causes the error handler itself to crash when a Nouveau index function throws a non-fatal error on QuickJS-based deployments. This replaces `err.toSource()` with the existing `errstr()` helper (defined in `util.js`), which safely checks for `toSource` availability before calling it, falling back to `toString()`. This is consistent with the identical pattern used in `dreyfus.js` and `views.js`. ## Testing recommendations N/A - This is a trivial 1-line compatibility fix that aligns `nouveau.js` with the existing pattern in `dreyfus.js`. -- 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]
