From: Debian Javascript Maintainers Date: Mon, 8 Apr 2019 13:06:40 +0000 (+0100) Subject: temporarily_silence_buffer_deprecations X-Git-Tag: archive/raspbian/10.15.2_dfsg-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=201857fcd3b2c3471b1ec0304dd9a6927154595b;p=nodejs.git temporarily_silence_buffer_deprecations Gbp-Pq: Name temporarily_silence_buffer_deprecations.patch --- 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 eb3c4c093..bea895839 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