source:
frontend/node_modules/util.promisify/polyfill.js
| Last change on this file was 9af201e, checked in by , 12 days ago | |
|---|---|
|
|
| File size: 236 bytes | |
| Rev | Line | |
|---|---|---|
| [9af201e] | 1 | 'use strict'; |
| 2 | ||
| 3 | var util = require('util'); | |
| 4 | var implementation = require('./implementation'); | |
| 5 | ||
| 6 | module.exports = function getPolyfill() { | |
| 7 | if (typeof util.promisify === 'function') { | |
| 8 | return util.promisify; | |
| 9 | } | |
| 10 | return implementation; | |
| 11 | }; |
Note:
See TracBrowser
for help on using the repository browser.
