code: function _gpfPromiseSafeResolve (fn, onFulfilled, onRejected) {
      var safe = true;
      function makeSafe (callback) {
          return function (value) {
              if (safe) {
                  safe = false;
                  callback(value);
              }
          };
      }
      try {
          fn(makeSafe(onFulfilled), makeSafe(onRejected));
      } catch (e) {
          /* istanbul ignore else */ // compability.promise.1
          if (safe) {
              safe = false;
              onRejected(e);
          }
      }
  }
docs: /*global _gpfAssert Assertion method /*global _gpfCompatibilityInstallGlobal Install compatible global if missing /*global _gpfIgnore Helper to remove unused parameter warning /*#endif Ensure the functions are called only once