### Most appropriate sub-area of p5.js? - [ ] Accessibility - [ ] Color - [ ] Core/Environment/Rendering - [ ] Data - [ ] DOM - [ ] Events - [ ] Image - [ ] IO - [ ] Math - [ ] Typography - [ ] Utilities - [ ] WebGL - [ ] Build process - [ ] Unit testing - [ ] Internationalization - [x] Friendly errors - [ ] Other (specify if possible) ### p5.js version 2.0.5 (Anything 2.0 and above) ### Web browser and version Firefox 143 ### Operating system MacOS ### Steps to reproduce this ### Steps: 1. Trigger an internal library error, e.g. https://editor.p5js.org/davepagurek/sketches/eR9paTywq (see https://github.com/processing/p5.js/issues/8173) The FES output shows two errors, the top one being: ``` TypeError: can't access property "functionName", stacktrace[(friendlyStack[0].frameIndex - 2)] is undefined ``` This is due to FES trying to parse the error stack and creating a new error accidentally.