For electron/electron#12437: dialog.showMessageBox with an accessory view, here a scrollable, selectable, monospaced stack trace with a Copy button.
NativeScript's macOS runtime makes every Objective-C class a global in Electron's main process, and JavaScript classes can subclass them. Nothing to compile, no addon, no patch to Electron.
On an Apple Silicon Mac with macOS 14.4 or later: