wrap(fn) {
    return run(this, function () {
      try {
        return fn();
      } catch (error) {
        this.adapter.handleError(error);
      }
    });
  }
Wrap all code triggered from outside of
EmberDebug with this method.

`wrap` is called by default
on all callbacks triggered by `port`,
so no need to call it in this case.

- Wraps a callback in `Ember.run`.
- Catches all errors during production
and displays them in a user friendly manner.

@method wrap
@param {Function} fn
@return {Mixed} The return value of the passed function