Skip to content

Commit 0c37bff

Browse files
climba03003aduh95
authored andcommitted
http2: fix DEP0194 message
PR-URL: #58669 Backport-PR-URL: #63195 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent ea5dc6b commit 0c37bff

6 files changed

Lines changed: 7 additions & 7 deletions

lib/internal/http2/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ function onGoawayData(code, lastStreamID, buf) {
756756

757757
// TODO(aduh95): remove this in future semver-major
758758
const deprecateWeight = deprecateProperty('weight',
759-
'Priority signaling has been deprecated as of RFC 1993.',
759+
'Priority signaling has been deprecated as of RFC 9113.',
760760
'DEP0194');
761761

762762
// When a ClientHttp2Session is first created, the socket may not yet be
@@ -2519,7 +2519,7 @@ class Http2Stream extends Duplex {
25192519
Http2Stream.prototype.priority = deprecate(function priority(options) {
25202520
if (this.destroyed)
25212521
throw new ERR_HTTP2_INVALID_STREAM();
2522-
}, 'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993', 'DEP0194');
2522+
}, 'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113', 'DEP0194');
25232523

25242524
function callTimeout(self, session) {
25252525
// If the session is destroyed, this should never actually be invoked,

test/parallel/test-http2-client-priority-before-connect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const h2 = require('http2');
77

88
common.expectWarning(
99
'DeprecationWarning',
10-
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
10+
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
1111
'DEP0194');
1212

1313
const server = h2.createServer();

test/parallel/test-http2-client-set-priority.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const http2 = require('http2');
88

99
common.expectWarning(
1010
'DeprecationWarning',
11-
'Priority signaling has been deprecated as of RFC 1993.',
11+
'Priority signaling has been deprecated as of RFC 9113.',
1212
'DEP0194');
1313

1414
const checkWeight = (actual, expect) => {

test/parallel/test-http2-priority-cycle-.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Countdown = require('../common/countdown');
99

1010
common.expectWarning(
1111
'DeprecationWarning',
12-
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
12+
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
1313
'DEP0194');
1414

1515
const server = http2.createServer();

test/parallel/test-http2-priority-event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const h2 = require('http2');
77

88
common.expectWarning(
99
'DeprecationWarning',
10-
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
10+
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
1111
'DEP0194');
1212

1313
const server = h2.createServer();

test/parallel/test-http2-server-stream-session-destroy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const h2 = require('http2');
88

99
common.expectWarning(
1010
'DeprecationWarning',
11-
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
11+
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
1212
'DEP0194');
1313

1414
const server = h2.createServer();

0 commit comments

Comments
 (0)