Initial pass

This commit is contained in:
Danny McCormick committed 2019-06-26 21:12:00 -04:00
commit 39c08a0eaa
7242 files changed
+1886006

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
'use strict';
var util = require('util');
var getPolyfill = require('./polyfill');
module.exports = function shimUtilPromisify() {
var polyfill = getPolyfill();
if (polyfill !== util.promisify) {
util.promisify = polyfill;
Object.defineProperty(util, 'promisify', { value: polyfill });
}
return polyfill;
};