temporarily_silence_buffer_deprecations
authorDebian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Mon, 8 Apr 2019 13:06:40 +0000 (14:06 +0100)
committerJérémy Lal <kapouer@melix.org>
Mon, 8 Apr 2019 13:06:40 +0000 (14:06 +0100)
Gbp-Pq: Name temporarily_silence_buffer_deprecations.patch

lib/buffer.js
test/parallel/parallel.status

index 8f919a52f1d3779de0a23f1d619c09702843825a..a2843494456c8935763fa9936a3c555b1d75e88d 100644 (file)
@@ -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
index eb3c4c093ca25a080db223c06a84b9e2115ea62a..bea89583928ed81bb73a12f2679d7f0323bab81d 100644 (file)
@@ -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