File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ const AssertionError = require('./internal/assert/assertion_error');
3434const { inspect } = require ( 'util/' ) ;
3535const { isPromise, isRegExp } = require ( 'util/' ) . types ;
3636
37+ const objectAssign = Object . assign ? Object . assign : require ( 'es6-object-assign' ) . assign ;
38+
3739const errorCache = new Map ( ) ;
3840
3941let isDeepEqual ;
@@ -594,7 +596,7 @@ assert.ifError = function ifError(err) {
594596function strict ( ...args ) {
595597 innerOk ( strict , args . length , ...args ) ;
596598}
597- assert . strict = Object . assign ( strict , assert , {
599+ assert . strict = objectAssign ( strict , assert , {
598600 equal : assert . strictEqual ,
599601 deepEqual : assert . deepStrictEqual ,
600602 notEqual : assert . notStrictEqual ,
Original file line number Diff line number Diff line change 3131 },
3232 "dependencies" : {
3333 "buffer" : " ^5.2.1" ,
34+ "es6-object-assign" : " ^1.1.0" ,
3435 "util" : " ^0.12.0"
3536 }
3637}
You can’t perform that action at this time.
0 commit comments