Skip to content

Commit 655d01e

Browse files
committed
Use object-assign ponyfill
1 parent 1c679a0 commit 655d01e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

assert.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'use strict';
22

3+
var objectAssign = require('object-assign');
4+
35
// compare and isBuffer taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js
46
// original notice:
57

@@ -487,7 +489,7 @@ assert.ifError = function(err) { if (err) throw err; };
487489
function strict(value, message) {
488490
if (!value) fail(value, true, message, '==', strict);
489491
}
490-
assert.strict = Object.assign(strict, assert, {
492+
assert.strict = objectAssign(strict, assert, {
491493
equal: assert.strictEqual,
492494
deepEqual: assert.deepStrictEqual,
493495
notEqual: assert.notStrictEqual,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"main": "./assert.js",
1515
"dependencies": {
16+
"object-assign": "^4.1.1",
1617
"util": "0.10.3"
1718
},
1819
"devDependencies": {

0 commit comments

Comments
 (0)