Sahil Singh
Sahil Singh
This PR improves the error message for ERR_AMBIGUOUS_MODULE_SYNTAX by dynamically identifying the CommonJS global that caused the ambiguity, instead of hardcoding 'require()'. Fixes #60322
**Issue:** closes #10546 **Popularity metric:** Similarweb rank is 70,632 (https://www.similarweb.com/website/home.saxo) **Terms of Service link:** https://www.home.saxo/legal/disclaimer/saxo-disclaimer ### Checklist - [x] I have reviewed the [forbidden brands](https://github.com/simple-icons/simple-icons/blob/develop/CONTRIBUTING.md#forbidden-brands) list and confirm the brand...
`res.location()` currently passes the value directly into `encodeUrl(url)`. If `url` is not a string (e.g., null, undefined, numbers, objects), this causes a TypeError and crashes the response. This PR adds...