From d70a0cd294070c610e0abce764054859b0cc7b03 Mon Sep 17 00:00:00 2001 From: Michal Hynek Date: Fri, 12 Oct 2018 09:20:12 -0700 Subject: [PATCH] test: removed unused variable Removed an unused variable in test-buffer-failed-alloc-typed-arrays.js. PR-URL: https://github.com/nodejs/node/pull/23481 Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- test/parallel/test-buffer-failed-alloc-typed-arrays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-buffer-failed-alloc-typed-arrays.js b/test/parallel/test-buffer-failed-alloc-typed-arrays.js index fd9c2744e55f69..59cc7bc8d95e03 100644 --- a/test/parallel/test-buffer-failed-alloc-typed-arrays.js +++ b/test/parallel/test-buffer-failed-alloc-typed-arrays.js @@ -26,7 +26,7 @@ for (const allocator of allocators) { // These allocations are known to fail. If they do, // Uint32Array should still produce a zeroed out result. allocator(size); - } catch (e) { + } catch { assert.deepStrictEqual(new Uint32Array(10), zeroArray); } }