Js snippet breaks atom


this snippet of code breaks atom immediately:

export default function(elem,options) {
  if (Ember.isEmpty(elem)) {
    return options.inverse(this);
  } else {
    return options.fn(this);


Define “breaks” … I just pasted it into a new buffer and saved it as foo.js and I can edit it, move it around. Nothing seems to be broken here.

Have you tried editing it using atom --safe?


I should have been more clear, I am sorry about that.

In my version of atom (99) it literally breaks the editor if I type anything i.e. space in that file.

After a restart, it appears the issue went away. Very odd. If pops up again, I will paste the error.