source: frontend/node_modules/util.promisify/shim.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 357 bytes
Line 
1'use strict';
2
3var util = require('util');
4var getPolyfill = require('./polyfill');
5
6module.exports = function shimUtilPromisify() {
7 var polyfill = getPolyfill();
8 if (polyfill !== util.promisify) {
9 Object.defineProperty(util, 'promisify', {
10 configurable: true,
11 enumerable: true,
12 value: polyfill,
13 writable: true
14 });
15 }
16 return polyfill;
17};
Note: See TracBrowser for help on using the repository browser.