Skip to content

Commit f5d7c66

Browse files
committed
[Refactor] switching to a maintained Object.assign package
1 parent 80664db commit f5d7c66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assert.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const AssertionError = require('./internal/assert/assertion_error');
3434
const { inspect } = require('util/');
3535
const { isPromise, isRegExp } = require('util/').types;
3636

37-
const objectAssign = Object.assign ? Object.assign : require('es6-object-assign').assign;
38-
const objectIs = Object.is ? Object.is : require('object-is');
37+
const objectAssign = require('object.assign/polyfill')();
38+
const objectIs = require('object-is/polyfill')();
3939

4040
const RegExpPrototypeTest = require('call-bind/callBound')('RegExp.prototype.test');
4141

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
},
3939
"dependencies": {
4040
"call-bind": "^1.0.2",
41-
"es6-object-assign": "^1.1.0",
4241
"is-nan": "^1.2.1",
4342
"object-is": "^1.0.1",
43+
"object.assign": "^4.1.4",
4444
"util": "^0.12.0"
4545
}
4646
}

0 commit comments

Comments
 (0)