Backport: assert: Fix deepEqual/deepStrictEqual on equivalent typed arrays
This is a backport of #8002 to v4.
Note, the exact API used to implement this doesn't seem to exist in v4, so I combined new Buffer()
and slice()
.
R= @TheAlphaNerd @feross