Skip to content

Commit

Permalink
#65 tst.multierror.js failure on Node v8 and later
Browse files Browse the repository at this point in the history
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Isaac Davis <isaac.davis@joyent.com>
Approved by: Isaac Davis <isaac.davis@joyent.com>
  • Loading branch information
David Pacheco committed Jan 16, 2019
1 parent cba94a1 commit 3b2d790
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Not yet released

None yet.
* #65 tst.multierror.js failure on Node v8 and later

## v1.10.0

Expand Down
20 changes: 10 additions & 10 deletions test/tst.multierror.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ function main()
/* errorFromList */
mod_assert.throws(function () {
console.error(errorFromList());
}, /^AssertionError: errors \(\[object\]\) is required$/);
}, /^AssertionError.*: errors \(\[object\]\) is required$/);

mod_assert.throws(function () {
console.error(errorFromList(null));
}, /^AssertionError: errors \(\[object\]\) is required$/);
}, /^AssertionError.*: errors \(\[object\]\) is required$/);

mod_assert.throws(function () {
console.error(errorFromList({}));
}, /^AssertionError: errors \(\[object\]\) is required$/);
}, /^AssertionError.*: errors \(\[object\]\) is required$/);

mod_assert.throws(function () {
console.error(errorFromList('asdf'));
}, /^AssertionError: errors \(\[object\]\) is required$/);
}, /^AssertionError.*: errors \(\[object\]\) is required$/);

mod_assert.throws(function () {
console.error(errorFromList([ new Error(), 17 ]));
}, /^AssertionError: errors \(\[object\]\) is required$/);
}, /^AssertionError.*: errors \(\[object\]\) is required$/);

mod_assert.throws(function () {
console.error(errorFromList([ new Error(), {} ]));
Expand All @@ -95,23 +95,23 @@ function main()
/* errorForEach */
mod_assert.throws(function () {
console.error(errorForEach());
}, /^AssertionError: err must be an Error$/);
}, /^AssertionError.*: err must be an Error$/);

mod_assert.throws(function () {
console.error(errorForEach(null));
}, /^AssertionError: err must be an Error$/);
}, /^AssertionError.*: err must be an Error$/);

mod_assert.throws(function () {
console.error(errorForEach(err1));
}, /^AssertionError: func \(func\) is required$/);
}, /^AssertionError.*: func \(func\) is required$/);

mod_assert.throws(function () {
console.error(errorForEach(err1, {}));
}, /^AssertionError: func \(func\) is required$/);
}, /^AssertionError.*: func \(func\) is required$/);

mod_assert.throws(function () {
console.error(errorForEach({}, function () {}));
}, /^AssertionError: err must be an Error$/);
}, /^AssertionError.*: err must be an Error$/);

accum = [];
doAccum = function (e) { accum.push(e); };
Expand Down

0 comments on commit 3b2d790

Please sign in to comment.