install-nix-action/node_modules/util.promisify/polyfill.js
Domen Kožar 70742d22d9
v6
2019-11-19 17:50:30 +01:00

11 lines
236 B
JavaScript

'use strict';
var util = require('util');
var implementation = require('./implementation');
module.exports = function getPolyfill() {
if (typeof util.promisify === 'function') {
return util.promisify;
}
return implementation;
};