@@ -241,28 +241,6 @@ if (process._invalidDebug) {
241
241
}
242
242
243
243
const { deprecate } = NativeModule . require ( 'internal/util' ) ;
244
- {
245
- // Install legacy getters on the `util` binding for typechecking.
246
- // TODO(addaleax): Turn into a full runtime deprecation.
247
- const pendingDeprecation = getOptionValue ( '--pending-deprecation' ) ;
248
- const utilBinding = internalBinding ( 'util' ) ;
249
- const types = NativeModule . require ( 'internal/util/types' ) ;
250
- for ( const name of [
251
- 'isArrayBuffer' , 'isArrayBufferView' , 'isAsyncFunction' ,
252
- 'isDataView' , 'isDate' , 'isExternal' , 'isMap' , 'isMapIterator' ,
253
- 'isNativeError' , 'isPromise' , 'isRegExp' , 'isSet' , 'isSetIterator' ,
254
- 'isTypedArray' , 'isUint8Array' , 'isAnyArrayBuffer'
255
- ] ) {
256
- utilBinding [ name ] = pendingDeprecation ?
257
- deprecate ( types [ name ] ,
258
- 'Accessing native typechecking bindings of Node ' +
259
- 'directly is deprecated. ' +
260
- `Please use \`util.types.${ name } \` instead.` ,
261
- 'DEP0103' ) :
262
- types [ name ] ;
263
- }
264
- }
265
-
266
244
// TODO(jasnell): The following have been globals since around 2012.
267
245
// That's just silly. The underlying perfctr support has been removed
268
246
// so these are now deprecated non-ops that can be removed after one
@@ -307,6 +285,7 @@ Object.defineProperty(process, 'allowedNodeEnvironmentFlags', {
307
285
enumerable : true ,
308
286
configurable : true
309
287
} ) ;
288
+
310
289
// process.assert
311
290
process . assert = deprecate (
312
291
perThreadSetup . assert ,
0 commit comments