From f0433655a839d51bb08821b0701cdbebdc949123 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. --- 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); } }