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 9, 2019
1 parent 1c679a0 commit 3bb52bf
Show file tree
Hide file tree
Showing 3 changed files with 7,131 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assert.js
@@ -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

0 comments on commit 3bb52bf

Please sign in to comment.