[TxMt] Textmate crashes due to JavaScriptCore

Koen Punt koen at koenpunt.nl
Sun Oct 29 12:07:16 UTC 2017


Hi,

I'm using a bundle that runs a node process on save to run eslint, but now I've found a strange case where a certain piece of invalid javascript causes TextMate to crash.

From what I understand from the crashlog there's something going wrong in JavaScriptCore, which causes TM to crash. (crashlog "Anonymous UUID" A6388CF6-BEC3-74D3-1176-D1710B8004B0 (is this usable?))

I can imagine that even when a subprocess fails, TM should not crash?

The particular bundle is my modified version of the javascript-eslint bundle <https://github.com/koenpunt/javascript-eslint.tmbundle/tree/js/>. The problematic code is (and can be used to reproduce the crash):

switch (true) {
case 'background':
}
default:
}

– Koen

Sent from Mailspring (https://link.getmailspring.com/link/local-6f2fd5cb-35f7@Ks-MacBook-Pro-2.local/0?redirect=https%3A%2F%2Fgetmailspring.com%3Fref%3Dclient&recipient=textmate%40lists.macromates.com), the best free email app for work
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20171029/b4359eb7/attachment.html>


More information about the textmate mailing list