@@ -241,28 +241,6 @@ if (process._invalidDebug) {
241241}
242242
243243const { 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-
266244// TODO(jasnell): The following have been globals since around 2012.
267245// That's just silly. The underlying perfctr support has been removed
268246// so these are now deprecated non-ops that can be removed after one
@@ -307,6 +285,7 @@ Object.defineProperty(process, 'allowedNodeEnvironmentFlags', {
307285 enumerable : true ,
308286 configurable : true
309287} ) ;
288+
310289// process.assert
311290process . assert = deprecate (
312291 perThreadSetup . assert ,
0 commit comments