@@ -198,28 +198,6 @@ function getConstructorOf(obj) {
198
198
return null ;
199
199
}
200
200
201
- module . exports = exports = {
202
- assertCrypto,
203
- cachedResult,
204
- convertToValidSignal,
205
- createClassWrapper,
206
- decorateErrorStack,
207
- deprecate,
208
- filterDuplicateStrings,
209
- getConstructorOf,
210
- isError,
211
- normalizeEncoding,
212
- objectToString,
213
-
214
- // Symbol used to provide a custom inspect function for an object as an
215
- // alternative to using 'inspect'
216
- customInspectSymbol : Symbol ( 'util.inspect.custom' ) ,
217
-
218
- // Used by the buffer module to capture an internal reference to the
219
- // default isEncoding implementation, just in case userland overrides it.
220
- kIsEncodingSymbol : Symbol ( 'node.isEncoding' )
221
- } ;
222
-
223
201
const kCustomPromisifiedSymbol = Symbol ( 'util.promisify.custom' ) ;
224
202
const kCustomPromisifyArgsSymbol = Symbol ( 'customPromisifyArgs' ) ;
225
203
@@ -276,5 +254,28 @@ function promisify(orig) {
276
254
277
255
promisify . custom = kCustomPromisifiedSymbol ;
278
256
279
- exports . promisify = promisify ;
280
- exports . customPromisifyArgs = kCustomPromisifyArgsSymbol ;
257
+ module . exports = {
258
+ assertCrypto,
259
+ cachedResult,
260
+ convertToValidSignal,
261
+ createClassWrapper,
262
+ decorateErrorStack,
263
+ deprecate,
264
+ filterDuplicateStrings,
265
+ getConstructorOf,
266
+ isError,
267
+ normalizeEncoding,
268
+ objectToString,
269
+ promisify,
270
+
271
+ // Symbol used to customize promisify conversion
272
+ customPromisifyArgs : kCustomPromisifyArgsSymbol ,
273
+
274
+ // Symbol used to provide a custom inspect function for an object as an
275
+ // alternative to using 'inspect'
276
+ customInspectSymbol : Symbol ( 'util.inspect.custom' ) ,
277
+
278
+ // Used by the buffer module to capture an internal reference to the
279
+ // default isEncoding implementation, just in case userland overrides it.
280
+ kIsEncodingSymbol : Symbol ( 'node.isEncoding' )
281
+ } ;
0 commit comments