@@ -163,7 +163,6 @@ const {
163163const experimentalREPLAwait = getOptionValue (
164164 '--experimental-repl-await' ,
165165) ;
166- const pendingDeprecation = getOptionValue ( '--pending-deprecation' ) ;
167166const {
168167 REPL_MODE_SLOPPY ,
169168 REPL_MODE_STRICT ,
@@ -312,35 +311,27 @@ function REPLServer(prompt,
312311
313312 ObjectDefineProperty ( this , 'inputStream' , {
314313 __proto__ : null ,
315- get : pendingDeprecation ?
316- deprecate ( ( ) => this . input ,
317- 'repl.inputStream and repl.outputStream are deprecated. ' +
314+ get : deprecate ( ( ) => this . input ,
315+ 'repl.inputStream and repl.outputStream are deprecated. ' +
318316 'Use repl.input and repl.output instead' ,
319- 'DEP0141' ) :
320- ( ) => this . input ,
321- set : pendingDeprecation ?
322- deprecate ( ( val ) => this . input = val ,
323- 'repl.inputStream and repl.outputStream are deprecated. ' +
317+ 'DEP0141' ) ,
318+ set : deprecate ( ( val ) => this . input = val ,
319+ 'repl.inputStream and repl.outputStream are deprecated. ' +
324320 'Use repl.input and repl.output instead' ,
325- 'DEP0141' ) :
326- ( val ) => this . input = val ,
321+ 'DEP0141' ) ,
327322 enumerable : false ,
328323 configurable : true ,
329324 } ) ;
330325 ObjectDefineProperty ( this , 'outputStream' , {
331326 __proto__ : null ,
332- get : pendingDeprecation ?
333- deprecate ( ( ) => this . output ,
334- 'repl.inputStream and repl.outputStream are deprecated. ' +
327+ get : deprecate ( ( ) => this . output ,
328+ 'repl.inputStream and repl.outputStream are deprecated. ' +
335329 'Use repl.input and repl.output instead' ,
336- 'DEP0141' ) :
337- ( ) => this . output ,
338- set : pendingDeprecation ?
339- deprecate ( ( val ) => this . output = val ,
340- 'repl.inputStream and repl.outputStream are deprecated. ' +
330+ 'DEP0141' ) ,
331+ set : deprecate ( ( val ) => this . output = val ,
332+ 'repl.inputStream and repl.outputStream are deprecated. ' +
341333 'Use repl.input and repl.output instead' ,
342- 'DEP0141' ) :
343- ( val ) => this . output = val ,
334+ 'DEP0141' ) ,
344335 enumerable : false ,
345336 configurable : true ,
346337 } ) ;
@@ -1873,16 +1864,14 @@ ObjectDefineProperty(module.exports, 'builtinModules', {
18731864
18741865ObjectDefineProperty ( module . exports , '_builtinLibs' , {
18751866 __proto__ : null ,
1876- get : pendingDeprecation ? deprecate (
1867+ get : deprecate (
18771868 ( ) => _builtinLibs ,
18781869 'repl._builtinLibs is deprecated. Check module.builtinModules instead' ,
1879- 'DEP0142' ,
1880- ) : ( ) => _builtinLibs ,
1881- set : pendingDeprecation ? deprecate (
1870+ 'DEP0142' ) ,
1871+ set : deprecate (
18821872 ( val ) => _builtinLibs = val ,
18831873 'repl._builtinLibs is deprecated. Check module.builtinModules instead' ,
1884- 'DEP0142' ,
1885- ) : ( val ) => _builtinLibs = val ,
1874+ 'DEP0142' ) ,
18861875 enumerable : false ,
18871876 configurable : true ,
18881877} ) ;
0 commit comments