<commit_before>
onmessage = function(event) {
  var old_js = event.data.join("");
  var new_js = js_beautify(old_js, null);
  postMessage(new_js);
  this.close();
}

/*jslint onevar: false, plusplus: false */
/*

 JS Beautifier
---------------


  Written by <NAME>, <<EMAIL>>
      http://jsbeautifier.org/

  Originally converted to javascript by Vital, <<EMAIL>>

  You are free to use this in any way you want, in case you find this useful or working for you.

  Usage:
    js_beautify(js_source_text);<commit_msg>catch exceptions from js_beautifier. i haven't seen it error but better be safe than sorry<commit_after>
onmessage = function(event) {
  var old_js = event.data.join("");
  var new_js = old_js;
  try {
    new_js = js_beautify(old_js, null);
  } catch (e) {
    // we don't have Components.utils.reportError here :(
  }

  postMessage(new_js);
  this.close();
}

/*jslint onevar: false, plusplus: false */
/*

 JS Beautifier
---------------


  Written by <NAME>, <<EMAIL>>
      http://jsbeautifier.org/

  Originally converted to javascript by Vital, <<EMAIL>>

  You are free to use this in any way you want, in case you find this useful or working for you.

  Usage:
    js_beautify(js_source_text);
{'fraction_non_alphanumeric': 0.13677313677313677, 'fraction_numerical': 0.0, 'mean_word_length': 3.1564625850340136, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4858213', 'n_tokens_mistral': 426, 'n_tokens_neox': 401, 'n_words': 131}