chushihua

This commit is contained in:
li
2026-01-26 23:20:48 +08:00
commit 7b5aab0206
22521 changed files with 3300090 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
'use strict';
var util = require('util');
var getPolyfill = require('./polyfill');
module.exports = function shimUtilPromisify() {
var polyfill = getPolyfill();
if (polyfill !== util.promisify) {
Object.defineProperty(util, 'promisify', {
configurable: true,
enumerable: true,
value: polyfill,
writable: true
});
}
return polyfill;
};