| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | 'use strict'; |
| 2 | |
| 3 | var define = require('define-properties'); |
| 4 | var util = require('util'); |
| 5 | |
| 6 | var implementation = require('./implementation'); |
| 7 | var getPolyfill = require('./polyfill'); |
| 8 | var polyfill = getPolyfill(); |
| 9 | var shim = require('./shim'); |
| 10 | |
| 11 | /* eslint-disable no-unused-vars */ |
| 12 | var boundPromisify = function promisify(orig) { |
| 13 | /* eslint-enable no-unused-vars */ |
| 14 | return polyfill.apply(util, arguments); |
| 15 | }; |
| 16 | define(boundPromisify, { |
| 17 | custom: polyfill.custom, |
| 18 | customPromisifyArgs: polyfill.customPromisifyArgs, |
| 19 | getPolyfill: getPolyfill, |
| 20 | implementation: implementation, |
| 21 | shim: shim |
| 22 | }); |
| 23 | |
| 24 | module.exports = boundPromisify; |