Blame view

node_modules/util.promisify/index.js 615 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  'use strict';
  
  var define = require('define-properties');
  var util = require('util');
  
  var implementation = require('./implementation');
  var getPolyfill = require('./polyfill');
  var polyfill = getPolyfill();
  var shim = require('./shim');
  
  /* eslint-disable no-unused-vars */
  var boundPromisify = function promisify(orig) {
  /* eslint-enable no-unused-vars */
  	return polyfill.apply(util, arguments);
  };
  define(boundPromisify, {
  	custom: polyfill.custom,
  	customPromisifyArgs: polyfill.customPromisifyArgs,
  	getPolyfill: getPolyfill,
  	implementation: implementation,
  	shim: shim
  });
  
  module.exports = boundPromisify;