Skip to content

Commit 3bb52bf

Browse files
committed
Use object-assign ponyfill
1 parent 1c679a0 commit 3bb52bf

File tree

3 files changed

+7131
-1
lines changed

3 files changed

+7131
-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,

0 commit comments

Comments
 (0)