From d80acc951d80a7e3fd5fc8891c7cf962244ab1e4 Mon Sep 17 00:00:00 2001 From: Debian Javascript Maintainers Date: Fri, 25 Jan 2019 12:51:37 +0000 Subject: [PATCH] temporarily_silence_buffer_deprecations Gbp-Pq: Name temporarily_silence_buffer_deprecations.patch --- lib/buffer.js | 3 +-- test/parallel/parallel.status | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/buffer.js b/lib/buffer.js index 8f919a52f..a28434944 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -145,8 +145,7 @@ const bufferWarning = 'Buffer() is deprecated due to security and usability ' + function showFlaggedDeprecation() { if (bufferWarningAlreadyEmitted || ++nodeModulesCheckCounter > 10000 || - (!pendingDeprecation && - isInsideNodeModules())) { + !pendingDeprecation) { // We don't emit a warning, because we either: // - Already did so, or // - Already checked too many times whether a call is coming diff --git a/test/parallel/parallel.status b/test/parallel/parallel.status index edd44eb94..029537f29 100644 --- a/test/parallel/parallel.status +++ b/test/parallel/parallel.status @@ -22,6 +22,11 @@ test-https-connect-address-family : SKIP test-tls-connect-address-family : SKIP test-dns-cancel-reverse-lookup: SKIP +# pending deprecation for buffer is off +test-buffer-constructor-node-modules-paths : SKIP +test-buffer-constructor-deprecation-error : SKIP +test-buffer-constructor-outside-node-modules : SKIP + # should have been disabled 'cause openssl 1.1.0 test-tls-ecdh-disable : SKIP -- 2.30.2