diff options
author | Rich Trott <rtrott@gmail.com> | 2018-12-18 23:05:18 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-12-21 10:40:49 -0800 |
commit | 55a1889af7159adaba59946a8139cfea12744819 (patch) | |
tree | e27e37f4c7fbbc4c73a1711f20cec6132ce2afa0 | |
parent | 10642d625ef528c209f30bb10cd4c2ba4abfea8a (diff) | |
download | node-new-55a1889af7159adaba59946a8139cfea12744819.tar.gz |
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: https://github.com/nodejs/node/pull/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>
-rw-r--r-- | lib/internal/test/binding.js | 3 | ||||
-rw-r--r-- | lib/internal/test/heap.js | 3 | ||||
-rw-r--r-- | test/parallel/test-dns-lookup.js | 3 | ||||
-rw-r--r-- | test/parallel/test-fs-filehandle.js | 3 |
4 files changed, 4 insertions, 8 deletions
diff --git a/lib/internal/test/binding.js b/lib/internal/test/binding.js index 17f1574efc..882ea90093 100644 --- a/lib/internal/test/binding.js +++ b/lib/internal/test/binding.js @@ -1,8 +1,7 @@ 'use strict'; process.emitWarning( - 'These APIs are exposed only for testing and are not ' + - 'tracked by any versioning system or deprecation process.', + 'These APIs are for internal testing only. Do not use them.', 'internal/test/binding'); module.exports = { internalBinding }; diff --git a/lib/internal/test/heap.js b/lib/internal/test/heap.js index 61fe5916fd..3f4a905fc5 100644 --- a/lib/internal/test/heap.js +++ b/lib/internal/test/heap.js @@ -1,8 +1,7 @@ 'use strict'; process.emitWarning( - 'These APIs are exposed only for testing and are not ' + - 'tracked by any versioning system or deprecation process.', + 'These APIs are for internal testing only. Do not use them.', 'internal/test/heap'); const { createHeapDump, buildEmbedderGraph } = internalBinding('heap_utils'); diff --git a/test/parallel/test-dns-lookup.js b/test/parallel/test-dns-lookup.js index b30c5795fe..3da4e9f58d 100644 --- a/test/parallel/test-dns-lookup.js +++ b/test/parallel/test-dns-lookup.js @@ -24,8 +24,7 @@ cares.getaddrinfo = () => internalBinding('uv').UV_ENOENT; common.expectWarning({ // For 'internal/test/binding' module. 'internal/test/binding': [ - 'These APIs are exposed only for testing and are not ' + - 'tracked by any versioning system or deprecation process.' + 'These APIs are for internal testing only. Do not use them.' ], // For dns.promises. 'ExperimentalWarning': [ diff --git a/test/parallel/test-fs-filehandle.js b/test/parallel/test-fs-filehandle.js index 57bdc43bee..a56b39f7c9 100644 --- a/test/parallel/test-fs-filehandle.js +++ b/test/parallel/test-fs-filehandle.js @@ -21,8 +21,7 @@ let fdnum; common.expectWarning({ 'internal/test/binding': [ - 'These APIs are exposed only for testing ' + - 'and are not tracked by any versioning system or deprecation process.', + 'These APIs are for internal testing only. Do not use them.', common.noWarnCode ], 'Warning': [ |