Treat buffers separately from typed arrays.

This commit is contained in:
John-David Dalton
2016-09-28 12:54:11 -07:00
parent c009349d99
commit 4495e74f77

View File

@@ -3277,6 +3277,12 @@
othIsObj = othTag == objectTag,
isSameTag = objTag == othTag;
if (isSameTag && isBuffer(object)) {
if (!isBuffer(other)) {
return false;
}
objIsArr = true;
}
if (isSameTag && !objIsObj) {
stack || (stack = new Stack);
return (objIsArr || isTypedArray(object))