| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 52b517f commit 3bedaf9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -860,11 +860,11 @@ Buffer.prototype.equals = function equals(otherBuffer) { | |||
| 860 | 860 | ||
| 861 | 861 | if (this === otherBuffer) | |
| 862 | 862 | return true; | |
| 863 | - | ||
| 864 | - if (this.byteLength !== otherBuffer.byteLength) | ||
| 863 | + const len = TypedArrayPrototypeGetByteLength(this); | ||
| 864 | + if (len !== TypedArrayPrototypeGetByteLength(otherBuffer)) | ||
| 865 | 865 | return false; | |
| 866 | 866 | ||
| 867 | - return this.byteLength === 0 || _compare(this, otherBuffer) === 0; | ||
| 867 | + return len === 0 || _compare(this, otherBuffer) === 0; | ||
| 868 | 868 | }; | |
| 869 | 869 | ||
| 870 | 870 | let INSPECT_MAX_BYTES = 50; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments