Skip to content

Commit d93b642

Browse files
TrottMylesBorins
authored andcommitted
lib: make internal API warning more direct
Before: These APIs are exposed only for testing and are not tracked by any versioning system or deprecation process. After: These APIs are for internal testing only. Do not use them. PR-URL: #25125 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 7756279 commit d93b642

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

lib/internal/test/binding.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use strict';
22

33
process.emitWarning(
4-
'These APIs are exposed only for testing and are not ' +
5-
'tracked by any versioning system or deprecation process.',
4+
'These APIs are for internal testing only. Do not use them.',
65
'internal/test/binding');
76

87
module.exports = { internalBinding };

lib/internal/test/heap.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use strict';
22

33
process.emitWarning(
4-
'These APIs are exposed only for testing and are not ' +
5-
'tracked by any versioning system or deprecation process.',
4+
'These APIs are for internal testing only. Do not use them.',
65
'internal/test/heap');
76

87
const { createHeapDump, buildEmbedderGraph } = internalBinding('heap_utils');

test/parallel/test-dns-lookup.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ cares.getaddrinfo = () => internalBinding('uv').UV_ENOENT;
2424
common.expectWarning({
2525
// For 'internal/test/binding' module.
2626
'internal/test/binding': [
27-
'These APIs are exposed only for testing and are not ' +
28-
'tracked by any versioning system or deprecation process.'
27+
'These APIs are for internal testing only. Do not use them.'
2928
],
3029
// For dns.promises.
3130
'ExperimentalWarning': [

0 commit comments

Comments
 (0)