test: fix assertion argument order in test-buffer-failed-alloc-type

PR-URL: https://github.com/nodejs/node/pull/28349
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Alex Ramirez 2019-06-21 16:31:40 -05:00 committed by Rich Trott
parent 6f5b5d1c4b
commit ad8456ba43

View File

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