Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

Commit df8a931

Browse files
committed
Release 8.3.2
1 parent 3014e39 commit df8a931

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

Diff for: History.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
8.3.2 / 2016-05-18
2+
==================
3+
4+
* Fix for `should-equal` to do not call .toString when checking circular usage
5+
16
8.3.1 / 2016-04-15
27
==================
38

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "should",
33
"description": "test framework agnostic BDD-style assertions",
4-
"version": "8.3.1",
4+
"version": "8.3.2",
55
"author": "TJ Holowaychuk <[email protected]>, Denis Bardadym <[email protected]> and other contributors",
66
"repository": {
77
"type": "git",

Diff for: should.js

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
/*!
33
* should - test framework agnostic BDD-style assertions
4-
* @version v8.3.1
4+
* @version v8.3.2
55
* @author TJ Holowaychuk <[email protected]>, Denis Bardadym <[email protected]> and other contributors
66
* @link https://github.com/shouldjs/should.js
77
* @license MIT
@@ -3216,8 +3216,8 @@ function eqInternal(a, b, opts, stackA, stackB, path, fails) {
32163216

32173217
l = stackA.length;
32183218
while(l--) {
3219-
if(stackA[l] == a) {
3220-
return result(stackB[l] == b, REASON.CIRCULAR_VALUES);
3219+
if(stackA[l] === a) {
3220+
return result(stackB[l] === b, REASON.CIRCULAR_VALUES);
32213221
}
32223222
}
32233223

@@ -3280,18 +3280,15 @@ var defaultOptions = {
32803280

32813281
function eq(a, b, opts) {
32823282
opts = opts || {};
3283-
if(typeof opts.checkProtoEql !== 'boolean') {
3284-
opts.checkProtoEql = defaultOptions.checkProtoEql;
3285-
}
3286-
if(typeof opts.checkSubType !== 'boolean') {
3287-
opts.checkSubType = defaultOptions.checkSubType;
3288-
}
3289-
if(typeof opts.plusZeroAndMinusZeroEqual !== 'boolean') {
3290-
opts.plusZeroAndMinusZeroEqual = defaultOptions.plusZeroAndMinusZeroEqual;
3291-
}
3283+
3284+
var newOpts = {
3285+
checkProtoEql: typeof opts.checkProtoEql !== 'boolean' ? defaultOptions.checkProtoEql : opts.checkProtoEql,
3286+
checkSubType: typeof opts.checkSubType !== 'boolean' ? defaultOptions.checkSubType : opts.checkSubType,
3287+
plusZeroAndMinusZeroEqual: typeof opts.plusZeroAndMinusZeroEqual !== 'boolean' ? defaultOptions.plusZeroAndMinusZeroEqual : opts.plusZeroAndMinusZeroEqual,
3288+
};
32923289

32933290
var fails = [];
3294-
var r = eqInternal(a, b, opts, [], [], [], fails);
3291+
var r = eqInternal(a, b, newOpts, [], [], [], fails);
32953292
return opts.collectAllFails ? fails : r;
32963293
}
32973294

Diff for: should.min.js

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)