code: function attachProps(context, target) {
    if (isObject(target)) {
      var keys = inheritedKeys(target);
      for (var i = 0, l = keys.length; i < l; ++i) {
        context[keys[i]] = clone(target[keys[i]]);
      }
    }
  }
docs: Used to attach attributes to the error object in the constructor.