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); } }