polyfill.js 287 B

1234567891011
  1. 'use strict';
  2. var util = require('util');
  3. var implementation = require('./implementation');
  4. module.exports = function getPolyfill() {
  5. if (typeof util.promisify === 'function' && util.promisify.custom === implementation.custom) {
  6. return util.promisify;
  7. }
  8. return implementation;
  9. };