Skip to content

Commit

Permalink
Use object-assign ponyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Apr 10, 2019
1 parent 1c679a0 commit 655d01e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assert.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

var objectAssign = require('object-assign');

// compare and isBuffer taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js
// original notice:

Expand Down Expand Up @@ -487,7 +489,7 @@ assert.ifError = function(err) { if (err) throw err; };
function strict(value, message) {
if (!value) fail(value, true, message, '==', strict);
}
assert.strict = Object.assign(strict, assert, {
assert.strict = objectAssign(strict, assert, {
equal: assert.strictEqual,
deepEqual: assert.deepStrictEqual,
notEqual: assert.notStrictEqual,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"main": "./assert.js",
"dependencies": {
"object-assign": "^4.1.1",
"util": "0.10.3"
},
"devDependencies": {
Expand Down

0 comments on commit 655d01e

Please sign in to comment.