function ensureThrows(func) {
  return function() {
    try {
      func.apply(this, arguments);
    } catch (ex) {
      PlacesUtils.history.removeAllPages();
      do_throw(ex);
    }
  };
}
// we still clean up properly.
we still clean up properly.
we still clean up properly .
function ensureThrows(func) {
  return function() {
    try {
      func.apply(this, arguments);
    } catch (ex) {
      PlacesUtils.history.removeAllPages();
      do_throw(ex);
    }
  };
}
function ensureThrows ( func ) { return function ( ) { try { func . apply ( this , arguments ) ; } catch ( ex ) { PlacesUtils . history . removeAllPages ( ) ; do_throw ( ex ) ; } } ; }
we still clean up properly.
we still clean up properly .