mirror of
https://github.com/actions/setup-node.git
synced 2025-07-27 00:48:24 +02:00
.
This commit is contained in:
parent
78d7c382fb
commit
e7ed525da5
7117 changed files with 1773720 additions and 211 deletions
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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue