install-nix-action/node_modules/util.promisify/polyfill.js
Domen Kožar 49df04613e
v7
2020-02-24 13:29:22 +01:00

12 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;
};