http2: fix DEP0194 message

PR-URL: https://github.com/nodejs/node/pull/58669
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Tim Perry <pimterry@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
KaKa 2025-06-11 21:47:31 +08:00 committed by GitHub
parent 85e8cc6ff3
commit 977b5ac7dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7 additions and 7 deletions

View File

@ -753,7 +753,7 @@ function onGoawayData(code, lastStreamID, buf) {
// TODO(aduh95): remove this in future semver-major
const deprecateWeight = deprecateProperty('weight',
'Priority signaling has been deprecated as of RFC 1993.',
'Priority signaling has been deprecated as of RFC 9113.',
'DEP0194');
// When a ClientHttp2Session is first created, the socket may not yet be
@ -2480,7 +2480,7 @@ class Http2Stream extends Duplex {
Http2Stream.prototype.priority = deprecate(function priority(options) {
if (this.destroyed)
throw new ERR_HTTP2_INVALID_STREAM();
}, 'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993', 'DEP0194');
}, 'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113', 'DEP0194');
function callTimeout(self, session) {
// If the session is destroyed, this should never actually be invoked,

View File

@ -7,7 +7,7 @@ const h2 = require('http2');
common.expectWarning(
'DeprecationWarning',
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
'DEP0194');
const server = h2.createServer();

View File

@ -8,7 +8,7 @@ const http2 = require('http2');
common.expectWarning(
'DeprecationWarning',
'Priority signaling has been deprecated as of RFC 1993.',
'Priority signaling has been deprecated as of RFC 9113.',
'DEP0194');
const checkWeight = (actual, expect) => {

View File

@ -9,7 +9,7 @@ const Countdown = require('../common/countdown');
common.expectWarning(
'DeprecationWarning',
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
'DEP0194');
const server = http2.createServer();

View File

@ -7,7 +7,7 @@ const h2 = require('http2');
common.expectWarning(
'DeprecationWarning',
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
'DEP0194');
const server = h2.createServer();

View File

@ -8,7 +8,7 @@ const h2 = require('http2');
common.expectWarning(
'DeprecationWarning',
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 1993',
'http2Stream.priority is longer supported after priority signalling was deprecated in RFC 9113',
'DEP0194');
const server = h2.createServer();