mirror of https://github.com/lukechilds/node.git
Browse Source
Do not convert typed arrays to `Buffer` for deepEqual since their values may not be accurately represented by 8-bit ints. Instead perform binary comparison of underlying `ArrayBuffer`s, but only when the array types match. Never apply any kind of optimization for floating-point typed arrays since bit pattern equality is not the right kind of check for them. PR-URL: https://github.com/nodejs/node/pull/5910 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Fixes: https://github.com/nodejs/node/issues/5907v4.x
Anna Henningsen
9 years ago
committed by
Myles Borins
2 changed files with 27 additions and 6 deletions
Loading…
Reference in new issue