mirror of
https://github.com/actions/setup-python.git
synced 2025-06-12 15:27:13 +02:00
Initial pass
This commit is contained in:
13
node_modules/util.promisify/shim.js
generated
vendored
Normal file
13
node_modules/util.promisify/shim.js
generated
vendored
Normal 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;
|
||||
};
|
Reference in New Issue
Block a user