Skip to content

Commit

Permalink
Merge branch 'pr-1092' into stack-1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rupertlssmith committed Feb 17, 2023
2 parents d257f90 + 3be3731 commit 084fa2b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Elm/Kernel/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,20 @@ function _Utils_eqHelp(x, y, depth, stack)
}
//*/

if (typeof DataView === "function" && x instanceof DataView) {
var length = x.byteLength;

if (y.byteLength !== length) {
return false;
}

for (var i = 0; i < length; ++i) {
if (x.getUint8(i) !== y.getUint8(i)) {
return false;
}
}
}

for (var key in x)
{
if (!_Utils_eqHelp(x[key], y[key], depth + 1, stack))
Expand Down

0 comments on commit 084fa2b

Please sign in to comment.