-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Description
I encountered an unhandled rejection error in our project, which resulted in Node being terminated. This issue seems to be related to an npm error.
Error Details
abort(ReferenceError: count is not defined) at Error
at jsStackTrace (D:\Practice\node_modules\fonteditor-core\woff2\woff2.js:8:22498)
at stackTrace (D:\Practice\node_modules\fonteditor-core\woff2\woff2.js:8:22669)
at process.abort (D:\Practice\node_modules\fonteditor-core\woff2\woff2.js:8:18310)
at process.emit (node:events:514:28)
at emit (node:internal/process/promises:149:20)
at processPromiseRejections (node:internal/process/promises:283:27)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
(Usenode --trace-uncaught ...
to show where the exception was thrown)
Node.js v18.17.0
Actual Behaviour
When using the fonteditor-core npm package to decode a WOFF2 font and handle specific Unicode characters, any errors encountered should not terminate the Node.js process. Currently, there is an issue where unhandled rejection errors are causing unexpected behaviour.
Environment
- Node version: v18.17.0
- Npm version: 9.6.7
Additional Information
Seems like an issue with woff2.js