Skip to content

Commit 4afd503

Browse files
committed
doc,test,repl: fix deprecation code
PR-URL: #26368 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent fedc31b commit 4afd503

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

doc/api/deprecations.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2335,8 +2335,8 @@ Type: Runtime
23352335
Setting the TLS ServerName to an IP address is not permitted by
23362336
[RFC 6066][]. This will be ignored in a future version.
23372337
2338-
<a id="DEP0XXX"></a>
2339-
### DEP0XXX: using REPLServer.rli
2338+
<a id="DEP0124"></a>
2339+
### DEP0124: using REPLServer.rli
23402340
<!-- YAML
23412341
changes:
23422342
- version: REPLACEME

lib/repl.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@ function REPLServer(prompt,
179179
let rli = self;
180180
Object.defineProperty(self, 'rli', {
181181
get: util.deprecate(() => rli,
182-
'REPLServer.rli is deprecated', 'DEP0XXX'),
182+
'REPLServer.rli is deprecated', 'DEP0124'),
183183
set: util.deprecate((val) => rli = val,
184-
'REPLServer.rli is deprecated', 'DEP0XXX'),
184+
'REPLServer.rli is deprecated', 'DEP0124'),
185185
enumerable: true,
186186
configurable: true
187187
});

test/parallel/test-repl-options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const repl = require('repl');
2727

2828
common.expectWarning({
2929
DeprecationWarning: {
30-
DEP0XXX: 'REPLServer.rli is deprecated'
30+
DEP0124: 'REPLServer.rli is deprecated'
3131
}
3232
});
3333

0 commit comments

Comments
 (0)