diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index d0b944f4..b4909f79 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -1016,7 +1016,7 @@ getJasmineRequireObj().Env = function(j$) { * Null causes the seed to be determined randomly at the start of execution. * @name Configuration#seed * @since 3.3.0 - * @type function + * @type (number|string) * @default null */ seed: null, @@ -4892,6 +4892,17 @@ getJasmineRequireObj().MatchersUtil = function(j$) { diffBuilder.recordMismatch(); } return result; + case '[object ArrayBuffer]': + // If we have an instance of ArrayBuffer the Uint8Array ctor + // will be defined as well + return self.eq_( + new Uint8Array(a), // eslint-disable-line compat/compat + new Uint8Array(b), // eslint-disable-line compat/compat + aStack, + bStack, + customTesters, + diffBuilder + ); // RegExps are compared by their source patterns and flags. case '[object RegExp]': return (