function wrapStaticMethods(lib, name, staticSpec) {
    _safeWrap(lib, name, staticSpec.cast, wrapCast)
  }
Wraps all the static methods on when.js
See: constants.STATIC_PROMISE_METHODS

@param {Function} lib when.Promise
@param {string} name `Promise`
@param {object} staticSpec see WHEN_SPEC.$static
@returns {void}