08ad41f379eead5bc3384b58e507e05ca9bddc077701472c7e1d191cf47ca040cc3881e3fee77683773dec8138c8c4efab0ffdde4c672b04c85a8d0bf0295e 615 B

123456789101112131415161718192021222324
  1. 'use strict';
  2. var define = require('define-properties');
  3. var util = require('util');
  4. var implementation = require('./implementation');
  5. var getPolyfill = require('./polyfill');
  6. var polyfill = getPolyfill();
  7. var shim = require('./shim');
  8. /* eslint-disable no-unused-vars */
  9. var boundPromisify = function promisify(orig) {
  10. /* eslint-enable no-unused-vars */
  11. return polyfill.apply(util, arguments);
  12. };
  13. define(boundPromisify, {
  14. custom: polyfill.custom,
  15. customPromisifyArgs: polyfill.customPromisifyArgs,
  16. getPolyfill: getPolyfill,
  17. implementation: implementation,
  18. shim: shim
  19. });
  20. module.exports = boundPromisify;