polyfill.js 236 B

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