You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 615B

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;