romgrk / node-gtk

GTK+ bindings for NodeJS (via GObject introspection)
MIT License
494 stars 41 forks source link

Wrap timer functions in try/catch #275

Closed romgrk closed 3 years ago

romgrk commented 3 years ago

This is another patch on our event loop issues, it should be removed when we're handling things more cleanly.

Link: #273

Edit: for the record, this is required because otherwise if an error occurs within a timer callback, nodejs crashes with an Error: async hook stack has become corrupted.