Js snippet breaks atom


#1

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);
  }
}

#2

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?


#3

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.