diff --git a/src/Elm/Kernel/Utils.js b/src/Elm/Kernel/Utils.js index 951dff4b..c7766c59 100644 --- a/src/Elm/Kernel/Utils.js +++ b/src/Elm/Kernel/Utils.js @@ -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))