diff --git a/test/parallel/test-buffer-failed-alloc-typed-arrays.js b/test/parallel/test-buffer-failed-alloc-typed-arrays.js index 59cc7bc8d95e03..4a322a30d92be2 100644 --- a/test/parallel/test-buffer-failed-alloc-typed-arrays.js +++ b/test/parallel/test-buffer-failed-alloc-typed-arrays.js @@ -27,7 +27,7 @@ for (const allocator of allocators) { // Uint32Array should still produce a zeroed out result. allocator(size); } catch { - assert.deepStrictEqual(new Uint32Array(10), zeroArray); + assert.deepStrictEqual(zeroArray, new Uint32Array(10)); } } }